Sure running 2.1.57 ?, I can't believe it because
since version 2.1.53 these errors occurs.
My solution is ( regarding Burton this is not the right solution ):
To fix these errors which results a good compilation I had to change :
1) I change in main.c this line:
while((opt = getopt_long(argc, argv, theOpts, long_options, (int *) 0))
!= EOF) {
TO:
#ifdef HAVE_GETOPT_LONG
while((opt = getopt_long(argc, argv, theOpts, long_options, (int *) 0)) !=
EOF) {
#else
while((opt = getopt(argc, argv, theOpts)) != EOF) {
#endif
2) I changed plugin.c and comment out the following lines :
/*
else if(strcmp(pluginName, "rrdPlugin") == 0)
pluginInfo = rrdPluginEntryFctn();
*/
AND to comment :
/* extern PluginInfo* rrdPluginEntryFctn(void); */
Cheers
Jac
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Dilan
Arumainathan
Sent: Friday, February 21, 2003 22:37
To: [EMAIL PROTECTED]
Subject: [Ntop] Error: Ntop stops after a period of time
Hi,
I am running Ntop 2.1.57 on WinNT 4.0. It runs for a period of time and then
silently stops. I tried running it under Gdb but did not get much out of it.
When I ran it with the trace option set to 5 all I saw at the end was this:
21/Feb/2003 10:02:24 [webInterface.c:3024] Started thread (216) for web
server.
21/Feb/2003 10:02:24 [main.c:928] Sniffying...
21/Feb/2003 10:02:24 [initialize.c:1293] Started thread (220) for network
packet
sniffing on \Device\Packet_CpqNF31.
21/Feb/2003 10:02:24 [hash.c:685] Extending hash size
[newSize=512][deviceId=0]
21/Feb/2003 10:06:43 [hash.c:685] Extending hash size
[newSize=1024][deviceId=0]
I have tried to run the program under Gdb but I am not getting much out of
that either
Hoping that the latest snapshot may have some fixes I grabbed the one today
(Friday 21st) and tried compiling it and go the following error when
compiling ntop itself.
C:\ntop-current\ntop>make -f Makefile.mingw
gcc -O -Lc:/MinGW/wpdpack/lib -Lc:/MinGW/lib -L../gdchart0.94c -L../gdchart0
.94c
/zlib-1.1.4 -L../gdchart0.94c/gd-1.8.3 -L../gdchart0.94c/gd-1.8.3/libpng-1.2
.4
-o ntop ntop.o ntop_win32.o main.o address.o admin.o dataFormat.o emitter.o
glob
als-core.o globals-report.o graph.o hash.o http.o initialize.o leaks.o
netflow.o
pbuf.o plugin.o protocols.o qsort.o regex.o report.o reportUtils.o
sessions.o t
erm.o traffic.o util.o vendor.o webInterface.o plugins\icmpPlugin.o
plugins\last
SeenPlugin.o plugins\netflowPlugin.o plugins\nfsPlugin.o plugins\pdaPlugin.o
plu
gins\sflowPlugin.o
version.o -lgdbm -lwpcap -lgdchart -lgd -lpng -lz -lwsock32
main.o(.text+0x2072):main.c: undefined reference to `getopt_long'
plugin.o(.text+0x28c):plugin.c: undefined reference to `rrdPluginEntryFctn'
make: *** [ntop] Error 1
_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop
_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop