M:
As a first step, y'all need to TRY AND READ the output of config.log.
Don't be afraid, it's pretty basic. If you get an error message you don't
understand, then ask, but FIRST, try reading it yourself...
In this, Stanley was 100% right - he knew where to look (config.log), how to
isolate it to the right section. But hey, he's a FreeBSD guy, so you can't
expect him to know his Penguins from his Polar Bears... (S: Right Church,
wrong pew. Couple of good tries but no cigar.)
FWIW, nm works only if the executable isn't 'stripped'. The other tool is
objdump:
$ objdump /usr/lib/libpcap.so -T | grep pcap_open_live
00002d10 g DF .text 000003f5 Base pcap_open_live
All: In reading config.log, look for the failing thing and then for the
lines around it...
See the error message? Sure you do. THAT is what you need to chase down...
/usr/bin/ld: cannot find -lz
Remember w/ -l, there's an invisible lib prefix, so you're looking for
libz.so and need to tell ntop how to find it via
./configure's --with-zlib-lib=
-----Burton
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of
> Stanley Hopcroft
> Sent: Friday, March 19, 2004 5:13 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [Ntop] configure error 'pcap_open_live() in -lpcap...no' on
> Mandrake 8.2
>
>
> 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
<snip />
_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop