Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 343621 - net-libs/libpcap + dev-libs/libnl-2 - libpcap-1.1.1/conftest.c:46: undefined reference to `nl_handle_alloc'
Summary: net-libs/libpcap + dev-libs/libnl-2 - libpcap-1.1.1/conftest.c:46: undefined ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: libnl:3
  Show dependency tree
 
Reported: 2010-11-01 05:11 UTC by Jeroen Roovers (RETIRED)
Modified: 2011-09-10 08:30 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 Jeroen Roovers (RETIRED) gentoo-dev 2010-11-01 05:11:53 UTC
configure:5388: checking for nl_handle_alloc in -lnl
configure:5413: i686-pc-linux-gnu-gcc -o conftest -O2 -pipe -Wall -ggdb -march=athlon-x
p  -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed conftest.c -lnl   >&5
/var/tmp/portage/net-libs/libpcap-1.1.1-r1/temp/cc4ArDoa.o: In function `main':
/var/tmp/portage/net-libs/libpcap-1.1.1-r1/work/libpcap-1.1.1/conftest.c:46: undefined
reference to `nl_handle_alloc'
collect2: ld returned 1 exit status
Comment 1 Alec Moskvin 2011-02-25 00:26:28 UTC
There's an upstream commit that enables support for libnl-2:
https://github.com/mcr/libpcap/commit/bc937fc4ff6715e9bee939041fa02be0755d7d58

And here's the actual patch:
https://github.com/mcr/libpcap/commit/bc937fc4ff6715e9bee939041fa02be0755d7d58.diff

It works with libpcap-1.1.1-r1.
Comment 2 Oleg Gawriloff 2011-04-27 14:34:19 UTC
Any news?
Comment 3 Tomáš Chvátal (RETIRED) gentoo-dev 2011-09-10 08:30:35 UTC
Fixed in main tree. By adding the patch.