Nmap Development mailing list archives

Re: 5.30BETA1 cross-compile regression


From: David Fifield <david () bamsoftware com>
Date: Fri, 16 Jul 2010 17:24:25 -0600

On Mon, Jul 12, 2010 at 07:56:47PM +0100, Nuno Gonçalves wrote:
Looks like 5.30BETA1 is no longer able to cross-compile nicely like
previous versions:

5.30BETA1

checking for library containing setsockopt... none required
checking for library containing gethostbyname... none required
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 version is recent enough... configure: error:
cannot run test program while cross compiling
See `config.log' for more details.
configure: error: ./configure failed for nping


5.21

checking for library containing setsockopt... none required
checking for library containing gethostbyname... none required
checking for library containing dlopen... -ldl
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 version is recent enough... cross-compiling -- assuming yes
configure: creating ./config.status

I think this will work in version 5.35DC1. Please give that a try. The
issue here was the addition of Nping. It implemented its own libpcap
check that didn't support cross-compiling. Now that code is shared
between Nmap and Nping.

David Fifield
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/

Current thread: