Nmap Development mailing list archives
Re: Building nmap 5.50 on RHEL-5 i386 failure
From: David Fifield <david () bamsoftware com>
Date: Mon, 31 Jan 2011 09:40:29 -0800
On Mon, Jan 31, 2011 at 06:05:32PM +0100, Bjorn S. Nilsson wrote:
On Mon, 31 Jan 2011, David Fifield wrote:Date: Mon, 31 Jan 2011 02:21:16 -0800 From: David Fifield <david () bamsoftware com> To: Bjorn S. Nilsson <nilsson () nbi dk> Cc: nmap-dev () insecure org Subject: Re: Building nmap 5.50 on RHEL-5 i386 failure On Sat, Jan 29, 2011 at 01:17:31PM +0100, Bjorn S. Nilsson wrote:Hello, Thanks for 5.50, but I can't build it. I have a RedHat 5.6 i386 workstation. Some output: rpmbuild --define "buildnping 0" -bb nmap-5.50-1.spec ... ranlib liblua.a make[1]: Leaving directory `/usr/src/redhat/BUILD/nmap-5.50/liblua' Compiling libpcap make[1]: Entering directory `/usr/src/redhat/BUILD/nmap-5.50/libpcap' gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -O2 -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c ./pcap-linux.c ./pcap-linux.c:154:31: error: netlink/genl/genl.h: No such file or directory ./pcap-linux.c:155:33: error: netlink/genl/family.h: No such file or directory ./pcap-linux.c:156:31: error: netlink/genl/ctrl.h: No such file or directory ... make[1]: *** [pcap-linux.o] Error 1 make[1]: Leaving directory `/usr/src/redhat/BUILD/nmap-5.50/libpcap' make: *** [pcap_build] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.4834 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.4834 (%build) Can you see what I am missing? I'll happily send more information if needed.What is your kernel version? Perhaps the libpcap we bundle is incompatible. Try installing the development package for libpcap and then configuring with --with-libpcap=/usr, replacing /usr with wherever your package manager installs libpcap.Thanks David, --with-libpcap=/usr added to the %configure line solved the problem. This system is a standard RedHat 5.6 workstation, kernel 2.6.18-238.1.1.el5 and libpcap-0.9.4-15.el5.i386
One more thing, what's the version of libpcap? ("yum info libpcap"). 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:
- Building nmap 5.50 on RHEL-5 i386 failure Bjorn S. Nilsson (Jan 29)
- Re: Building nmap 5.50 on RHEL-5 i386 failure m k (Jan 29)
- Re: Building nmap 5.50 on RHEL-5 i386 failure David Fifield (Jan 31)
- Re: Building nmap 5.50 on RHEL-5 i386 failure Bjorn S. Nilsson (Jan 31)
- Re: Building nmap 5.50 on RHEL-5 i386 failure David Fifield (Jan 31)
- Re: Building nmap 5.50 on RHEL-5 i386 failure Bjorn S. Nilsson (Feb 01)
- Re: Building nmap 5.50 on RHEL-5 i386 failure Bjorn S. Nilsson (Jan 31)