Nmap Development mailing list archives

Re: --with-libpcre=included


From: David Fifield <david () bamsoftware com>
Date: Sun, 19 Sep 2010 22:11:07 -0700

On Sat, Sep 18, 2010 at 11:18:01PM +0100, Nuno Gonçalves wrote:
libdnet and libpcap do that, but libpcre isn't.
using  "--with-libpcre=included" (or nothing), I get when executing
"nmap: can't load library 'libpcre.so.0'". If it is statically link,
this should never happen.

When I configure with --with-libpcre=included, nmap links so:

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 output.o payload.o scan_engine.o
timing.o charpool.o services.o protocols.o nmap_rpc.o portlist.o NmapOps.o Targe
tGroup.o Target.o FingerPrintResults.o service_scan.o NmapOutputTable.o MACLooku
p.o nmap_tty.o nmap_dns.o  traceroute.o portreasons.o xml.o nse_main.o nse_utili
ty.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 -lpcap -lssl -lcrypto 
libnetutil/libnetutil.a ./libdnet-stripped/src/.libs/libdnet.a -llua -ldl

"libpcre/libpcre.a" shows that it links statically for me at least.
Please send the output of your configure and build steps.

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

Current thread: