Nmap Development mailing list archives

Re: Port number in verbose mode


From: David Fifield <david () bamsoftware com>
Date: Sun, 13 Jun 2010 17:27:43 -0600

On Thu, Jun 10, 2010 at 03:31:11PM +0300, ithilgore wrote:
On 06/10/2010 03:15 PM, Andrew Whatson wrote:
On Wed, Jun 9, 2010 at 3:43 AM, David Fifield <david () bamsoftware com> wrote:
On Tue, Jun 08, 2010 at 01:32:29PM +0300, ithilgore wrote:
Any progress with the fix? Latest version of svn Nmap doesn't compile on
x86_64 systems.

Yes, I posted a patch at http://seclists.org/nmap-dev/2010/q2/606 but
nobody reported success or failure. Does it work for you?

This patch didn't work for me (also an Archlinux x86_64 user).  I patched a
fresh tree and attempted to build - unfortunately it fails with the same set
of errors, which follow.

Andrew Whatson

g++   -o nping ArgParser.o NetworkLayerElement.o PacketElement.o
common.o common_modified.o nping.o RawData.o UDPHeader.o  NpingOps.o
TCPHeader.o utils.o utils_net.o IPv4Header.o ICMPv4Header.o
IPv6Header.o output.o TransportLayerElement.o stats.o NpingTargets.o
NpingTarget.o EthernetHeader.o ARPHeader.o EchoHeader.o
../nbase/libnbase.a ../nsock/src/libnsock.a ../libpcap/libpcap.a -lssl
-lcrypto ../libdnet-stripped/src/.libs/libdnet.a -ldl  -lpthread
../libpcap/libpcap.a(pcap-linux.o): In function `nl80211_init':
/usr/local/src/nmap/libpcap/./pcap-linux.c:515: undefined reference to
`nl_handle_alloc'

Same for me. Exact same errors for Arch Linux x86_64 (even with patch applied).

It turns out the patch does work, but it needs to be applied to both
nmap and nping, because they both link with libpcap. I've tested it and
it's committed now.

It appears this was happening on Arch Linux because Arch installs libnl
by default, which other distributions must not.

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: