Nmap Development mailing list archives

Re: Compiling nmap on AIX 6.1


From: David Fifield <david () bamsoftware com>
Date: Tue, 23 Feb 2010 09:54:42 -0700

On Tue, Feb 23, 2010 at 04:31:38PM +0100, nmapuseraix wrote:
Hello,

I am trying to compile nmap on AIX 6.1.

Running configure without parameters goes ok, then gmake ends with:

/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include  -I../include   -g -O2 -Wall -c -o 
route-bsd.lo route-bsd.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../include -I../include -g -O2 -Wall -c route-bsd.c  -DPIC -o 
.libs/route-bsd.o
route-bsd.c: In function 'route_loop':
route-bsd.c:469: error: too few arguments to function 'knlist'
route-bsd.c:474: error: 'struct radix_node_head' has no member named 'rnh_next'
route-bsd.c:477: error: 'struct radix_node_head' has no member named 'rnh_af'
gmake[2]: *** [route-bsd.lo] Error 1
gmake[2]: Leaving directory `/ibm/aixgnu/nmap-5.21/libdnet-stripped/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/ibm/aixgnu/nmap-5.21/libdnet-stripped'
gmake: *** [dnet_build] Error 2


So I have downloaded newest libpcap and libdnet and run:

Did you compile the new libpcap and libdnet from source, or get binary
packages? If you compiled from source, I am surprised that libdnet would
build there but fail to build in the Nmap tree. It would help if you
could send the output of configure from both versions of libdnet.

If you got binary packages, what are the contents of the
/ibm/aixgnu/libpcap-1.0.1 and /ibm/aixgnu/libdnet-1.12 directories? I
don't know anything about AIX, but maybe the message

ld: 0711-317 ERROR: Undefined symbol: .pcap_next_ex
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status

is an indication that it couldn't find the libpcap library file.

Try adding those -bloadmap and -bnoquiet options, either by editing the
ncat Makefile directly, or by configuring with

./configure --with-libpcap=/ibm/aixgnu/libpcap-1.0.0 --with-libdnet=/ibm/aixgnu/libdnet-1.12 LDFLAGS="-bloadmap 
-bnoquiet"

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: