Nmap Development mailing list archives

Re: problems with nmap and libpcap on gentoo


From: David Fifield <david () bamsoftware com>
Date: Sat, 10 Oct 2009 10:24:44 -0600

On Sat, Oct 10, 2009 at 10:52:39AM +0200, sara fink wrote:
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.

All I can think of is that maybe you have more than one copy of nmap
installed, perhaps one in /usr/local/bin that is still linked with
libpcap.so.0. Try using the full pathname of nmap where Gentoo installs
it.

David Fifield

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


Current thread: