Wayne Sallee wrote:
I kept getting the following error on Make:
g++: error: ../libpcap/libpcap.a: No such file or directory

I was able to get it to work by changing:
./configure --prefix=/usr --with-liblua=included &&

to:
./configure --prefix=/usr --with-liblua=included --with-libpcap=included &&

This is apparently a long standing bug with Nmap.

There are some patches for the problem, but I could not figure it out, so
using the --with-libpcap=included got it working.

All I can say is that the instructions in the book work for me. I do not have libpcap.a installed.

Looking at my log:

checking pcap.h usability... yes
checking pcap.h presence... yes
checking for pcap.h... yes
checking for pcap_datalink in -lpcap... yes
...
checking if libpcap is suitable... yes
checking whether pcap_get_selectable_fd is declared... yes
...
checking if PCAP_NETMASK_UNKNOWN is defined/handled by libpcap... yes

A couple of places I see -lpcap specified when linking.

I suspect you have libpcap.a specified in some .la file. See http://www.linuxfromscratch.org/blfs/view/svn/introduction/la-files.html

  -- Bruce

--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to