I have 3.1 and there is nothing in the LINUXredhat8.0 script except:
#!/bin/sh
echo " Setting RedHat 8.0 specific flag values"
After searching I found a post you made about this and added the CPP flag (the stuff you talk about is in CVS but not in 3.1 yet apparently) to LINUXdebian.
Apparently configure picked up that flag:
Host System Type : i686-pc-linux-gnu
Preprocessor (cppflags) : -DLINUX -DFORPRENPTL -I/usr/local/include
Compiler (cflags) : gcc -g -O2 -I/usr/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fPIC
Defines : -DHAVE_CONFIG_H
Loader (ldflags) : -L/usr/local/lib
Include path :
System Libs : -lpthread -lresolv -lnsl -lc -lssl -lcrypto -lpcap -lgdbm -lgd -lpng -lz
MultiThread mode : enabled
Locale : /usr/lib/locale
make; make install
chown -R ntop.ntop /usr/local/ntop/share/ntop
/usr/local/ntop/bin/ntop -u ntop -A
then:
gdb /usr/local/ntop/bin/ntop
(gdb) run -u ntop
[STARTUP NO ERRORS]
...
(add a couple netflow devices)
...
Fri Mar 4 14:15:28 2005 **WARNING** Template 0 has wrong size [actual=8/expected=0]: skipped
Fri Mar 4 14:15:28 2005 **WARNING** Template 0 has wrong size [actual=8/expected=0]: skipped
[bunch of above logs]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 12301 (LWP 30903)]
0x412151b7 in memcpy () from /lib/libc.so.6
(gdb) info stack
#0 0x412151b7 in memcpy () from /lib/libc.so.6
#1 0x4160fe26 in dissectFlow (buffer=0xbe1ff264 "", bufferLen=308, deviceId=4)
at netflowPlugin.c:863
#2 0x41610893 in netflowMainLoop (_deviceId=0x4) at netflowPlugin.c:1203
#3 0x4116e0ba in pthread_start_thread () from /lib/libpthread.so.0
#4 0x4116e101 in pthread_start_thread_event () from /lib/libpthread.so.0
(gdb) info thread
* 14 Thread 12301 (LWP 30903) 0x412151b7 in memcpy () from /lib/libc.so.6
13 Thread 11276 (LWP 30901) 0x4126a7ee in select () from /lib/libc.so.6
12 Thread 10251 (LWP 30900) 0x4126a7ee in select () from /lib/libc.so.6
11 Thread 9226 (LWP 30899) 0x4126a7ee in select () from /lib/libc.so.6
10 Thread 8201 (LWP 30898) 0x41270852 in recvfrom () from /lib/libc.so.6
9 Thread 7176 (LWP 30897) 0x41240de1 in nanosleep () from /lib/libc.so.6
8 Thread 6151 (LWP 30896) 0x4126a7ee in select () from /lib/libc.so.6
6 Thread 4101 (LWP 30894) 0x411c987e in sigsuspend () from /lib/libc.so.6
5 Thread 3076 (LWP 30893) 0x41240de1 in nanosleep () from /lib/libc.so.6
4 Thread 2051 (LWP 30892) 0x41240de1 in nanosleep () from /lib/libc.so.6
3 Thread 1026 (LWP 30891) 0x411c987e in sigsuspend () from /lib/libc.so.6
2 Thread 2049 (LWP 30890) 0x41268bb0 in poll () from /lib/libc.so.6
1 Thread 1024 (LWP 30886) 0x41240de1 in nanosleep () from /lib/libc.so.6
Top output (before crashery):
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND 30886 ntop 9 0 50884 49M 39704 S 0.0 6.5 0:05 ntop
Any other thoughts?
Burton Strauss wrote:
Probably needs the pre-NPTL fix - copy the -D from LINUXredhat8.0 line into the appropriate LINUXdebian line in the configureextra directory, rebuild and give it a try.
-----Burton
_______________________________________________ Ntop-dev mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop-dev
