Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 342839 - net-analyzer/nessus-core-2.2.9 fails with forced --as-needed
Summary: net-analyzer/nessus-core-2.2.9 fails with forced --as-needed
Status: RESOLVED DUPLICATE of bug 247931
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-26 22:41 UTC by Nico R.
Modified: 2010-10-26 22:48 UTC (History)
0 users

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 Nico R. 2010-10-26 22:41:09 UTC
This bug is similar to bug 161968. I re-emerged net-analyzer/nessus-libraries, as suggested in bug 161968 comment 2, but that did not solve the problem.


net-analyzer/nessus-core-2.2.9 builds fine with i686-pc-linux-gnu-4.4.5, but fails with i686-pc-linux-gnu-4.4.5-asneeded[1]. LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed" in both cases.

On failure, the following error occurs:
> i686-pc-linux-gnu-gcc  `sh ./cflags`  nessus-check-signature.o  -o nessus-check-signature `/usr/bin/nasl-config --libs` `/usr/bin/nessus-config --libs`    -ldl  -lwrap
> /usr/lib/libnessus.so: undefined reference to `pcap_close'
> /usr/lib/libnessus.so: undefined reference to `pcap_perror'
> /usr/lib/libnessus.so: undefined reference to `pcap_open_live'
> /usr/lib/libnessus.so: undefined reference to `pcap_compile'
> /usr/lib/libnessus.so: undefined reference to `pcap_lookupnet'
> /usr/lib/libnessus.so: undefined reference to `pcap_datalink'
> /usr/lib/libnessus.so: undefined reference to `pcap_setfilter'
> /usr/lib/libnessus.so: undefined reference to `pcap_lookupdev'
> /usr/lib/libnessus.so: undefined reference to `pcap_next'

It seems that -lpcap is missing somewhere.


[1] see http://blog.flameeyes.eu/2008/11/14/problems-and-mitigation-strategies-for-as-needed
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2010-10-26 22:48:00 UTC

*** This bug has been marked as a duplicate of bug 247931 ***