You are not logged in.
Pages: 1
Topic closed
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
I downgraded binutils from 2.34-3 to 2.33.1-2 using downgrader. Compilation on those packages still does not work.
Offline
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
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
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
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.
This helped with resolving an issue with aur/gstm
Should be useful for other users with packages suffering from the same issue.
Offline
I ran into the same issue with opencpn. I've modified /etc/makepkg.conf to add -fcommon to CFLAGS.
Offline
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
Pages: 1
Topic closed