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

Duncan Roe duncan_roe at optusnet.com.au
Sun Jan 10 23:41:06 UTC 2021


On Sun, Jan 10, 2021 at 06:49:28PM +0200, Petar Petrov wrote:
> 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
> _______________________________________________
I think no_fortran_common is the default now - will need fixing upstream if that's the culprit

Cheers ... Duncan.


More information about the SlackBuilds-users mailing list