Home page logo

nmap-dev logo Nmap Development mailing list archives

Re: Nmap Exclude and Addrset
From: "Colin L. Rice" <ricec2 () rpi edu>
Date: Sat, 18 Jun 2011 17:49:14 -0500


Ncat make seems to be broken after this commit:
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_broker.o
ncat_ssl.o base64.o http.o util.o sys_wrap.o http_digest.o
../nsock/src/libnsock.a ../nbase/libnbase.a -lssl -lcrypto -lpcap -lssl
-lcrypto -ldl  ../libnetutil/libnetutil.a
../libnetutil/libnetutil.a(addrset.o):(.eh_frame+0x12): undefined
reference to `__gxx_personality_v0'
../libnetutil/libnetutil.a(netutil.o):(.eh_frame+0x12): undefined
reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status
Yeah I've been getting reports of it breaking in different ways for
different people. I'm trying see if I can figure out why it works on
some systems and not others.

Adding -lstdc++ to the gcc line fixed it for me, however, I doubt that
this is the right solution, since Ncat is supposed to be pure C and
linking against the standard c++ library would be bad.
We kept addrset as c++ in order to use the libnetutil logging functions.
I'll talk to david and see if we should just port libnetutil to c or
build a c only version of it for linking with ncat. The only excuse I
have is it worked on all of our test computers though.


Sent through the nmap-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 ]