Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not compile on -CURRENT #60

Closed
philmb3487 opened this issue May 7, 2021 · 2 comments
Closed

Does not compile on -CURRENT #60

philmb3487 opened this issue May 7, 2021 · 2 comments

Comments

@philmb3487
Copy link

Hi, my machine runs Current.

I can't compile. here is the log.

./hid.h:122:14: error: redefinition of typedef 'hid_test_quirk_t' is a C11 feature [-Werror,-Wtypedef-redefinition]
typedef bool hid_test_quirk_t(const struct hid_device_info *dev_info,
             ^
/usr/src/sys/dev/hid/hid.h:306:14: note: previous definition is here
typedef bool hid_test_quirk_t(const struct hid_device_info *dev_info,
             ^
In file included from iichid.c:57:
./hid.h:126:1: error: static declaration of 'hid_get_udata' follows non-static declaration
hid_get_udata(const uint8_t *buf, hid_size_t len, struct hid_location *loc)
^
/usr/src/sys/dev/hid/hid.h:325:10: note: previous declaration is here
uint32_t hid_get_udata(const uint8_t *buf, hid_size_t len,
         ^
In file included from iichid.c:57:
./hid.h:128:10: error: implicit declaration of function 'hid_get_data_unsigned' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        return (hid_get_data_unsigned(buf, len, loc));
                ^
11 errors generated.
*** Error code 1

Stop.
make: stopped in /usr/home/phil/projects/iichid
[phil@philhost:~/projects/iichid]$ 
@wulf7
Copy link
Owner

wulf7 commented May 7, 2021

Hi Philippe,

This version of iichid is for 12 only. 13 and 14-CURRENT contain it in base system already.

P.S. On 13+ It is split on dozen of drivers.

@wulf7
Copy link
Owner

wulf7 commented May 7, 2021

USB support is disabled in 13+ by default. You should add following lines to /boot/loader.conf to enable it:

hw.usb.usbhid.enable=1
usbhid_load="YES"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants