Nmap Development mailing list archives

Re: problems with nmap and libpcap on gentoo


From: Daniel Roethlisberger <daniel () roe ch>
Date: Sat, 10 Oct 2009 00:34:52 +0200

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


Current thread: