Hi I did get the source libpcap 0.8.3 and compiled ok on RH8. Unfortunately, I also had NET_SNMP dependency issues and whilst upgrading those modules, the hard disk threw some sectors taking our WISP service with it for about an hour while I fumbled through fsck! S.M.A.R.T now says the disk is bad.
Upshot is, that we will be upgrading the whole machine with new machine running FC3 within the next few days. Any problems with FC3? Turning to the original issue which was the "Floating Point Exception" error. It appears that this is in the RRD plugin - if I disable this then it runs ok. I do not really want to trash the historical RRD data so I would dearly like to track down this bug and fix it. So.. Firstly, has there been any changes to the rrd plugin since v3.0.0.50 that could fix this? (Obviously I would try it on the current machine if I could BUT I do not want to try and load the SNMP stuff until we have regained stability) Secondly, how do I go about debugging this? What should I do to give you the info needed to find exactly where this is failing? I have read (Yes, I have tried to read the back traffic) that I should run it under gdb. I *think* I have tried to do this but the program crashes before startup - the output is below. Sorry that I am without clue on this subject. Mark [EMAIL PROTECTED] root]# gdb --args /usr/local/bin/ntop -c -g -i eth1 -m 10.0.0.0/255.0.0.0 -o -u root -M -P ./ -p protocol.list.oem.txt GNU gdb Red Hat Linux (5.2.1-4) Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-redhat-linux"... (gdb) run Starting program: /usr/local/bin/ntop -c -g -i eth1 -m 10.0.0.0/255.0.0.0 -o -u root -M -P ./ -p protocol.list.oem.txt Tue Nov 16 09:30:57 2004 **WARNING** Trailing slash removed from argument './' Tue Nov 16 09:30:57 2004 ntop v.3.0.050 MT (SSL) Tue Nov 16 09:30:57 2004 Configured on Apr 27 2004 23:32:59, built on Apr 27 2004 23:34:04. Tue Nov 16 09:30:57 2004 Copyright 1998-2004 by Luca Deri <[EMAIL PROTECTED]> Tue Nov 16 09:30:57 2004 Get the freshest ntop from http://www.ntop.org/ Tue Nov 16 09:30:57 2004 Initializing ntop Tue Nov 16 09:30:57 2004 PROTO_INIT: Processing protocol file: 'protocol.list.oem.txt', size: 679 Tue Nov 16 09:30:57 2004 Checking eth1 for additional devices Tue Nov 16 09:30:57 2004 Resetting traffic statistics for device eth1 Tue Nov 16 09:30:57 2004 DLT: Device 0 [eth1] is 1, mtu 1514, header 14 Tue Nov 16 09:30:57 2004 Initializing gdbm databases Tue Nov 16 09:30:57 2004 Now running as requested user 'root' (0:0) Tue Nov 16 09:30:57 2004 VENDOR: Loading MAC address table. Tue Nov 16 09:30:57 2004 VENDOR: Checking for MAC address table file Tue Nov 16 09:30:57 2004 VENDOR: File '/usr/local/etc/ntop/specialMAC.txt.gz' does not need to be reloaded Tue Nov 16 09:30:57 2004 VENDOR: ntop continues ok Tue Nov 16 09:30:57 2004 VENDOR: Checking for MAC address table file Tue Nov 16 09:30:57 2004 VENDOR: File '/usr/local/etc/ntop/oui.txt.gz' does not need to be reloaded Tue Nov 16 09:30:57 2004 VENDOR: ntop continues ok Tue Nov 16 09:30:57 2004 OSFP: Checking for OS fingerprint table file Tue Nov 16 09:30:57 2004 OSFP: Loading file '/usr/local/etc/ntop/etter.passive.os.fp.gz' Tue Nov 16 09:30:57 2004 ASN: Checking for Autonomous System Number table file Tue Nov 16 09:30:57 2004 **WARNING** ASN: Unable to open file 'AS-list.txt' Tue Nov 16 09:30:57 2004 I18N: This instance of ntop does not support multiple languages Tue Nov 16 09:30:57 2004 IP2CC: Checking for IP address <-> Country Code mapping file Tue Nov 16 09:30:57 2004 IP2CC: Loading file '/usr/local/etc/ntop/p2c.opt.table.gz' Tue Nov 16 09:30:58 2004 IP2CC: ...found 52395 lines Tue Nov 16 09:30:58 2004 GDVERCHK: Guessing at libgd version Tue Nov 16 09:30:58 2004 GDVERCHK: ... as 1.8.4 Tue Nov 16 09:30:58 2004 Initializing external applications Tue Nov 16 09:30:58 2004 Initializing semaphores, mutexes and threads Tue Nov 16 09:30:58 2004 NOTE: atfork() handler registered for mutexes, rc 0 Program received signal SIG32, Real-time event 32. 0x4121ca35 in pthread_getconcurrency () from /lib/i686/libpthread.so.0 Tue Nov 16 09:30:58 2004 THREADMGMT: Packet processor thread running... (gdb) Mark, I have just committed a new check into the ntop configure so that it can detect the presence of all the pcap_XXX functions. In particular your build fails because ntop needs pcap_findalldevs that's not present in your system. Please install by hand (RH 8 is probably unsupported) the latest libpcap from source (www.tcpdump.org) and try again. Cheers, Luca Mark Gibbons wrote: >Hi Luca > >Thanks for the help. > >What version does it have to be - the latest rpm I can find for redhat 8.0 is >libpcap-0.6.2-17.8.0.2 > >Will this do? > >Thanks > >Mark > >-----Original Message----- >From: Luca Deri [mailto:[EMAIL PROTECTED] >Sent: 15 November 2004 3:06 >To: [EMAIL PROTECTED] >Subject: Re: [Ntop-dev] Make Fail (also) > > >-----BEGIN PGP SIGNED MESSAGE----- >Hash: SHA1 > >Mark, >you need to install a newer libcap, then compile ntop. > >Cheers, Luca > >On 15 nov 2004, at 14:57, Mark Gibbons wrote: > > > >>Hello >> >>I too have a make fail. Completely fresh pull from cvs "cvs checkout >>ntop" in ntop subsdir so full path is /ntop/ntop/ >> >>Redhat 8.0 >> >>Any help would be appreciated. >> >>Mark >> >> >>gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -Imyrrd -DLINUX >>-I/usr/local/include >>-g -O2 -I/usr/local/include -Wshadow -Wpointer-arith >>-Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fPIC -g >>-O2 -I/usr/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes >>-Wmissing-declarations -Wnested-externs -fPIC -c iface.c -MT iface.lo >>-MD -MP -MF .deps/iface.TPlo -fPIC -DPIC -o .libs/iface.lo >>cc1: warning: changing search order for system directory >>"/usr/local/include" >>cc1: warning: as it has already been specified as a non-system >>directory >>mv -f .libs/iface.lo iface.o >>(cd . && ln -s iface.o iface.lo) >>source='initialize.c' object='initialize.lo' libtool=yes \ >>depfile='.deps/initialize.Plo' tmpdepfile='.deps/initialize.TPlo' \ >>depmode=gcc3 /bin/sh ./depcomp \ >>/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I. >>-Imyrrd -DLINUX -I/usr/local/include -g -O2 -I/usr/local/include >>-Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations >>-Wnested-externs -fPIC -g -O2 -I/usr/local/include -Wshadow >>-Wpointer-arith -Wmissing-prototypes -Wmissing-declarations >>-Wnested-externs >>-fPIC -c -o initialize.lo `test -f 'initialize.c' || echo >>'./'`initialize.c >>rm -f .libs/initialize.lo >>gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -Imyrrd -DLINUX >>-I/usr/local/include >>-g -O2 -I/usr/local/include -Wshadow -Wpointer-arith >>-Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fPIC -g >>-O2 -I/usr/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes >>-Wmissing-declarations -Wnested-externs -fPIC -c initialize.c -MT >>initialize.lo -MD -MP -MF .deps/initialize.TPlo -fPIC -DPIC -o >>.libs/initialize.lo >>cc1: warning: changing search order for system directory >>"/usr/local/include" >>cc1: warning: as it has already been specified as a non-system >>directory >>initialize.c: In function `initDevices': >>initialize.c:1433: `pcap_if_t' undeclared (first use in this function) >>initialize.c:1433: (Each undeclared identifier is reported only once >>initialize.c:1433: for each function it appears in.) >>initialize.c:1433: `devpointer' undeclared (first use in this function) >>make[2]: *** [initialize.lo] Error 1 >>make[2]: Leaving directory `/ntop/ntop' >>make[1]: *** [all-recursive] Error 1 >>make[1]: Leaving directory `/ntop/ntop' >>make: *** [all] Error 2 >>[EMAIL PROTECTED] ntop]# >> >>_______________________________________________ >>Ntop-dev mailing list >>[EMAIL PROTECTED] >>http://listgateway.unipi.it/mailman/listinfo/ntop-dev >> >> >> > >- ------- >Luca Deri <[EMAIL PROTECTED]>, http://luca.ntop.org >All programmers are optimists, Frederick P. Brooks, Jr. >-----BEGIN PGP SIGNATURE----- >Version: GnuPG v1.2.4 (Darwin) > >iD8DBQFBmMXVmMhDxnkh3zQRAnn0AJ4pOaYyIi5wmxw6okqAKBVgAFyuSwCggd9E >KcLDQPBS0h+jmt96UYZ4gNI= >=FDr2 >-----END PGP SIGNATURE----- > >_______________________________________________ >Ntop-dev mailing list >[EMAIL PROTECTED] >http://listgateway.unipi.it/mailman/listinfo/ntop-dev > > -- Luca Deri <[EMAIL PROTECTED]> http://luca.ntop.org/ Hacker: someone who loves to program and enjoys being clever about it - Richard Stallman _______________________________________________ Ntop-dev mailing list [EMAIL PROTECTED] http://listgateway.unipi.it/mailman/listinfo/ntop-dev
