You are missing one of the key libraries/include files. Without the info
from ./configure, I can't be sure, so this is a guess:
Check (carefully - line by line) for error messages from ./configure
I think those are all in glibc (/usr/lib/libc.so)
FWIW, my ntop gives this from ldd:
[bstrauss@tigger cvs2html]$ ldd /usr/bin/ntop
libntopreport-2.so.0 => /usr/lib/libntopreport-2.so.0 (0x40027000)
libmysqlclient.so.10 => /usr/lib/mysql/libmysqlclient.so.10
(0x40093000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x400c8000)
libm.so.6 => /lib/i686/libm.so.6 (0x400f5000)
libz.so.1 => /usr/lib/libz.so.1 (0x40118000)
libgd.so.1.8 => /usr/lib/libgd.so.1.8 (0x40126000)
libpng.so.2 => /usr/lib/libpng.so.2 (0x40159000)
libssl.so.2 => /lib/libssl.so.2 (0x4017a000)
libcrypto.so.2 => /lib/libcrypto.so.2 (0x401a7000)
libntop-2.so.0 => /usr/lib/libntop-2.so.0 (0x4026a000)
libpcap.so.0.6.2 => /usr/lib/libpcap.so.0.6.2 (0x404ae000)
libgdbm.so.2 => /usr/lib/libgdbm.so.2 (0x404c9000)
libpthread.so.0 => /lib/i686/libpthread.so.0 (0x404d1000)
libresolv.so.2 => /lib/libresolv.so.2 (0x404e6000)
libnsl.so.1 => /lib/libnsl.so.1 (0x404f8000)
libdl.so.2 => /lib/libdl.so.2 (0x4050e000)
libc.so.6 => /lib/i686/libc.so.6 (0x40512000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x4064e000)
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40683000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Harris, James
Sent: Thursday, April 04, 2002 11:33 AM
To: '[EMAIL PROTECTED]'
Subject: [Ntop] Problems compiling ntop, make
I have a problem compiling ntop that I can't seem to resolve. I apologize
if this would be better sent to the developer list. Let me know and I'll
repost.
I have now tried three different snapshots (03-APR-2002, 04-APR-2002,
14-FEB-2002) and receive the same error in all of them, so I suspect there
may be a common package that is breaking the build. Unfortunately I'm not
much of a hacker, so I'm not able to figure my way out of this one. Can
anyone lend assistance? I've checked the FAQ and Google and can't seem to
surface an answer.
I've included what I believe should be the useful information below. Please
let me know anything else is necessary and I'd be happy to email the
additional info.
Thanks a million!
Background info:
I ran buildAll.sh in the gdchart source directory before configuring ntop
(no problems).
I ran ./configure with --prefix=/opt/ntop-2.0.1 --localstatedir=/var/opt
--sysconfdir=/etc/opt.
Other info can be found at the bottom of this email (such as OS version, gcc
version, etc.)
If seeing the config.status file would be useful let me know and I'll send
it.
gcc -g -O2 -pipe -o .libs/ntop main.o .libs/libntopreport.so -lcrypt -lm
-lz -L/opt/src/ntop-current/gdchart0.94c -lgdchart
-L/opt/src/ntop-current/gdchart0.94c/gd-1.8.3 -lgd
-L/opt/src/ntop-current/gdchart0.94c/gd-1.8.3/libpng-1.0.8 -lpng
-L/opt/src/ntop-current/gdchart0.94c/zlib-1.1.3 -lz -lssl -lcrypto
-lpthread -lresolv -lnsl -ldl -lcrypt -lm -lz -lgdchart -lgd -lpng -lz
-lssl -lcrypto .libs/libntop.so -lpcap -lgdbm -lpthread -lresolv -lnsl
-ldl -lcrypt -lm -lz -lgdchart -lgd -lpng -lz -lssl -lcrypto -lpthread
-lresolv -lnsl -ldl -lcrypt -lm -lz -L/opt/src/ntop-current/gdchart0.94c
-lgdchart -L/opt/src/ntop-current/gdchart0.94c/gd-1.8.3 -lgd
-L/opt/src/ntop-current/gdchart0.94c/gd-1.8.3/libpng-1.0.8 -lpng
-L/opt/src/ntop-current/gdchart0.94c/zlib-1.1.3 -lz -lssl -lcrypto
-Wl,--rpath -Wl,/opt/ntop-2.0.1/lib
.libs/libntop.so: undefined reference to `__inet_addr'
.libs/libntopreport.so: undefined reference to `__inet_aton'
.libs/libntop.so: undefined reference to `__h_errno'
collect2: ld returned 1 exit status
make[2]: *** [ntop] Error 1
make[2]: Leaving directory `/opt/src/ntop-current/ntop'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/src/ntop-current/ntop'
make: *** [all-recursive-am] Error 2
[root@munch ntop]# uname -a
Linux munch.mlm.maxtor.com 2.4.7-10 #1 Thu Sep 6 17:27:27 EDT 2001 i686
unknown
[root@munch ntop]# rpm -q -a | grep pcap
libpcap-0.6.2-9
[root@munch ntop]# cat /etc/redhat-release
Red Hat Linux release 7.2 (Enigma)
[root@munch ntop]# /lib/libc.so.6
GNU C Library stable release version 2.2.4, by Roland McGrath et al.
Copyright (C) 1992-1999, 2000, 2001 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 2.96 20000731 (Red Hat Linux 7.1 2.96-97).
Compiled on a Linux 2.4.7-6smp system on 2001-09-04.
Available extensions:
GNU libio by Per Bothner
crypt add-on version 2.1 by Michael Glad and others
The C stubs add-on version 2.1.2.
linuxthreads-0.9 by Xavier Leroy
BIND-8.2.3-T5B
NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Glibc-2.0 compatibility add-on by Cristian Gafton
libthread_db work sponsored by Alpha Processor Inc
Report bugs using the `glibcbug' script to <[EMAIL PROTECTED]>.
[root@munch ntop]# gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-98)
_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listmanager.unipi.it/mailman/listinfo/ntop
_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listmanager.unipi.it/mailman/listinfo/ntop