Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 389173 - net-wireless/iw-3.1 - ld: cannot find -lnl-genl
Summary: net-wireless/iw-3.1 - ld: cannot find -lnl-genl
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Bjarke Istrup Pedersen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: libnl:3
  Show dependency tree
 
Reported: 2011-11-01 10:08 UTC by Adrian Bassett
Modified: 2011-11-14 13:15 UTC (History)
2 users (show)

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


Attachments
emerge log for iw-3.1 against libnl-3.2.2 (net-wireless:iw-3.1:20111101-093751.log,1.57 KB, text/plain)
2011-11-01 10:10 UTC, Adrian Bassett
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Bassett 2011-11-01 10:08:37 UTC
net-wireless/iw-3.1 fails to compile.

Diagnostic is '/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lnl-genl'

Both libnl-1.1-r2 and libnl-3.2.2 are installed.

# ls /usr/lib/libnl-genl*
lrwxrwxrwx 1 root root    23 Oct 31 09:24 /usr/lib/libnl-genl-3.so -> libnl-genl-3.so.200.2.0
lrwxrwxrwx 1 root root    23 Oct 31 09:24 /usr/lib/libnl-genl-3.so.200 -> libnl-genl-3.so.200.2.0
-rwxr-xr-x 1 root root 19392 Oct 31 09:24 /usr/lib/libnl-genl-3.so.200.2.0

Reproducible: Always
Comment 1 Adrian Bassett 2011-11-01 10:10:38 UTC
Created attachment 291423 [details]
emerge log for iw-3.1 against libnl-3.2.2
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2011-11-01 16:07:21 UTC
That's odd. I already downgraded its dep to dev-libs/libnl:1.1 for another bug report, so that dependency should probably be fixed as well (and just let upstream handle libnl:3 support).
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2011-11-01 16:09:31 UTC
Not applying the patch (and thusly expecting no specific version like 1 or 2 or 3) has it compiling nicely against 1.1...
Comment 4 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2011-11-02 10:45:39 UTC
Fixed, please allow the mirrors to catch up before you emerge --sync and test.
Comment 5 Adrian Bassett 2011-11-04 13:41:02 UTC
(In reply to comment #4)
> Fixed, please allow the mirrors to catch up before you emerge --sync and test.

Thanks - iw-3.1 now recompiles OK without the need for changes to libnl and links against v1 of libnl.

# ldd /usr/sbin/iw
	linux-vdso.so.1 =>  (0x00007fff737ff000)
	libnl.so.1 => /usr/lib64/libnl.so.1 (0x00007f1c51cc4000)
	libc.so.6 => /lib64/libc.so.6 (0x00007f1c5191e000)
	libm.so.6 => /lib64/libm.so.6 (0x00007f1c5169a000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f1c51f16000)
Comment 6 Adrian Bassett 2011-11-08 09:24:19 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > Fixed, please allow the mirrors to catch up before you emerge --sync and test.
> 
> Thanks - iw-3.1 now recompiles OK without the need for changes to libnl and
> links against v1 of libnl.
> 
> # ldd /usr/sbin/iw
>     linux-vdso.so.1 =>  (0x00007fff737ff000)
>     libnl.so.1 => /usr/lib64/libnl.so.1 (0x00007f1c51cc4000)
>     libc.so.6 => /lib64/libc.so.6 (0x00007f1c5191e000)
>     libm.so.6 => /lib64/libm.so.6 (0x00007f1c5169a000)
>     /lib64/ld-linux-x86-64.so.2 (0x00007f1c51f16000)

A patch has been applied to the Makefile in the master branch of the iw git repository (15bc193a926ec67e25de175f7dfe45df8cbd3e9a) such that iw now compiles against libnl-3.2.2,

# ldd /usr/local/sbin/iw
	linux-vdso.so.1 =>  (0x00007fff89dff000)
	libnl-genl-3.so.200 => /usr/lib64/libnl-genl-3.so.200 (0x00007fcc9c748000)
	libnl-3.so.200 => /usr/lib64/libnl-3.so.200 (0x00007fcc9c52e000)
	libc.so.6 => /lib64/libc.so.6 (0x00007fcc9c188000)
	libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fcc9bf6a000)
	libm.so.6 => /lib64/libm.so.6 (0x00007fcc9bce6000)
	/lib64/ld-linux-x86-64.so.2 (0x00007fcc9c94d000)
Comment 7 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2011-11-14 10:09:11 UTC
I have bumped iw to 3.2, and added the patch 9c1d758129e02af5623b4faa52342b8bae3f5fd9 from the upstream git, including a little change I made to it, to make it work.
Comment 8 Arfrever Frehtes Taifersar Arahesis 2011-11-14 12:54:54 UTC
net-wireless/iw-3.2 still has RDEPEND="dev-libs/libnl:1.1".
Comment 9 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2011-11-14 13:15:03 UTC
Fixed, now it only depends on dev-libs/libnl