
Nmap Development mailing list archives
Re: Problem compiling nmap3.81 on solaris 8
From: Andreas Ericsson <ae () op5 se>
Date: Thu, 17 Feb 2005 23:53:46 +0100
Andre Lue wrote:
Greets, I'm stumped here and hope someone can help me out. I've compiled nmap numerous time s on this solaris 8 machine with gcc 3.2.2. The compile ends with the following, libposix4 is on the machine and works(in the Makefile STATIC= -static)
ls /{lib,usr/lib}/libposix4.aChances are you only have the shared library installed, while -static requires the current ar archive.
output snipped no errors up to this point ... Compiling libnbase cd nbase && make make[1]: Entering directory `/export/home/digi/tars/nmap/nmap-3.81/nbase' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/export/home/digi/tars/nmap/nmap-3.81/nbase' Compiling libnsock cd ./nsock/src && make make[1]: Entering directory `/export/home/digi/tars/nmap/nmap-3.81/nsock/src' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/export/home/digi/tars/nmap/nmap-3.81/nsock/src' Compiling nmap rm -f nmap g++ -Lnbase -Lnsock/src -static -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 -lnbase -lnsock -lpcre -lpcap -lposix4 -lsocket -lnsl -lm ld: fatal: library -lposix4: not found ld: fatal: File processing errors. No output written to nmap collect2: ld returned 1 exit status make: *** [nmap] Error 1 The compile ends with the following (in the Makefile STATIC= ) output snipped, no errors up to this point Compiling libnbase cd nbase && make make[1]: Entering directory `/export/home/digi/tars/nmap/nmap-3.81/nbase' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/export/home/digi/tars/nmap/nmap-3.81/nbase' Compiling libnsock cd ./nsock/src && make make[1]: Entering directory `/export/home/digi/tars/nmap/nmap-3.81/nsock/src' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/export/home/digi/tars/nmap/nmap-3.81/nsock/src' 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 -lnbase -lnsock -lpcre -lpcap -lposix4 -lsocket -lnsl -lm Undefined first referenced symbol in file SSL_load_error_strings nsock/src/libnsock.a(nsock_ssl.o) SSL_write nsock/src/libnsock.a(nsock_core.o) RAND_seed nbase/libnbase.a(nbase_rnd.o) SSL_get_error nsock/src/libnsock.a(nsock_core.o) ERR_error_string nsock/src/libnsock.a(nsock_core.o) RAND_pseudo_bytes nbase/libnbase.a(nbase_rnd.o) ERR_get_error nsock/src/libnsock.a(nsock_core.o) SSL_set_fd nsock/src/libnsock.a(nsock_core.o) RAND_status nbase/libnbase.a(nbase_rnd.o) SSL_free nsock/src/libnsock.a(nsock_iod.o) SSL_read nsock/src/libnsock.a(nsock_core.o) SSLv23_client_method nsock/src/libnsock.a(nsock_ssl.o) SSL_SESSION_free service_scan.o SSL_new nsock/src/libnsock.a(nsock_core.o) SSL_CTX_new nsock/src/libnsock.a(nsock_ssl.o) SSL_connect nsock/src/libnsock.a(nsock_core.o) SSL_shutdown nsock/src/libnsock.a(nsock_iod.o) RAND_bytes nbase/libnbase.a(nbase_rnd.o) SSL_CTX_set_verify nsock/src/libnsock.a(nsock_ssl.o) ERR_reason_error_string nsock/src/libnsock.a(nsock_core.o) SSL_get_session nsock/src/libnsock.a(nsock_iod.o) SSL_set_session nsock/src/libnsock.a(nsock_core.o) SSL_get1_session nsock/src/libnsock.a(nsock_iod.o) SSL_CTX_set_timeout nsock/src/libnsock.a(nsock_ssl.o) SSL_CTX_ctrl nsock/src/libnsock.a(nsock_ssl.o) SSL_CTX_set_cipher_list nsock/src/libnsock.a(nsock_ssl.o) SSL_library_init nsock/src/libnsock.a(nsock_ssl.o) ld: fatal: Symbol referencing errors. No output written to nmap collect2: ld returned 1 exit status make: *** [nmap] Error 1 If I do a nm libnsock.a, it does list UNDEF for each left hand side symbol listed.
Apparently you don't have the openssl libraries installed. It's required by nmap unless you explicitly tell it to compile without it (--without-openssl should work nicely as ./configure directive for it). Seems a bit weird that you got that far without errors though. It suggests you have the header files but not the libraries.
Btw, this supports the idea about only the shared libposix4 being installed. Do you have libposix4.a anywhere on your system?
Any help you can provide is appreciated ---------------------------------------------------------------------For help using this (nmap-dev) mailing list, send a blank email to nmap-dev-help () insecure org . List archive: http://seclists.org
-- Andreas Ericsson andreas.ericsson () op5 se OP5 AB www.op5.se Lead Developer ---------------------------------------------------------------------For help using this (nmap-dev) mailing list, send a blank email to nmap-dev-help () insecure org . List archive: http://seclists.org
Current thread:
- Problem compiling nmap3.81 on solaris 8 Andre Lue (Feb 17)
- Re: Problem compiling nmap3.81 on solaris 8 Andreas Ericsson (Feb 17)
- Re: Problem compiling nmap3.81 on solaris 8 Andre Lue (Feb 19)