You are not logged in.

#1 2020-05-14 17:28:28

scrouthtv
Member
Registered: 2019-10-15
Posts: 37

Newest glibc breaks /usr/bin/ld

I just tried building some git packages (e. g. polybar, i3-gaps-rounded-git) on a fresh install which failed with the following error message:

/usr/bin/ld: [...] multiple definition of `A_NET_CLIENT_LIST`; [...] first defined here

I cutted out the two filenames in brackets. This error occured 2147 times. This got me wondering whether the package was broken, but it compiles perfectly on my laptop with Arch too.
I am running Linux archlinux 5.6.12-arch1-1 #1 SMP PREEMPT Wed, 06 May 2020 17:32:37 +0000 x86_64 GNU/Linux. On my laptop I still had 5.6.11 and updated Linux as well as glibc (full update log: https://pastebin.com/xPWdcLyG) and after a restart the compilation for those packages fails as well.

I tried booting into an lts kernel (5.4.40-1-lts) but I still get the exact same error message.

My next attempt would be to downgrade glibc. Does anybody else have a clue what might be causing this?

Offline

#2 2020-05-14 17:33:24

scrouthtv
Member
Registered: 2019-10-15
Posts: 37

Re: Newest glibc breaks /usr/bin/ld

I downgraded binutils from 2.34-3 to 2.33.1-2 using downgrader. Compilation on those packages still does not work.

Offline

#3 2020-05-14 17:42:44

scrouthtv
Member
Registered: 2019-10-15
Posts: 37

Re: Newest glibc breaks /usr/bin/ld

I just downgraded gcc and gcc-libs to 9.3.0.1 and everything works again. After a bit of research I found this:
https://gcc.gnu.org/gcc-10/porting_to.html

A common mistake in C is omitting extern when declaring a global variable in a header file. GCC 10 defaults to -fno-common, which means a linker error will now be reported.

I guess this is a problem on the program authors' side?

Offline

#4 2020-05-14 19:50:39

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,783
Website

Re: Newest glibc breaks /usr/bin/ld

Looks like it.

Mod note: Moving to AUR Issues.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2020-05-16 07:05:04

pancho
Member
From: Madrid, Spain
Registered: 2018-08-14
Posts: 5
Website

Re: Newest glibc breaks /usr/bin/ld

It affects pam_ssh and rasdaemon as well.  In both cases, I've managed to work around¹ the issue by prepending:

CFLAGS="$CFLAGS -fcommon" ./configure ...

I've filed an issue upstream for pam_ssh².

Hope that it helps.

Cheers,

¹: https://aur.archlinux.org/cgit/aur.git/ … 8d1711473c
²: https://sourceforge.net/p/pam-ssh/bugs/18/


Arch + sway + fish + doom emacs

Offline

#6 2020-06-04 17:23:30

L-0F-F
Member
From: the Source Wall
Registered: 2020-06-02
Posts: 6
Website

Re: Newest glibc breaks /usr/bin/ld

pancho wrote:

It affects pam_ssh and rasdaemon as well.  In both cases, I've managed to work around¹ the issue by prepending:

CFLAGS="$CFLAGS -fcommon" ./configure ...

I've filed an issue upstream for pam_ssh².

Hope that it helps.

cool
This helped with resolving an issue with aur/gstm
Should be useful for other users with packages suffering from the same issue.

Offline

#7 2020-06-13 19:38:13

glenjo
Member
From: Pacific NW
Registered: 2020-06-09
Posts: 37

Re: Newest glibc breaks /usr/bin/ld

I ran into the same issue with opencpn.  I've modified /etc/makepkg.conf to add -fcommon to CFLAGS.

Offline

#8 2020-06-13 19:45:39

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,783
Website

Re: Newest glibc breaks /usr/bin/ld


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB