Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 490584

Summary: dev-libs/libnl-3.2.23 USE=python - netlink/genl/capi_wrap.c: ld: cannot find -lnl-3
Product: Gentoo Linux Reporter: Philipp <philipp>
Component: [OLD] LibraryAssignee: Gentoo Netmon project <netmon>
Status: RESOLVED FIXED    
Severity: normal CC: python, Sander.Sweers, staff, thanasis, xmw
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=477110
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Log of failed build

Description Philipp 2013-11-06 18:34:02 UTC
Created attachment 362698 [details]
Log of failed build

When building dev-libs/libnl-3.2.23 with no version of libnl installed it fails with:

building 'netlink/genl/_capi' extension
[...]
x86_64-pc-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,--as-needed -L. -Wl,-O1 -Wl,--as-needed -march=core-avx-i -O2 -pipe /var/tmp/paludis/dev-libs-libnl-3.2.23/work/libnl-3.2.23-python2_7/temp.linux-x86_64-2.7/netlink/genl/capi_wrap.o -L/usr/lib64 -lnl-3 -lnl-genl-3 -lpython2.7 -o /var/tmp/paludis/dev-libs-libnl-3.2.23/work/libnl-3.2.23-python2_7/lib/netlink/genl/_capi.so
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.1/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lnl-3
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.1/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lnl-genl-3


Workaround: Install dev-libs/libnl-3.2.22 first and then update to 3.2.23.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-11-08 15:52:18 UTC
I don't see why library_dirs is not included. Maybe the patch from bug #477110 is wrong?
Comment 2 thanasis 2013-11-08 20:26:47 UTC
Workaround worked for me too. Thanks :)
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2013-12-20 15:05:27 UTC
Fixed in 3.2.23, 3.2.24_rc1 and 3.2.9999.