Nmap Development mailing list archives
Re: --with-libpcre=included
From: Nuno Gonçalves <nunojpg () gmail com>
Date: Mon, 27 Sep 2010 00:19:13 +0100
2010/9/20 David Fifield <david () bamsoftware com>:
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
configure: loading site script /home/nuno/Desktop/trunk/include/site/mips-openwrt-linux-uclibc checking whether NLS is requested... no checking build system type... x86_64-pc-linux-gnu checking host system type... mips-openwrt-linux-gnu checking for mips-openwrt-linux-gcc... mips-openwrt-linux-uclibc-gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... yes checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether mips-openwrt-linux-uclibc-gcc accepts -g... yes checking for mips-openwrt-linux-uclibc-gcc option to accept ISO C89... none needed checking for inline... inline checking for mips-openwrt-linux-gcc... (cached) mips-openwrt-linux-uclibc-gcc checking whether we are using the GNU C compiler... (cached) yes checking whether mips-openwrt-linux-uclibc-gcc accepts -g... (cached) yes checking for mips-openwrt-linux-uclibc-gcc option to accept ISO C89... (cached) none needed checking whether we are using the GNU C++ compiler... yes checking whether mips-openwrt-linux-uclibc-g++ accepts -g... yes checking for mips-openwrt-linux-ranlib... mips-openwrt-linux-uclibc-ranlib checking for a BSD-compatible install... /usr/bin/install -c checking for __func__... yes checking for mips-openwrt-linux-strip... /home/nuno/Desktop/trunk/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/bin/mips-openwrt-linux-strip checking how to run the C preprocessor... mips-openwrt-linux-uclibc-gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking pwd.h usability... yes checking pwd.h presence... yes checking for pwd.h... yes checking termios.h usability... yes checking termios.h presence... yes checking for termios.h... yes checking sys/sockio.h usability... no checking sys/sockio.h presence... no checking for sys/sockio.h... no checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking for net/if.h... yes checking for library containing setsockopt... none required checking for library containing gethostbyname... none required checking for a Python interpreter with version >= 2.4... python checking for python... /home/nuno/Desktop/trunk/staging_dir/target-mips_r2_uClibc-0.9.30.1/host/bin/python checking for python version... 2.6 checking for python platform... linux2 checking for python script directory... ${prefix}/lib/python2.6/site-packages checking for python extension module directory... ${exec_prefix}/lib/python2.6/site-packages checking whether /home/nuno/Desktop/trunk/staging_dir/target-mips_r2_uClibc-0.9.30.1/host/bin/python version >= 2.4... yes checking for /home/nuno/Desktop/trunk/staging_dir/target-mips_r2_uClibc-0.9.30.1/host/bin/python version... (cached) 2.6 checking for /home/nuno/Desktop/trunk/staging_dir/target-mips_r2_uClibc-0.9.30.1/host/bin/python platform... (cached) linux2 checking for /home/nuno/Desktop/trunk/staging_dir/target-mips_r2_uClibc-0.9.30.1/host/bin/python script directory... (cached) ${prefix}/lib/python2.6/site-packages checking for /home/nuno/Desktop/trunk/staging_dir/target-mips_r2_uClibc-0.9.30.1/host/bin/python extension module directory... (cached) ${exec_prefix}/lib/python2.6/site-packages checking pcap.h usability... yes checking pcap.h presence... yes checking for pcap.h... yes checking for pcap_datalink in -lpcap... yes checking sys/ioccom.h usability... no checking sys/ioccom.h presence... no checking for sys/ioccom.h... no checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking net/bpf.h usability... no checking net/bpf.h presence... no checking for net/bpf.h... no checking if libpcap is suitable... cross-compiling -- assuming yes checking pcre.h usability... yes checking pcre.h presence... yes checking for pcre.h... yes checking for pcre_version in -lpcre... yes checking pcre/pcre.h usability... no checking pcre/pcre.h presence... no checking for pcre/pcre.h... no checking for library containing dlopen... -ldl checking for library containing nl_handle_alloc... no checking if sockaddr{} has sa_len member... no checking whether byte ordering is bigendian... (cached) yes checking if struct in_addr is a wacky huge structure (some Sun boxes)... no checking if struct icmp exists... yes checking if struct ip exists... yes checking if struct ip has ip_sum member... yes checking for strerror... (cached) yes checking for type of 6th argument to recvfrom()... socklen_t configure: creating ./config.status config.status: creating Makefile config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdir setting config.status: creating libnetutil/Makefile config.status: creating nmap_config.h mips-openwrt-linux-uclibc-g++ -Wl,-E -L/home/nuno/Desktop/trunk/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/lib -L/home/nuno/Desktop/trunk/staging_dir/target-mips_r2_uClibc-0.9.30.1/lib -L/home/nuno/Desktop/trunk/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/lib -L/home/nuno/Desktop/trunk/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/lib -L/home/nuno/Desktop/trunk/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/lib -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 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 -lnbase -lnsock -lpcre -lpcap -lssl -lcrypto libnetutil/libnetutil.a ./libdnet-stripped/src/.libs/libdnet.a -ldl cd zenmap && /home/nuno/Desktop/trunk/staging_dir/target-mips_r2_uClibc-0.9.30.1/host/bin/python setup.py build _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- --with-libpcre=included Nuno Gonçalves (Sep 18)
- Re: --with-libpcre=included David Fifield (Sep 18)
- Re: --with-libpcre=included Nuno Gonçalves (Sep 18)
- Re: --with-libpcre=included David Fifield (Sep 19)
- Re: --with-libpcre=included Nuno Gonçalves (Sep 26)
- Re: --with-libpcre=included Nuno Gonçalves (Sep 29)
- Re: --with-libpcre=included David Fifield (Sep 29)
- Re: --with-libpcre=included Nuno Gonçalves (Sep 29)
- Re: --with-libpcre=included Nuno Gonçalves (Sep 18)
- Re: --with-libpcre=included David Fifield (Sep 18)