Hi, All I'm having troubles trying to compile ntop 3.2 on Solaris 10. It doesn't want to work with any version of libpcap I've been able to install. When I run the configure script I get error messages as follows:
checking for pcap... checking pcap.h usability... yes checking pcap.h presence... yes checking for pcap.h... yes checking net/bpf.h usability... yes checking net/bpf.h presence... yes checking for net/bpf.h... yes checking pcap-bpf.h usability... yes checking pcap-bpf.h presence... yes checking for pcap-bpf.h... yes checking for pcap_open_live in -lpcap... no checking for pcap_findalldevs in -lpcap... no ******************************************************************* * * 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 It does the same thing using using both gcc and the Sun Studio 11 compiler, both GNU ld and Sun's ld. I've tried both 0.9.4 and 0.9.5 of libpcap both compiled from source and binaries from sunfreeware.com. I looked in the config.log file and I see error messages as follows: configure:24392: gcc -o conftest -g -I/usr/local/include -I/usr/local/include -g -Wshadow -Wpointer-arith -Wmissing-prototype s -Wmissing-declarations -Wnested-externs -fPIC -DPIC -DSOLARIS -I/usr/local/include -I/usr/local/include -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib conftest.c -lpcap -lpcap >&5 Undefined first referenced symbol in file getservbyname /usr/local/lib/libpcap.a(nametoaddr.o) ether_hostton /usr/local/lib/libpcap.a(nametoaddr.o) gethostbyname /usr/local/lib/libpcap.a(nametoaddr.o) socket /usr/local/lib/libpcap.a(inet.o) getprotobyname /usr/local/lib/libpcap.a(nametoaddr.o) getnetbyname /usr/local/lib/libpcap.a(nametoaddr.o) ld: fatal: Symbol referencing errors. No output written to conftest collect2: ld returned 1 exit status The environment I'm using to do the configure is as follows: export PATH=/usr/local/bin:/usr/bin:/usr/sfw/bin:/usr/ccs/bin export CFLAGS="-I/usr/local/include" export LDFLAGS="-L/usr/local/lib" export LD_LIBRARY_PATH=/usr/local/lib export CC=gcc ./configure --with-pcap-root=/usr/local --enable-static-plugins I'm sure I'm doing something wrong here, if only I knew what that was. Regards, -Jim _______________________________________________ Ntop mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop
