Hi
Ive been trying to compile the ntop for a few days but Im stuck on one of
the libraries.  When I run the configure script, it pukes when it gets to
the pcap information. When I complied the lib, I stored the output in some
folder
~/controllers/addons/ntop/ntoplib
./include has the .h files, and ./lib shows the libpcap.a
I can run a strings on that file and the two functions the configure is
looking for are there, pcap_open_live() and pcap_findalldevs(), but it
doesnt resolve the library properly. Here is what Im calling through
./configure (~ is expanded to the full path, I just cropped it here)

CC=/opt/WindRiver/gnu/3.4.4-wrlinux-1.3/x86-linux2/bin/i586-wrs-linux-gnu-i686p4-glibc_full-gcc
\
./configure --prefix=~/controllers/addons/ntop/ntopout/  \
--with-pcap-include=~/controllers/addons/ntop/ntoplib/include/pcap \
--with-pcap-lib=~t/controllers/addons/ntop/ntoplib/lib \

The error window shows it finds all the headers, but cant do anything about
the libs

*******************************************************************
*
* ERROR: pcap header, bpf or library routines are missing
*           (yes means it was found, no means it was not found)
*
*              pcap.h...yes
*              net/bpf.h...yes
*              pcap-bpf.h...yes
*              pcap_open_live() in -lpcap...no
*              pcap_findalldevs() in -lpcap...no
*
*  (One of the bpf files is required, but either will do)
*
*>>> No way to proceed.
*
*???     1. Install libpcap (http://www.tcpdump.org/)
*???    and Rerun ./configure
*???  or 2. Use the --with-pcap-root= option
*
*******************************************************************

Ive tried both the -root and -lib/-include options but still no dice.  One
thing I noted was that the actual libpcap is not a shared library, just
libpcap.a.  Is this a problem?
Another thing is if I dont reference the CC and just use default gcc, the
configure passes, but then my compiler isnt set up properly in the makefile.
Do I need to pass another environment variable to ./configure??
_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop

Reply via email to