Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 661536 - net-misc/ipv6calc underlinking with
Summary: net-misc/ipv6calc underlinking with
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
Depends on:
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: ---


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/ undefined symbol: log2
~ $ ldd /usr/bin/ipv6calc (0x00007ffd05f85000) => /usr/lib64/ (0x00007f6ae6ac2000) => /usr/lib64/ (0x00007f6ae65c1000) => /lib64/ (0x00007f6ae61fe000)
        /lib64/ (0x00007f6ae6905000)
~ $ LD_PRELOAD=/lib/ ipv6calc
ipv6calc: version 1.0.0  ANON_ZEROISE ANON_ANONYMIZE
(P) & (C) 2001-2017 by Peter Bieringer <pb (at)>
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 (0x00007ffe1a235000) => /usr/lib64/ (0x00007efca787d000) => /usr/lib64/ (0x00007efca733c000) => /usr/lib64/ (0x00007efca7d1c000) => /lib64/ (0x00007efca6fa6000) => /lib64/ (0x00007efca6be3000) => /lib64/ (0x00007efca69cc000)
        /lib64/ (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.