[Slackbuilds-users] multiple definition of... first defined here -fcommon fix

Petar Petrov slackalaxy at gmail.com
Sun Jan 10 16:49:28 UTC 2021


Hi guys,

I recently updated my -current installation, and some programs fail to
compile with errors like this:

/usr/bin/ld: gui.o:(.bss+0x20): multiple definition of
`notify_notification_close'; mod_notify.o:(.bss+0x10): first defined
here
/usr/bin/ld: gui.o:(.bss+0x30): multiple definition of
`notify_notification_update'; mod_notify.o:(.bss+0x20): first defined
here
/usr/bin/ld: gui.o:(.bss+0x28): multiple definition of
`notify_notification_show'; mod_notify.o:(.bss+0x18): first defined
here
/usr/bin/ld: gui.o:(.bss+0x38): multiple definition of
`notify_notification_new'; mod_notify.o:(.bss+0x28): first defined
here
/usr/bin/ld: gui.o:(.bss+0x40): multiple definition of
`notify_uninit'; mod_notify.o:(.bss+0x30): first defined here
/usr/bin/ld: gui.o:(.bss+0x48): multiple definition of `notify_init';
mod_notify.o:(.bss+0x38): first defined here

an example is artha, another one is treebest-ensembl that I maintain.
This seems to get fixed by adding "-fcommon" to the compiler flags.
For more info:
https://gcc.gnu.org/gcc-10/porting_to.html

sorry if this has been already discussed, I did not have time to read
the mailing list.

best,

Petar


More information about the SlackBuilds-users mailing list