Nmap Development mailing list archives

Re: nmap 5.21, OS X 10.6.2 - doesn't work as root


From: David Fifield <david () bamsoftware com>
Date: Tue, 20 Apr 2010 18:32:06 -0600

On Mon, Apr 19, 2010 at 02:20:04PM -0600, David Fifield wrote:
On Tue, Apr 13, 2010 at 08:08:01PM -0400, Walt Scrivens wrote:
Both were built from source, and the 5.21 was probably built with 10.6.2.

Compiling for 32-bit as
./configure CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32"
does work, so it looks like the problem is back :-(

Nmap r17351 has a patch to libpcap that fixes the problem. You have to
build with --with-libpcap=included but I'll look at making that
automatic for 64-bit OS X. The libpcap patch is this:
http://github.com/mcr/libpcap/commit/43acbb77a8e0b3346b574b3e28793de2d6985e69.

I added a check to see if a patched libpcap is required, and if so,
whether the system libpcap has the patch. If it doesn't have the patch,
the compile will use the built-in libpcap. Please try it (without -m32)
and see if it works. On 64-bit OS X, you should see this in configure
output:

checking net/bpf.h usability... yes
checking net/bpf.h presence... yes
checking for net/bpf.h... yes
checking if libpcap is suitable... no -- BPF_TIMEOUT BIOCSRTIMEOUT bug (64-bit OS X)

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: