~ $ /usr/bin/ipv6calc /usr/bin/ipv6calc: symbol lookup error: /usr/lib64/libipv6calc_db_wrapper.so.1.0.0: undefined symbol: log2 ~ $ ldd /usr/bin/ipv6calc linux-vdso.so.1 (0x00007ffd05f85000) libipv6calc.so.1.0.0 => /usr/lib64/libipv6calc.so.1.0.0 (0x00007f6ae6ac2000) libipv6calc_db_wrapper.so.1.0.0 => /usr/lib64/libipv6calc_db_wrapper.so.1.0.0 (0x00007f6ae65c1000) libc.so.6 => /lib64/libc.so.6 (0x00007f6ae61fe000) /lib64/ld-linux-x86-64.so.2 (0x00007f6ae6905000) ~ $ LD_PRELOAD=/lib/libm-2.27.so:/usr/lib/libssl.so ipv6calc ipv6calc: version 1.0.0 ANON_ZEROISE ANON_ANONYMIZE (P) & (C) 2001-2017 by Peter Bieringer <pb (at) bieringer.de> This program formats and calculates IPv6 addresses and can do many more tricky things See 'ipv6calc -?|-h|--help for online help See 'ipv6calc -v|--version -?|-h|--help' for explanation of feature tokens See 'ipv6calc -vv or -vvv for more internal version/feature information I recompiled it with ld.bfd and everything became sane: ~ $ ldd /usr/bin/ipv6calc linux-vdso.so.1 (0x00007ffe1a235000) libipv6calc.so.1.0.0 => /usr/lib64/libipv6calc.so.1.0.0 (0x00007efca787d000) libipv6calc_db_wrapper.so.1.0.0 => /usr/lib64/libipv6calc_db_wrapper.so.1.0.0 (0x00007efca733c000) libcrypto.so.42 => /usr/lib64/libcrypto.so.42 (0x00007efca7d1c000) libm.so.6 => /lib64/libm.so.6 (0x00007efca6fa6000) libc.so.6 => /lib64/libc.so.6 (0x00007efca6be3000) libresolv.so.2 => /lib64/libresolv.so.2 (0x00007efca69cc000) /lib64/ld-linux-x86-64.so.2 (0x00007efca7cd8000) It looks like this package has had other underlinking problems in the past (bug 501734), but that one wasn't using gold.
Can you attach the entire build log for each.
I can confirm switching from gold to bfd fixes the problem.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74f319a5680c75332277a7061709f505f1ccbd92 commit 74f319a5680c75332277a7061709f505f1ccbd92 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-09-14 23:25:55 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-09-14 23:29:17 +0000 net-misc/ipv6calc: fix underlinking Closes: https://bugs.gentoo.org/661536 Signed-off-by: Sam James <sam@gentoo.org> .../files/ipv6calc-4.0.1-underlinking.patch | 79 +++++++++++++++++++++ net-misc/ipv6calc/ipv6calc-4.0.1-r1.ebuild | 80 ++++++++++++++++++++++ 2 files changed, 159 insertions(+)