Nmap Development mailing list archives

nmap-5.35DC1 fails to build


From: "J. L. " <vwyodapink () gmail com>
Date: Thu, 30 Sep 2010 04:39:15 +0100

I am trying to get nmap to build for my machine. I am on a gumstix
overo running angstrom linux with a gnome desktop and seem to not be
able to get nmap to build for me. I am not sure what the errors mean
and have not had much luck searching the net for similar issues. If
you need to know more about my setup please feel free to ask and I
will post what you need to know. Here is the error:
Compiling nmap
rm -f nmap
g++ -Wl,-E  -Lnbase -Lnsock/src/   -o nmap main.o nmap.o targets.o
tcpip.o nmap_error.o utils.o idle_scan.o osscan.o osscan2.o output.o
payload.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  traceroute.o portreasons.o xml.o   -lnbase
-lnsock -lpcre libpcap/libpcap.a -lssl -lcrypto
libnetutil/libnetutil.a ./libdnet-stripped/src/.libs/libdnet.a  -lnl
-ldl
nmap.o: In function `nmap_free_mem()':
/installSources/nmap-5.35DC1/nmap.cc:1956: undefined reference to `close_nse()'
nmap.o: In function `nmap_main(int, char**)':
/installSources/nmap-5.35DC1/nmap.cc:1605: undefined reference to `open_nse()'
/installSources/nmap-5.35DC1/nmap.cc:1817: undefined reference to
`script_scan(std::vector<Target*, std::allocator<Target*> >&)'
output.o: In function `formatScriptOutput':
/installSources/nmap-5.35DC1/output.cc:418: undefined reference to
`ScriptResult::get_output() const'
/installSources/nmap-5.35DC1/output.cc:427: undefined reference to
`ScriptResult::get_id() const'
output.o: In function `printhostscriptresults(Target*)':
/installSources/nmap-5.35DC1/output.cc:1932: undefined reference to
`ScriptResult::get_id() const'
/installSources/nmap-5.35DC1/output.cc:1933: undefined reference to
`ScriptResult::get_output() const'
output.o: In function `printportoutput(Target*, PortList*)':
/installSources/nmap-5.35DC1/output.cc:783: undefined reference to
`ScriptResult::get_id() const'
/installSources/nmap-5.35DC1/output.cc:784: undefined reference to
`ScriptResult::get_output() const'
collect2: ld returned 1 exit status
make[1]: *** [nmap] Error 1
make[1]: Leaving directory `/installSources/nmap-5.35DC1'
make: *** [all] Error 2


I am also having the same issue with 5.21, so must be something I am
not seeing or forgot, though I am sure i got all the prerequisites.
Thanks for any help or pointers with this problem and sorry if this
really obvious or a basic problem
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


Current thread: