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
*** This bug has been marked as a duplicate of bug 247931 ***