Nmap Development mailing list archives
Re: problems with nmap and libpcap on gentoo
From: sara fink <sara.fink () gmail com>
Date: Sat, 10 Oct 2009 10:52:39 +0200
this is going so weird. I downgraded to nmap 5.00 instead of 5.00-r2. then I ran again emerge =net-analyzer/nmap-5.00-r2 after that ldd -d nmap linux-gate.so.1 => (0xb7fd3000) libpcre.so.0 => /lib/libpcre.so.0 (0xb7f81000) libpcap.so.1 => /usr/lib/libpcap.so.1 (0xb7f4f000) libssl.so.0.9.8 => /usr/lib/libssl.so.0.9.8 (0xb7f07000) libcrypto.so.0.9.8 => /usr/lib/libcrypto.so.0.9.8 (0xb7db0000) liblua.so.5 => /usr/lib/liblua.so.5 (0xb7d8a000) libdl.so.2 => /lib/libdl.so.2 (0xb7d86000) libstdc++.so.6 => /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libstdc++.so.6 (0xb7c9c000) libm.so.6 => /lib/libm.so.6 (0xb7c76000) libgcc_s.so.1 => /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libgcc_s.so.1 (0xb7c6a000) libc.so.6 => /lib/libc.so.6 (0xb7b2d000) /lib/ld-linux.so.2 (0xb7fd4000) as you can see, now it shows it is linked to libpcap.so.1 BUT nmap nmap: error while loading shared libraries: libpcap.so.0: cannot open shared object file: No such file or directory and grep grep -r libpcap.so.1 nmap gives no result while grep -r libpcap.so.0 nmap Binary file nmap matches so this means that nmap was compiled with libpcap.so.0 and linked to libpcap.so.1. any idea how to get out of this mess? On Sat, Oct 10, 2009 at 10:23 AM, sara fink <sara.fink () gmail com> wrote:
I decided to remove nmap and compile again. Even this didn't help. It still wants version 0. Can those gentoo users check what version of libpcap works for you with nmap 5.0.0-r2? wireshark and others use libpcap.so.1.0.0 is there a way to force nmap to use version 1 besides ldconfig which didn't help, unfortunately. On Sat, Oct 10, 2009 at 2:04 AM, sara fink <sara.fink () gmail com> wrote:here is the output of ldd -d nmap linux-gate.so.1 => (0xb7fc5000) libpcre.so.0 => /lib/libpcre.so.0 (0xb7f73000) libpcap.so.0 => not found libssl.so.0.9.8 => /usr/lib/libssl.so.0.9.8 (0xb7f2b000) libcrypto.so.0.9.8 => /usr/lib/libcrypto.so.0.9.8 (0xb7dd4000) liblua.so.5 => /usr/lib/liblua.so.5 (0xb7dae000) libdl.so.2 => /lib/libdl.so.2 (0xb7da9000) libstdc++.so.6 => /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libstdc++.so.6 (0xb7cc0000) libm.so.6 => /lib/libm.so.6 (0xb7c9a000) libgcc_s.so.1 => /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libgcc_s.so.1 (0xb7c8e000) libc.so.6 => /lib/libc.so.6 (0xb7b51000) /lib/ld-linux.so.2 (0xb7fc6000) I re-emerge (recompile) nmap 5.00-r2. On Sat, Oct 10, 2009 at 12:34 AM, Daniel Roethlisberger <daniel () roe ch>wrote:sara fink <sara.fink () gmail com> 2009-10-10:I tried now your suggestion. nmap still insists on libpcap.so:0Have you tried recompiling Nmap so that it links against libpcap.so.1 instead of libpcap.so.0? You can use ldd(1) to check which libs the nmap binary is currently linked against.I tried also ldconfig -p|grep pcap libpcap.so.1 (libc6) => /usr/lib/libpcap.so.1 libpcap.so (libc6) => /usr/lib/libpcap.so ls -l /usr/lib/libpcap.* -rw-r--r-- 1 root root 283326 2009-10-08 03:12 /usr/lib/libpcap.a lrwxrwxrwx 1 root root 16 2009-10-08 03:12 /usr/lib/libpcap.so -> libpcap.so.1.0.0 lrwxrwxrwx 1 root root 16 2009-10-08 03:12 /usr/lib/libpcap.so.1 -> libpcap.so.1.0.0 -rwxr-xr-x 1 root root 198872 2009-10-08 03:12/usr/lib/libpcap.so.1.0.0On Fri, Oct 9, 2009 at 8:03 PM, David Fifield <david () bamsoftware com>wrote:On Fri, Oct 09, 2009 at 07:56:51PM +0200, sara fink wrote:Due to an upgrade of libpcap in gentoo, nmap doesn't work anymore. I have installed : libpcap 1.0.0-r2. Yet when trying to use nmap,ittriesto use version 0. nmap: error while loading shared libraries: libpcap.so.0: cannotopensharedobject file: No such file or directory version 0 is referred to 0.9.8-r2? I would like to work with thecurrentversion libpcap.so.1.0.0Sometimes when I get an error like this it's fixed by runningldconfigas root. David Fifield_______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org-- Daniel Roethlisberger http://daniel.roe.ch/ _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
_______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- problems with nmap and libpcap on gentoo sara fink (Oct 09)
- Re: problems with nmap and libpcap on gentoo David Fifield (Oct 09)
- Re: problems with nmap and libpcap on gentoo sara fink (Oct 09)
- Re: problems with nmap and libpcap on gentoo David Fifield (Oct 09)
- Re: problems with nmap and libpcap on gentoo sara fink (Oct 09)
- Re: problems with nmap and libpcap on gentoo Daniel Roethlisberger (Oct 09)
- Re: problems with nmap and libpcap on gentoo sara fink (Oct 09)
- Re: problems with nmap and libpcap on gentoo sara fink (Oct 10)
- Re: problems with nmap and libpcap on gentoo sara fink (Oct 10)
- Re: problems with nmap and libpcap on gentoo David Fifield (Oct 10)
- Re: problems with nmap and libpcap on gentoo sara fink (Oct 10)
- Re: problems with nmap and libpcap on gentoo sara fink (Oct 09)
- Re: problems with nmap and libpcap on gentoo David Fifield (Oct 09)