Skip to content

package-avrdude.bash fails to compile: conflicting types for ‘keyboard_lookup_key’ #26

Open
@sarlacii

Description

@sarlacii

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions