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
Hi,
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 ../libdnet-stripped/src/.libs/libdnet.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. -Colin _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- Nmap Exclude and Addrset Colin L. Rice (Jun 17)
- Re: Nmap Exclude and Addrset Shinnok (Jun 18)
- Re: Nmap Exclude and Addrset Daniel Miller (Jun 18)
- Re: Nmap Exclude and Addrset Colin L. Rice (Jun 18)
- Re: Nmap Exclude and Addrset David Fifield (Jun 18)
- Re: Nmap Exclude and Addrset Daniel Miller (Jun 18)
- Re: Nmap Exclude and Addrset Shinnok (Jun 18)