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

Compilation fails and I can't find out why... #18

Open
ghost opened this issue Jun 7, 2020 · 1 comment
Open

Compilation fails and I can't find out why... #18

ghost opened this issue Jun 7, 2020 · 1 comment

Comments

@ghost
Copy link

ghost commented Jun 7, 2020

All packages are installed.
Make Log:

cc -I/usr/include/libevdev-1.0 -o roccat-vulcan hid.o roccat-vulcan.o output.o evdev.o fx.o -levdev -lhidapi-libusb -ludev /usr/bin/ld: roccat-vulcan.o:(.bss+0x0): multiple definition of rv_topo_model'; hid.o:(.bss+0x0): first defined here
/usr/bin/ld: roccat-vulcan.o:(.data+0x0): multiple definition of rv_colors'; hid.o:(.bss+0x20): first defined here /usr/bin/ld: roccat-vulcan.o:(.bss+0x4): multiple definition of rv_color_off'; hid.o:(.bss+0x5c): first defined here
/usr/bin/ld: roccat-vulcan.o:(.bss+0xc): multiple definition of rv_verbose'; hid.o:(.bss+0x64): first defined here /usr/bin/ld: roccat-vulcan.o:(.data+0x3c): multiple definition of rv_products'; hid.o:(.bss+0x68): first defined here
/usr/bin/ld: roccat-vulcan.o:(.data+0x50): multiple definition of rv_products_str'; hid.o:(.bss+0x70): first defined here /usr/bin/ld: roccat-vulcan.o:(.bss+0x20): multiple definition of rv_fixed'; hid.o:(.bss+0xa0): first defined here
/usr/bin/ld: roccat-vulcan.o:(.bss+0x4a0): multiple definition of rv_active_keys'; hid.o:(.bss+0x520): first defined here /usr/bin/ld: roccat-vulcan.o:(.bss+0x530): multiple definition of rv_released_keys'; hid.o:(.bss+0x5b0): first defined here
/usr/bin/ld: roccat-vulcan.o:(.bss+0x540): multiple definition of rv_pressed_keys'; hid.o:(.bss+0x5c0): first defined here /usr/bin/ld: roccat-vulcan.o:(.bss+0x550): multiple definition of rv_repeated_keys'; hid.o:(.bss+0x5d0): first defined here
/usr/bin/ld: output.o:(.bss+0x0): multiple definition of rv_topo_model'; hid.o:(.bss+0x0): first defined here /usr/bin/ld: output.o:(.bss+0x20): multiple definition of rv_colors'; hid.o:(.bss+0x20): first defined here
/usr/bin/ld: output.o:(.bss+0x5c): multiple definition of rv_color_off'; hid.o:(.bss+0x5c): first defined here /usr/bin/ld: output.o:(.bss+0x64): multiple definition of rv_verbose'; hid.o:(.bss+0x64): first defined here
/usr/bin/ld: output.o:(.bss+0x68): multiple definition of rv_products'; hid.o:(.bss+0x68): first defined here /usr/bin/ld: output.o:(.bss+0x70): multiple definition of rv_products_str'; hid.o:(.bss+0x70): first defined here
/usr/bin/ld: output.o:(.bss+0xa0): multiple definition of rv_fixed'; hid.o:(.bss+0xa0): first defined here /usr/bin/ld: output.o:(.bss+0x520): multiple definition of rv_active_keys'; hid.o:(.bss+0x520): first defined here
/usr/bin/ld: output.o:(.bss+0x5b0): multiple definition of rv_released_keys'; hid.o:(.bss+0x5b0): first defined here /usr/bin/ld: output.o:(.bss+0x5c0): multiple definition of rv_pressed_keys'; hid.o:(.bss+0x5c0): first defined here
/usr/bin/ld: output.o:(.bss+0x5d0): multiple definition of rv_repeated_keys'; hid.o:(.bss+0x5d0): first defined here /usr/bin/ld: evdev.o:(.bss+0x0): multiple definition of rv_topo_model'; hid.o:(.bss+0x0): first defined here
/usr/bin/ld: evdev.o:(.bss+0x20): multiple definition of rv_colors'; hid.o:(.bss+0x20): first defined here /usr/bin/ld: evdev.o:(.bss+0x5c): multiple definition of rv_color_off'; hid.o:(.bss+0x5c): first defined here
/usr/bin/ld: evdev.o:(.bss+0x64): multiple definition of rv_verbose'; hid.o:(.bss+0x64): first defined here /usr/bin/ld: evdev.o:(.bss+0x68): multiple definition of rv_products'; hid.o:(.bss+0x68): first defined here
/usr/bin/ld: evdev.o:(.bss+0x70): multiple definition of rv_products_str'; hid.o:(.bss+0x70): first defined here /usr/bin/ld: evdev.o:(.bss+0xa0): multiple definition of rv_fixed'; hid.o:(.bss+0xa0): first defined here
/usr/bin/ld: evdev.o:(.bss+0x520): multiple definition of rv_active_keys'; hid.o:(.bss+0x520): first defined here /usr/bin/ld: evdev.o:(.bss+0x5b0): multiple definition of rv_released_keys'; hid.o:(.bss+0x5b0): first defined here
/usr/bin/ld: evdev.o:(.bss+0x5c0): multiple definition of rv_pressed_keys'; hid.o:(.bss+0x5c0): first defined here /usr/bin/ld: evdev.o:(.bss+0x5d0): multiple definition of rv_repeated_keys'; hid.o:(.bss+0x5d0): first defined here
/usr/bin/ld: fx.o:(.bss+0x0): multiple definition of rv_topo_model'; hid.o:(.bss+0x0): first defined here /usr/bin/ld: fx.o:(.bss+0x20): multiple definition of rv_colors'; hid.o:(.bss+0x20): first defined here
/usr/bin/ld: fx.o:(.bss+0x5c): multiple definition of rv_color_off'; hid.o:(.bss+0x5c): first defined here /usr/bin/ld: fx.o:(.bss+0x64): multiple definition of rv_verbose'; hid.o:(.bss+0x64): first defined here
/usr/bin/ld: fx.o:(.bss+0x68): multiple definition of rv_products'; hid.o:(.bss+0x68): first defined here /usr/bin/ld: fx.o:(.bss+0x70): multiple definition of rv_products_str'; hid.o:(.bss+0x70): first defined here
/usr/bin/ld: fx.o:(.bss+0xa0): multiple definition of rv_fixed'; hid.o:(.bss+0xa0): first defined here /usr/bin/ld: fx.o:(.bss+0x520): multiple definition of rv_active_keys'; hid.o:(.bss+0x520): first defined here
/usr/bin/ld: fx.o:(.bss+0x5b0): multiple definition of rv_released_keys'; hid.o:(.bss+0x5b0): first defined here /usr/bin/ld: fx.o:(.bss+0x5c0): multiple definition of rv_pressed_keys'; hid.o:(.bss+0x5c0): first defined here
/usr/bin/ld: fx.o:(.bss+0x5d0): multiple definition of rv_repeated_keys'; hid.o:(.bss+0x5d0): first defined here collect2: error: ld returned 1 exit status make: *** [Makefile:13: roccat-vulcan] Error 1

@Zaustie
Copy link

Zaustie commented Jun 24, 2020

set all variables in roccat-vulcan.h to extern.
i.e. "int rv_topo_model;" -> "extern int rv_topo_model;"
Do this for all variables mentioned in the linkage error. It should compile afterwards.

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

1 participant