Nmap Development mailing list archives
Re: nping/libpcap build error
From: David Fifield <david () bamsoftware com>
Date: Sat, 3 Mar 2012 21:26:25 -0800
On Tue, Feb 14, 2012 at 10:14:02AM -0500, Patrick Donnelly wrote:
On Mon, Feb 13, 2012 at 10:00 PM, David Fifield <david () bamsoftware com> wrote:On Mon, Feb 13, 2012 at 09:43:13PM -0500, Patrick Donnelly wrote:Hi list, I'm experiencing a strange error building nmap in the trunk: gcc -o ncat -g -O2 -Wall -L../libpcap ncat_main.o ncat_connect.o ncat_core.o ncat_posix.o ncat_listen.o ncat_proxy.o ncat_ssl.o base64.o http.o util.o sys_wrap.o http_digest.o ../nsock/src/libnsock.a ../nbase/libnbase.a -lssl -lcrypto -lpcap -lssl -lcrypto -ldl ../libpcap/libpcap.a(pcap-linux.o): In function `nl80211_init': nmap/svn/nmap/libpcap/./pcap-linux.c:515: undefined reference to `nl_handle_alloc' nmap/svn/nmap/libpcap/./pcap-linux.c:522: undefined reference to `genl_connect' nmap/svn/nmap/libpcap/./pcap-linux.c:528: undefined reference to `genl_ctrl_alloc_cache' nmap/svn/nmap/libpcap/./pcap-linux.c:535: undefined reference to `genl_ctrl_search_by_name' nmap/svn/nmap/libpcap/./pcap-linux.c:547: undefined reference to `nl_handle_destroy' nmap/svn/nmap/libpcap/./pcap-linux.c:545: undefined reference to `nl_cache_free' ../libpcap/libpcap.a(pcap-linux.o): In function `nl80211_cleanup': nmap/svn/nmap/libpcap/./pcap-linux.c:554: undefined reference to `genl_family_put' nmap/svn/nmap/libpcap/./pcap-linux.c:555: undefined reference to `nl_cache_free' ../libpcap/libpcap.a(pcap-linux.o): In function `del_mon_if': nmap/svn/nmap/libpcap/./pcap-linux.c:653: undefined reference to `nlmsg_alloc' nmap/svn/nmap/libpcap/./pcap-linux.c:660: undefined reference to `genl_family_get_id' nmap/svn/nmap/libpcap/./pcap-linux.c:660: undefined reference to `genlmsg_put' nmap/svn/nmap/libpcap/./pcap-linux.c:662: undefined reference to `nla_put' nmap/svn/nmap/libpcap/./pcap-linux.c:664: undefined reference to `nl_send_auto_complete' nmap/svn/nmap/libpcap/./pcap-linux.c:685: undefined reference to `nl_wait_for_ack' nmap/svn/nmap/libpcap/./pcap-linux.c:692: undefined reference to `nlmsg_free' nmap/svn/nmap/libpcap/./pcap-linux.c:702: undefined reference to `nlmsg_free' nmap/svn/nmap/libpcap/./pcap-linux.c:710: undefined reference to `nlmsg_free' nmap/svn/nmap/libpcap/./pcap-linux.c:717: undefined reference to `nlmsg_free' ../libpcap/libpcap.a(pcap-linux.o): In function `add_mon_if': nmap/svn/nmap/libpcap/./pcap-linux.c:571: undefined reference to `nlmsg_alloc' nmap/svn/nmap/libpcap/./pcap-linux.c:578: undefined reference to `genl_family_get_id' nmap/svn/nmap/libpcap/./pcap-linux.c:578: undefined reference to `genlmsg_put' nmap/svn/nmap/libpcap/./pcap-linux.c:580: undefined reference to `nla_put' nmap/svn/nmap/libpcap/./pcap-linux.c:581: undefined reference to `nla_put' nmap/svn/nmap/libpcap/./pcap-linux.c:582: undefined reference to `nla_put' nmap/svn/nmap/libpcap/./pcap-linux.c:584: undefined reference to `nl_send_auto_complete' nmap/svn/nmap/libpcap/./pcap-linux.c:605: undefined reference to `nl_wait_for_ack' nmap/svn/nmap/libpcap/./pcap-linux.c:612: undefined reference to `nlmsg_free' nmap/svn/nmap/libpcap/./pcap-linux.c:622: undefined reference to `nlmsg_free' nmap/svn/nmap/libpcap/./pcap-linux.c:630: undefined reference to `nlmsg_free' nmap/svn/nmap/libpcap/./pcap-linux.c:637: undefined reference to `nlmsg_free' ../libpcap/libpcap.a(pcap-linux.o): In function `nl80211_cleanup': nmap/svn/nmap/libpcap/./pcap-linux.c:556: undefined reference to `nl_handle_destroy' collect2: ld returned 1 exit status make[1]: *** [ncat] Error 1 make[1]: Leaving directory `nmap/svn/nmap/ncat' make: *** [ncat_build] Error 2 Anyone know how to fix this? I'm building on Archlinux x86_64 using kernel 3.2.1.It's a longstanding bug. You have to make it link with -lnl. Here's a workaround: http://seclists.org/nmap-dev/2011/q3/448 (svn merge -c -23163)After running this command (on the latest version of the trunk):
Please update and give this another try after r28203. Do a "make distclean" and then reconfigure. 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:
- nping/libpcap build error Patrick Donnelly (Feb 13)
- Re: nping/libpcap build error David Fifield (Feb 13)
- Re: nping/libpcap build error Patrick Donnelly (Feb 14)
- Re: nping/libpcap build error Rickey Visinski (Feb 14)
- Re: nping/libpcap build error David Fifield (Mar 03)
- Re: nping/libpcap build error Patrick Donnelly (Mar 03)
- Re: nping/libpcap build error Patrick Donnelly (Feb 14)
- Re: nping/libpcap build error David Fifield (Feb 13)