Nmap Development mailing list archives

nmap 4.03 compile failing under hp-ux 11.11


From: "John Smith" <jsmith665 () hotmail com>
Date: Fri, 28 Apr 2006 23:57:06 +0000

I am attempting to compile nmap v4.03 under HP-UX 11.11, using GNU standard 
tools (e.g., gcc v4.0.2, gmake v3.80, binutils v2.16.1), libpcap v0.9.4, and 
pcre v6.6.


The following configure runs to completion with no problems:

# CC=gcc ./configure --without-nmapfe --without-openssl


But the follow on make fails:

# make
<snip>
Compiling nmap
rm -f nmap
g++ -Lnbase -Lnsock/src/  -o nmap main.o nmap.o targets.o tcpip.o 
nmap_error.o utils.o idle_scan.o osscan.o output.o scan_engine.o timing.o 
charpool.o services.o protocols.o nmap_rpc.o portlist.o NmapOps.o 
TargetGroup.o Target.o FingerPrintResults.o service_scan.o NmapOutputTable.o 
MACLookup.o nmap_tty.o nmap_dns.o  -lnbase -lnsock -lpcre -lpcap  
libdnet-stripped/src/.libs/libdnet.a -lm
/usr/ccs/bin/ld: Unsatisfied symbols:
   close_mib (first referenced in 
libdnet-stripped/src/.libs/libdnet.a(arp-ioctl.o)) (code)
   open_mib (first referenced in 
libdnet-stripped/src/.libs/libdnet.a(arp-ioctl.o)) (code)
   get_mib_info (first referenced in 
libdnet-stripped/src/.libs/libdnet.a(arp-ioctl.o)) (code)
collect2: ld returned 1 exit status
make: *** [nmap] Error 1


I have also installed libdnet v1.11 and re-configured:

# CC=gcc ./configure --without-nmapfe --without-openssl 
--with-libdnet=/usr/local


And, re-made:

# make
<snip>
Compiling nmap
rm -f nmap
g++ -L/usr/local/lib  -Lnbase -Lnsock/src/  -o nmap main.o nmap.o targets.o 
tcpip.o nmap_error.o utils.o idle_scan.o osscan.o output.o scan_engine.o 
timing.o charpool.o services.o protocols.o nmap_rpc.o portlist.o NmapOps.o 
TargetGroup.o Target.o FingerPrintResults.o service_scan.o NmapOutputTable.o 
MACLookup.o nmap_tty.o nmap_dns.o  -lnbase -lnsock -lpcre -lpcap  -ldnet -lm
/usr/ccs/bin/ld: Unsatisfied symbols:
   close_mib (first referenced in /usr/local/lib/libdnet.a(arp-ioctl.o)) 
(code)
   open_mib (first referenced in /usr/local/lib/libdnet.a(arp-ioctl.o)) 
(code)
   get_mib_info (first referenced in /usr/local/lib/libdnet.a(arp-ioctl.o)) 
(code)
collect2: ld returned 1 exit status
make: *** [nmap] Error 1


Also, to no avail.  I had read a previous posting to this list (30 Jan 
2004), from one Saravanan, where a similar problem (different library, 
different symbols) was observed, with nmap v3.50, under HP-UX 11.11.  The 
posted solution posted had been to change the library symbol positions.  I 
have tried several combinations, again, to no avail.

Any help would be appreciated.

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev


Current thread: