Home page logo

nmap-dev logo Nmap Development mailing list archives

Nmap 6.40 - build errors (ncat)
From: Vlatko Kosturjak <kost () linux hr>
Date: Wed, 7 Aug 2013 12:01:10 +0200


Standard Ubuntu LTS (x86_64) on Amazon instance:

$ ./configure
$ make 
gcc -I./../liblua  -I../libpcap -DHAVE_CONFIG_H -DNCAT_DATADIR="\"/usr/local/share/ncat\"" -D_FORTIFY_SOURCE=2 -I. -I.. 
-I../nsock/include/ -I../nbase -DLUA_USE_POSIX -DLUA_USE_DLOPEN -DHAVE_LUA=1 -I../liblua -g -O2 -Wall -c ncat_lua.c -o 
gcc -o ncat -g -O2 -Wall  -L../libpcap  ncat_main.o ncat_connect.o ncat_core.o ncat_posix.o ncat_listen.o ncat_proxy.o 
ncat_ssl.o base64.o http.o util.o sys_wrap.o http_digest.o ncat_lua.o ../nsock/src/libnsock.a ../nbase/libnbase.a -lssl 
-lcrypto -lpcap ./../liblua/liblua.a -lm -ldl -lssl -lcrypto -ldl 
gcc -I./../liblua  -I../libpcap -DHAVE_CONFIG_H -DNCAT_DATADIR="\"/usr/local/share/ncat\"" -D_FORTIFY_SOURCE=2 -I. -I.. 
-I../nsock/include/ -I../nbase -DLUA_USE_POSIX -DLUA_USE_DLOPEN -DHAVE_LUA=1 -I../liblua -g -O2 -Wall -c test/addrset.c 
-o test/addrset.o
gcc -o test/addrset -g -O2 -Wall -L../libpcap  test/addrset.o ncat_core.o sys_wrap.o util.o ncat_lua.o -ldl -lssl 
-lcrypto -ldl  ../nsock/src/libnsock.a ../nbase/libnbase.a -lssl -lcrypto -lpcap ./../liblua/liblua.a -lm
/usr/bin/ld: ./../liblua/liblua.a(loadlib.o): undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
/usr/bin/ld: note: 'dlclose@@GLIBC_2.2.5' is defined in DSO 
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libdl.so so try adding it to the linker command line
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libdl.so: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[1]: *** [test/addrset] Error 1
make[1]: Leaving directory `/home/ubuntu/src/nmap-6.40/ncat'
make: *** [ncat_build] Error 2
ubuntu () localhost:~/src/nmap-6.40$ 

Note: ./configure --without-ncat && make # works

Note2: Same happens on normal Ubuntu 12.0.4 LTS (x86_64)...

Best regards,
Vlatko Kosturjak - KoSt
Sent through the dev mailing list
Archived at http://seclists.org/nmap-dev/

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]