oftc / oftc-ircservices

OFTC's IRC Services
https://www.oftc.net/CodingProjects/
GNU General Public License v2.0
33 stars 22 forks source link

Fails to build on bullseye (gcc 10) #52

Closed Unit193 closed 2 years ago

Unit193 commented 2 years ago
/usr/bin/ld: ruby_module/libruby_module.a(libruby_module_a-nickname.o):/build/oftc-ircservices/src/ruby_module/nickname.c:4: multiple definition of `cNickname'; ruby_module/libruby_module.a(libruby_module_a-client.o):/build/oftc-ircservices/src/ruby_module/client.c:7: first defined here
/usr/bin/ld: ruby_module/libruby_module.a(libruby_module_a-servicemodule.o):/build/oftc-ircservices/src/ruby_module/servicemodule.c:11: multiple definition of `cClient'; ruby_module/libruby_module.a(libruby_module_a-client.o):/build/oftc-ircservices/src/ruby_module/client.c:6: first defined here

One can work around this with -fcommon, but it should be fixed properly.

dwfreed commented 2 years ago

cNickname and cClient should be proper globals, as they are ruby class definitions