Home page logo
/

nmap-dev logo Nmap Development mailing list archives

Re: Error openssl nse_nsock_get_ssl
From: David Fifield <david () bamsoftware com>
Date: Fri, 6 Apr 2012 00:07:09 -0700

On Wed, Apr 04, 2012 at 11:13:17AM +0200, Flyers wrote:
Hi,

I was trying to compile nmap with ssl support.
After installing libssl using : apt-get install libssl-dev

I got this error while compiling nmap 5.61TEST5 :

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 FPEngine.o
FPModel.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
nse_main.o nse_utility.o nse_nsock.o nse_dnet.o nse_fs.o nse_nmaplib.o
nse_debug.o nse_pcrelib.o nse_binlib.o nse_bit.o nse_openssl.o
nse_ssl_cert.o  -lnbase -lnsock libpcre/libpcre.a libpcap/libpcap.a
-lssl -lcrypto libnetutil/libnetutil.a
./libdnet-stripped/src/.libs/libdnet.a ./liblua/liblua.a
./liblinear/liblinear.a -ldl
nse_ssl_cert.o: In function `l_get_ssl_certificate(lua_State*)':
/home/user/nmap-5.61TEST5/nse_ssl_cert.cc:400: multiple definition of
`l_get_ssl_certificate(lua_State*)'
nse_nsock.o:nse_nsock.cc:(.text+0x2029): first defined here
nse_ssl_cert.o: In function `l_get_ssl_certificate(lua_State*)':
nse_ssl_cert.cc:(.text+0x71f): undefined reference to
`nse_nsock_get_ssl(lua_State*)'
collect2: ld a retourné 1 code d'état d'exécution
make[1]: *** [nmap] Erreur 1
make[1]: quittant le répertoire « /home/user/nmap-5.61TEST5 »
make: *** [all] Erreur 2

Seems like i'm the only one who got this error ...

It looks like some files were compiled before you installed libssl-dev.
Try "make distclean" and start over.

David Fifield
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/

  By Date           By Thread  

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