Home page logo
/

nmap-dev logo Nmap Development mailing list archives

Re: Building nmap 5.50 on RHEL-5 i386 failure
From: "Bjorn S. Nilsson" <nilsson () nbi dk>
Date: Tue, 1 Feb 2011 09:10:16 +0100 (CET)

On Mon, 31 Jan 2011, David Fifield wrote:

Date: Mon, 31 Jan 2011 09:40:29 -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 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


libpcap on RedHat 5.6 is version 0.9.4
RedHat 6.0 has version 1.0.0, somewhat older than the 1.1.1 version you
distribute with nmap 5.50.

/Bjorn

====================================================================
Bjorn S. Nilsson          Email:             Bjorn.S.Nilsson () nbi dk
Niels Bohr Institute              or just    nilsson () nbi dk
Blegdamsvej 17            Phone:             +45 35325283
DK-2100 Copenhagen        CellPhone:         +45 28755283
Denmark                   Fax:               +45 35325016
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]