When attempting to (re-)merge net-wireless/gr-scan, it fails. The error thrown by the link step is: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/net-wireless/gr-scan-20160211/temp/cc7CZwWj.o: undefined reference to symbol '_ZN7log4cpp8Appender29AppenderMapStorageInitializerD1Ev' This can be resolved by adding an explicit -llog4cpp to the LDLIBS variable in the Makefile. Reproducible: Always Steps to Reproduce: emerge -wq net-wireless/gr-scan Actual Results: >>> Verifying ebuild manifests >>> Emerging (1 of 1) net-wireless/gr-scan-20160211::gentoo >>> Failed to emerge net-wireless/gr-scan-20160211, Log file: >>> '/var/tmp/portage/net-wireless/gr-scan-20160211/temp/build.log' * Package: net-wireless/gr-scan-20160211 * Repository: gentoo * Maintainer: radio@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/net-wireless/gr-scan-20160211/temp/cc7CZwWj.o: undefined reference to symbol '_ZN7log4cpp8Appender29AppenderMapStorageInitializerD1Ev' /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/liblog4cpp.so.5: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make: *** [Makefile:34: gr-scan] Error 1 * ERROR: net-wireless/gr-scan-20160211::gentoo failed (compile phase): * emake failed Expected Results: gr-scan successfully built and installed If memory serves, this emerge worked fine some time ago when I was using gcc9 and an older version of dev-libs/boost (not sure if either of those observations are releant). Some time after the boost version was upgraded an "emerge -uDN world" tried to rebuild gr-scan, and I encountered the above error. I hand-tweaked the /var/tmp/portage/net-wireless/gr-scan-20160211/work/gr-scan-*/Makefile to append "-llog4cpp" to the end of LDLIBS and could then successfully complete the installation with "ebuild gr-scan-20160211.ebuild compile install qmerge".
Created attachment 706605 [details] build.log + emerge --info.txt Please attach full build.log and emerge --info when reporting build failures (even if doesn't seem needed), but I've reproduced so I'll just attach mine.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=890e9fd473eb5be92ea616aea9837d292a590dc9 commit 890e9fd473eb5be92ea616aea9837d292a590dc9 Author: Jakov Smolić <jsmolic@gentoo.org> AuthorDate: 2022-04-15 13:03:44 +0000 Commit: Jakov Smolić <jsmolic@gentoo.org> CommitDate: 2022-04-15 13:07:20 +0000 net-wireless/gr-scan: treeclean Closes: https://bugs.gentoo.org/788340 Signed-off-by: Jakov Smolić <jsmolic@gentoo.org> net-wireless/gr-scan/Manifest | 1 - net-wireless/gr-scan/gr-scan-20160211.ebuild | 33 ---------------------------- net-wireless/gr-scan/metadata.xml | 8 ------- profiles/package.mask | 1 - 4 files changed, 43 deletions(-)