Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 661536 - net-misc/ipv6calc underlinking with ld.gold
Summary: net-misc/ipv6calc underlinking with ld.gold
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-18 16:38 UTC by Enne Eziarc
Modified: 2019-02-05 21:05 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Enne Eziarc 2018-07-18 16:38:46 UTC
~ $ /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.
Comment 1 Anthony Basile gentoo-dev 2018-07-21 00:23:10 UTC
Can you attach the entire build log for each.
Comment 2 Wolfram Schlich 2019-02-05 21:05:41 UTC
I can confirm switching from gold to bfd fixes the problem.