Nmap Development mailing list archives

Re: problems with nmap and libpcap on gentoo


From: David Fifield <david () bamsoftware com>
Date: Fri, 9 Oct 2009 16:31:55 -0600

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

I tried now your suggestion. nmap still insists on libpcap.so:0

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

Did you try recompiling Nmap? That's probably necessary if
libpcap.so.0.9.8 has been completely removed, as it appears it has.

David Fifield

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


Current thread: