You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Am running openSUSE 15.2 with all build tools in place (only missing tool from your list in the README is "gperf", which I could install via "zypper install gperf"). But now the keyboard-keys-from-name.h file produced by gperf contains a definition with register type, which conflicts with the type in the udev-builtin-keyboard.c file.
Any attempt to fix the error is overwritten by the build script, of course. :)
Is this an issue with gperf as installed, or am I perhaps missing a devel package?
Debug from the build process:
In file included from udev-builtin-keyboard.c:32:0:
keyboard-keys-from-name.h:117:1: error: conflicting types for ‘keyboard_lookup_key’
keyboard_lookup_key (register const char *str, register size_t len)
^~~~~~~~~~~~~~~~~~~
udev-builtin-keyboard.c:31:26: note: previous declaration of ‘keyboard_lookup_key’ was here
static const struct key *keyboard_lookup_key(const char *str, unsigned len);
^~~~~~~~~~~~~~~~~~~
make[4]: *** [Makefile:810: libudev_core_la-udev-builtin-keyboard.lo] Error 1
The text was updated successfully, but these errors were encountered:
Thanks for posting your issue, so I was not the only one having this issue.
First I tried to replace the line which caused the error, but as you said it was
overwritten by the build script, of course. :)
Replacing the following line in eudev-3.1.3/src/udev/keyboard-keys-from-name.h
after running the main build script was used as a temporary workaround by me. //keyboard_lookup_key (register const char *str, register size_t len) // error different type>
keyboard_lookup_key (register const char *str, register unsigned int len)
When you run the package specific build scripts normally called by the main build afterwards
the v-3.1.3 directory shouldn't be overwritten by the script.
Then build libhidapi and avrdude manually by running the corresponding build scripts: ./libhidapi.build.bash respectively ./avrdude-6.3.build.bash
Greetings
Am running openSUSE 15.2 with all build tools in place (only missing tool from your list in the README is "gperf", which I could install via "zypper install gperf"). But now the keyboard-keys-from-name.h file produced by gperf contains a definition with register type, which conflicts with the type in the udev-builtin-keyboard.c file.
Any attempt to fix the error is overwritten by the build script, of course. :)
Is this an issue with gperf as installed, or am I perhaps missing a devel package?
Debug from the build process:
In file included from udev-builtin-keyboard.c:32:0:
keyboard-keys-from-name.h:117:1: error: conflicting types for ‘keyboard_lookup_key’
keyboard_lookup_key (register const char *str, register size_t len)
^~~~~~~~~~~~~~~~~~~
udev-builtin-keyboard.c:31:26: note: previous declaration of ‘keyboard_lookup_key’ was here
static const struct key *keyboard_lookup_key(const char *str, unsigned len);
^~~~~~~~~~~~~~~~~~~
make[4]: *** [Makefile:810: libudev_core_la-udev-builtin-keyboard.lo] Error 1
The text was updated successfully, but these errors were encountered: