Bumblebee-Project / Bumblebee

Bumblebee daemon and client rewritten in C
http://www.bumblebee-project.org/
GNU General Public License v3.0
1.29k stars 142 forks source link

Error compiling with gcc 10.2.0 #1072

Closed nikonikolov closed 3 years ago

nikonikolov commented 3 years ago

When I try to compile with a newer version of gcc, I get this error

gcc -Wall -Waggregate-return    -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls   -Wshadow -Wstrict-prototypes -Winline -Wformat=2 -pipe   -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Wextra -funsigned-char -DGIT
VERSION='"3.2.1-2013-04-26-Format:%h$"' -O2 -fPIC   -o bin/optirun src/module.o src/bbconfig.o src/bblogger.o src/bbrun.o src/bbsocket.o src/driver.o src/optirun.o src/bbsocketclient.o -lglib-2.0 -lrt 
/usr/bin/ld: src/bblogger.o:(.bss+0x220): multiple definition of `bb_pm_method_string'; src/bbconfig.o:(.data.rel.local+0x0): first defined here
/usr/bin/ld: src/bbsocket.o:(.bss+0x0): multiple definition of `bb_pm_method_string'; src/bbconfig.o:(.data.rel.local+0x0): first defined here
/usr/bin/ld: src/driver.o:(.bss+0x0): multiple definition of `bb_pm_method_string'; src/bbconfig.o:(.data.rel.local+0x0): first defined here
/usr/bin/ld: src/optirun.o:(.bss+0x0): multiple definition of `bb_pm_method_string'; src/bbconfig.o:(.data.rel.local+0x0): first defined here
/usr/bin/ld: src/bbsocketclient.o:(.bss+0x0): multiple definition of `bb_pm_method_string'; src/bbconfig.o:(.data.rel.local+0x0): first defined here
collect2: error: ld returned 1 exit status
make: *** [Makefile:604: bin/optirun] Error 1

I am on Slackware current, gcc version 10.2.0, kernel 5.10.3

bluca commented 3 years ago

https://github.com/Bumblebee-Project/Bumblebee/pull/1071

nikonikolov commented 3 years ago

Thanks. Could you maybe add a release with the fix