[lug] Semi-OT: ntop compile problems on RH 7.2

Harris, James James_Harris at maxtor.com
Mon Apr 8 08:32:14 MDT 2002


Has anyone had any luck compiling ntop version 2.x on Redhat 7.2?  My
./configure (and all configure/makes in the other source trees) always goes
without complaint, but the make gets about 5 minutes in and fails.

I've tried posting to the ntop list and no one there seems to be able to
help me.  The only suggestions I've found out on the net indicate a possible
problem with the stock version of automake present on RH 7.2, but I've
upgraded to the recommended version and started the whole build process over
and haven't had any luck.

Below is the email I sent off to the ntop list with the make failure.
Anyone have any ideas, direction to point me in, experience compiling this?
Thanks!

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 at 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 at munch ntop]# rpm -q -a | grep pcap
libpcap-0.6.2-9

[root at munch ntop]# cat /etc/redhat-release 
Red Hat Linux release 7.2 (Enigma)

[root at 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 <bugs at gnu.org>.

[root at 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)



More information about the LUG mailing list