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

Harris, James James_Harris at maxtor.com
Tue Apr 9 11:30:23 MDT 2002


Thanks for the observation, it sent me down the right road for the answer.
I went ahead and did a complete up2date on my system hoping that any
discrepancies would be overwritten.  I was then able to restart the whole
build process from a clean source tree and it compiled properly.  There
must've been some packages that were out of synch.

Thanks for you help!

-----Original Message-----
From: D. Stimits [mailto:stimits at idcomm.com] 
Sent: Monday, April 08, 2002 12:26
To: lug at lug.boulder.co.us
Subject: Re: [lug] Semi-OT: ntop compile problems on RH 7.2


I don't know the particular program, but I can make an observation. The
error below indicates that certain symbols were referenced but not found.
The versions being referenced but not found are all the
internal/system-dependent versions of standard glibc calls. Very likely
these are not part of the original code, i.e., the ntop program probably
does not directly use those "_" underscore prefixed names, but instead the
Linux system headers do. I have to wonder if maybe there is some form of
mismatch between your headers and what is actually in use on the system,
meaning perhaps there was a glibc or a header update, but not both, and
there are now two versions out of step with each other. If the ntop code is
itself searching for the __inet_addr, __inet_aton, or __h_errno, then it is
doing something wrong for userland (I'd expect it in kernel code, not in a
regular program, but more likely than not, this is a reference from within
included system headers, the usual way to get to those "__" private
symbols). If it is a mismatch between the headers and the system glibc, then
anything using the standard calls for inet_addr or inet_aton will fail.

D. Stimits, stimits at idcomm.com

"Harris, James" wrote:
> 
> 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 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
...
> 
> 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) 
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
_______________________________________________
Web Page:  http://lug.boulder.co.us
Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug



More information about the LUG mailing list