Dear Sir,

That's the stuff with config.log; the experts will be able to help, if I
can't,

Here's where it fails

configure:8623: checking for pcap_open_live in -lpcap
configure:8654: gcc -o conftest -g -O2 -I/usr/local/include -Wshadow
-Wpointer-arith -Wmissing-prototypes -Wmissing-declarations
-Wnested-externs  -fPIC  -DLINUX -lz -lm
+-I/usr/local/include  -L/usr/X11R6/lib -L/usr/local/lib conftest.c
-lpcap   -lpcap >&5
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
configure:8657: $? = 1
configure: failed program was:  
| #line 8630 "configure"
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "ntop"
| #define PACKAGE_TARNAME "ntop"
| #define PACKAGE_VERSION "3.0pre2"
| #define PACKAGE_STRING "ntop 3.0pre2"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "ntop"
| #define VERSION "3.0pre2"
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define CFG_LITTLE_ENDIAN 1
| #define HAVE_PCAP_H 1
| #define HAVE_NET_BPF_H 1
| #define HAVE_PCAP_BPF_H 1
| /* end confdefs.h.  */
|
| /* Override any gcc2 internal prototype to avoid an error.  */ #ifdef
| __cplusplus extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
|    builtin and then its argument prototype would still apply.  */ char
| pcap_open_live (); int main () { pcap_open_live ();
|   ;
|   return 0;
| }
configure:8675: result: no

What this says to me is that

. -lpcap is insufficient to find libpcap.so even with -L/usr/local/lib
and -L/usr/X11R6/lib

. libpcap.so is therefore not known to ldconfig or found in the above
paths

==> you need to help configure out by providing either a LIBS
environment variable (?) or a -L/path/to/libpcap

Or

==> the libpcap you have is 'not working too well' (if it was found, it
is also missing other pcap functions so this is a possibility).

To eliminate the last option, try compiling the test program - __without
the |s'__; save it as x.c somewhere convenient with - 

gcc -o foo foo.c <all the gcc options above> -L/path/to/libpcap

If that's Ok, then you can try and pass the libpcap path to configure
with the --with-pcap-lib option (see ./configure --help).

Again, I am hope I am not wasting your time. This is what I would
do however.

You may find that there is a Mandrake package on SourceForge ?

Yours sincerely.
-- 
------------------------------------------------------------------------
Stanley Hopcroft
------------------------------------------------------------------------

'...No man is an island, entire of itself; every man is a piece of the
continent, a part of the main. If a clod be washed away by the sea,
Europe is the less, as well as if a promontory were, as well as if a
manor of thy friend's or of thine own were. Any man's death diminishes
me, because I am involved in mankind; and therefore never send to know
for whom the bell tolls; it tolls for thee...'

from Meditation 17, J Donne.
_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop

Reply via email to