Nmap Development mailing list archives

Problem compiling nmap3.81 on solaris 8


From: Andre Lue <sean.lue () gmail com>
Date: Thu, 17 Feb 2005 12:53:41 -0500

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)
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.

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



Current thread: