Nmap Development mailing list archives
Re: Resend: Issues cross-compiling nmap-4.68
From: David Fifield <david () bamsoftware com>
Date: Tue, 22 Jul 2008 17:01:57 -0600
On Tue, Jul 22, 2008 at 02:21:49PM -0700, Philip A. Prindeville wrote:
David Fifield wrote:On Tue, Jul 22, 2008 at 08:53:41AM -0700, Philip Prindeville wrote:Anyone? We're trying to get release 0.5 finalized and this is a showstopper for us. Any assistance appreciated.Did you try --with-libpcap=included as I suggested in http://seclists.org/nmap-dev/2008/q3/0098.html? --with-libpcap=no is mistaken; Nmap requires libpcap, either it's own copy or a system copy. The test for the system copy is broken with respect to cross-compiling, but using the included copy should avoid that. David FifieldSorry, not on the mailing list, so didn't see it. But the short answer is "no": ( \ ... ./configure \ ... --with-liblua=included \ --without-zenmap \ --with-libpcap=included \ ) ... checking for library containing putmsg... no checking for ether_hostton... no checking if --disable-protochain option is specified... enabled configure: error: pcap type not determined when cross-compiling; use --with-pcap=... configure: error: ./configure failed for libpcap make: *** [/home/philipp/trunk2/build_i586/nmap-4.68/.configured] Error 1 [philipp@tosh ~/trunk2]$
Okay, thanks. That's at least a different error. This one comes from libpcap's configure script, not Nmap's. (Notice it's talking about --with-pcap, not --with-libpcap.) It's looking for something like --with-pcap=linux or --with-pcap=bpf. "linux" seems correct in this situation. So this would work: ./configure --with-libpcap=included --with-pcap=linux except that there appears to be a later check for the Linux version that will also fail when cross compiling. One way to work around it is with ac_cv_linux_vers=X.X.XX ./configure --with-libpcap=included --with-pcap=linux where "X.X.XX" is the kernel version you'll be compiling against. The Nmap configure script should be fixed to allow cross compiling, but you are going to have to deal with these issues anyway, because you have to cross-compile libpcap at any rate. David Fifield _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- Resend: Issues cross-compiling nmap-4.68 Philip Prindeville (Jul 22)
- Re: Resend: Issues cross-compiling nmap-4.68 David Fifield (Jul 22)
- Re: Resend: Issues cross-compiling nmap-4.68 Philip A. Prindeville (Jul 22)
- Re: Resend: Issues cross-compiling nmap-4.68 David Fifield (Jul 22)
- Re: Resend: Issues cross-compiling nmap-4.68 Philip A. Prindeville (Jul 22)
- Re: Resend: Issues cross-compiling nmap-4.68 David Fifield (Jul 22)