Home page logo

nmap-dev logo Nmap Development mailing list archives

ranlib error when building nsock examples locally
From: Jay Fink <jay.fink () gmail com>
Date: Tue, 30 Jun 2009 14:48:27 -0400


I ran into this after building an nmap/libpcap on FreeBSD-8.0-current
when trying to compile a test program using nsock in

[jrf () pradu ~/nmap/nsock/examples]$ make nsock_pcap
gcc -o nsock_pcap -I/usr/local/include -Wall -g   -I../include
-I../../nbase nsock_pcap.o ../src/libnsock.a ../../nbase/libnbase.a
-lssl -lpcap -lcrypto ../../libpcap/libpcap.a
../../libpcap/libpcap.a: could not read symbols: Archive has no index;
run ranlib to add one
*** Error code 1

Stop in /usr/home/jrf/nmap/nsock/examples.

I went into nmap/libpcap and ran 'ranlib libpcap.a' and it compiles fine now.

I am running a FreeBSD 8 snapshot:
FreeBSD pradu 8.0-CURRENT-200906 FreeBSD 8.0-CURRENT-200906 #0: Sun
Jun  7 10:31:30 UTC 2009
root () mason cse buffalo edu:/usr/obj/usr/src/sys/GENERIC  amd64


Sent through the nmap-dev mailing list
Archived at http://SecLists.Org

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]