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:23:43 +0200

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:0

Have 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.0



On 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,
it
tries
to use version 0.

nmap: error while loading shared libraries: libpcap.so.0: cannot
open
shared
object file: No such file or directory

version 0 is referred to 0.9.8-r2? I would like to work with the
current
version libpcap.so.1.0.0

Sometimes when I get an error like this it's fixed by running ldconfig
as 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: