Nmap Development mailing list archives

Re: Port number in verbose mode


From: Andrew Whatson <whatson () gmail com>
Date: Thu, 10 Jun 2010 22:15:52 +1000

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:
On 05/12/2010 06:38 AM, rebellis wrote:
On Tue, May 11, 2010 at 5:05 PM, David Fifield <david () bamsoftware com> wrote:
On Mon, May 10, 2010 at 09:39:18PM -0300, rebellis wrote:
Done! Please see patch attached.

Thank you. It's committed in r17535. I credited you as "rebellis"; is
that all right?

rebellis is just perfect! thank you :)

I'm looking for tasks like that to get my programming skills in shape
again. I have good knowledge of C++ (and C to a lesser extent) but no
previous experience in network programming. I thought I could learn a
bit by helping Nmap's development. Any hints on where to begin? :)

Here's a link with some ideas.
http://seclists.org/nmap-dev/2010/q1/958

Thanks. I just read all emails linked to this thread. I also checked
the FIXME and TODO tags in Nmap's source code and the developers' todo
list as well. Hope I can find something to work on.

Now regarding the link errors. Revision 17520 aborts compilation with
the linking shown below. Please notice I can successfully compile Nmap
5.21. I'm using Arch Linux x86_64, gcc 4.5.0 and GNU Make 3.81. The
complete make output goes attached. Thanks in advance.

Does this persist after a "make distclean" or a fresh checkout?

Maybe you can pinpoint where this started happening. I would test r17350
and r17351, because r17351 changed how libpcap is linked. Do
       svn update -r 17350
       svn update -r 17351

Same problem. When Nmap's is linked with -lpcap everything works fine.
However when the code is static linked with libpcap/libpcap.a the
building process fails. It looks like it's a problem with libpcap on
x86_64 architectures according to this bug report:
http://bugs.gentoo.org/312895. I'm working on a fix right now. I'll
let you know as soon as I have something to show.

Regards,

--
rebellis


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'
/usr/local/src/nmap/libpcap/./pcap-linux.c:522: undefined reference to
`genl_connect'
/usr/local/src/nmap/libpcap/./pcap-linux.c:528: undefined reference to
`genl_ctrl_alloc_cache'
/usr/local/src/nmap/libpcap/./pcap-linux.c:535: undefined reference to
`genl_ctrl_search_by_name'
/usr/local/src/nmap/libpcap/./pcap-linux.c:547: undefined reference to
`nl_handle_destroy'
/usr/local/src/nmap/libpcap/./pcap-linux.c:545: undefined reference to
`nl_cache_free'
../libpcap/libpcap.a(pcap-linux.o): In function `del_mon_if':
/usr/local/src/nmap/libpcap/./pcap-linux.c:653: undefined reference to
`nlmsg_alloc'
/usr/local/src/nmap/libpcap/./pcap-linux.c:660: undefined reference to
`genl_family_get_id'
/usr/local/src/nmap/libpcap/./pcap-linux.c:660: undefined reference to
`genlmsg_put'
/usr/local/src/nmap/libpcap/./pcap-linux.c:662: undefined reference to `nla_put'
/usr/local/src/nmap/libpcap/./pcap-linux.c:664: undefined reference to
`nl_send_auto_complete'
/usr/local/src/nmap/libpcap/./pcap-linux.c:685: undefined reference to
`nl_wait_for_ack'
/usr/local/src/nmap/libpcap/./pcap-linux.c:702: undefined reference to
`nlmsg_free'
/usr/local/src/nmap/libpcap/./pcap-linux.c:692: undefined reference to
`nlmsg_free'
/usr/local/src/nmap/libpcap/./pcap-linux.c:710: undefined reference to
`nlmsg_free'
/usr/local/src/nmap/libpcap/./pcap-linux.c:717: undefined reference to
`nlmsg_free'
../libpcap/libpcap.a(pcap-linux.o): In function `nl80211_cleanup':
/usr/local/src/nmap/libpcap/./pcap-linux.c:554: undefined reference to
`genl_family_put'
/usr/local/src/nmap/libpcap/./pcap-linux.c:555: undefined reference to
`nl_cache_free'
../libpcap/libpcap.a(pcap-linux.o): In function `add_mon_if':
/usr/local/src/nmap/libpcap/./pcap-linux.c:571: undefined reference to
`nlmsg_alloc'
/usr/local/src/nmap/libpcap/./pcap-linux.c:578: undefined reference to
`genl_family_get_id'
/usr/local/src/nmap/libpcap/./pcap-linux.c:578: undefined reference to
`genlmsg_put'
/usr/local/src/nmap/libpcap/./pcap-linux.c:580: undefined reference to `nla_put'
/usr/local/src/nmap/libpcap/./pcap-linux.c:581: undefined reference to `nla_put'
/usr/local/src/nmap/libpcap/./pcap-linux.c:582: undefined reference to `nla_put'
/usr/local/src/nmap/libpcap/./pcap-linux.c:584: undefined reference to
`nl_send_auto_complete'
/usr/local/src/nmap/libpcap/./pcap-linux.c:605: undefined reference to
`nl_wait_for_ack'
/usr/local/src/nmap/libpcap/./pcap-linux.c:612: undefined reference to
`nlmsg_free'
/usr/local/src/nmap/libpcap/./pcap-linux.c:622: undefined reference to
`nlmsg_free'
/usr/local/src/nmap/libpcap/./pcap-linux.c:630: undefined reference to
`nlmsg_free'
/usr/local/src/nmap/libpcap/./pcap-linux.c:637: undefined reference to
`nlmsg_free'
../libpcap/libpcap.a(pcap-linux.o): In function `nl80211_cleanup':
/usr/local/src/nmap/libpcap/./pcap-linux.c:556: undefined reference to
`nl_handle_destroy'
collect2: ld returned 1 exit status
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


Current thread: