Dear Ladies and Gentlemen, (Oh that the web server could start; then I could use the built-in PR form ..)
I am writing to report a potential problem with ntop 2.2.94 under FreeBSD 4.8_RELEASE The gory details :- 2 ntop 2.2.94 checked out of CVS on 26 Aug 2003 at about 11 am. pached with Mr Strauss log/trace patch to webInterface.c 3 Ntop fails to start or rather starts and then shuts straight down with a complaint from the web initialisation component, **FATAL_ERROR** WEB: Unable to create a new socket (error 9: 'Bad file descriptor') 4 1 Startup Ntop was started with (after the 1ST-RUN initialisation of the log directory and admin password) #!/bin/sh - # # initialization/shutdown script for ntop ntop_path="/usr/local/ntop" wan_filter="" protocols="FTP=ftp|ftp-data,HTTP=http|https,DNS=domain,Oracle=1521-1527,Ntop=3000,\ NBios-IP=netbios-ns|netbios-dgm|netbios-ssn,Mail=lotusnote|pop2|pop3|kpop|smtp|imap,\ SNMP=snmp|snmptrap,Telnet=telnet,Cache=3128,NFS=nfs|nfsd-status,BEA=7000-7010,SSH=ssh" case "$1" in start) $ntop_path/bin/ntop -c -u nobody -d -P /var/log/ntop -w 3000 -i\ fxp0 -p $protocols && echo -n ' ntop' *) echo "unknown option: $1 - should be 'start'" >&2 ;; esac 2 Environment 2.1 OS pc09011# uname -a FreeBSD pc09011.aipo.gov.au 4.8-RELEASE-p1 FreeBSD 4.8-RELEASE-p1 #13: Tue Aug 5 19:46:38 EST 2003 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/STAN i386 pc09011# 2.2 System Copyright (c) 1992-2003 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.8-RELEASE-p1 #13: Tue Aug 5 19:46:38 EST 2003 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/STAN Timecounter "i8254" frequency 1193182 Hz CPU: Intel Pentium III (933.35-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x683 Stepping = 3 Features=0x387f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,PN,MMX,FXSR,SSE> real memory = 268369920 (262080K bytes) avail memory = 258629632 (252568K bytes) ... fxp0: <Intel Pro 10/100B/100+ Ethernet> port 0xd400-0xd43f mem 0xdffc0000-0xdffdffff,0xdffff000-0xdfffffff irq 10 at device 17.0 on pci0 fxp0: Ethernet address 00:d0:b7:85:28:40 P III 933 MHz, 256 MB RAM, Intel 10/100 NIC, FreeBSD desktop/devel host lightly loaded, no servers eg pc09011> top -b last pid: 20990; load averages: 0.00, 0.00, 0.00 up 0+22:40:09 14:06:44 76 processes: 2 running, 74 sleeping Mem: 105M Active, 75M Inact, 46M Wired, 10M Cache, 35M Buf, 12M Free Swap: 260M Total, 260M Free PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 3173 anwsmh 2 0 49808K 40364K poll 2:32 0.00% 0.00% MozillaFirebir 3049 anwsmh 2 0 57856K 57116K select 0:58 0.00% 0.00% XFree86 3062 anwsmh 2 0 6820K 4768K select 0:15 0.00% 0.00% kwm 3145 anwsmh 2 0 5232K 3204K select 0:11 0.00% 0.00% wfica 3115 anwsmh 2 0 3760K 3096K select 0:06 0.00% 0.00% rxvt 2.3 Network 3 Com OfficeConnect 8 port hub ! (I only want to build it and gawk at braodcasts on this box) This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. 3 Configuration results - sorry if this is too much. It was created by ntop configure 2.2.94, which was generated by GNU Autoconf 2.57. Invocation command line was $ ./configure --with-gdbm-root=/usr/local --prefix=/usr/local/ntop-2.2.94 ## --------- ## ## Platform. ## ## --------- ## hostname = pc09011.aipo.gov.au uname -m = i386 uname -r = 4.8-RELEASE-p1 uname -s = FreeBSD uname -v = FreeBSD 4.8-RELEASE-p1 #13: Tue Aug 5 19:46:38 EST 2003 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/STAN /usr/bin/uname -p = i386 /bin/uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /home/anwsmh/libtool-1.4/bin PATH: /sbin PATH: /bin PATH: /usr/sbin PATH: /usr/bin PATH: /usr/games PATH: /usr/local/bin PATH: /usr/X11R6/bin PATH: /home/anwsmh/bin ## ----------- ## ## Core tests. ## ## ----------- ## configure:1436: checking build system type configure:1454: result: i386-unknown-freebsd4.8 configure:1462: checking host system type configure:1476: result: i386-unknown-freebsd4.8 configure:1484: checking target system type configure:1498: result: i386-unknown-freebsd4.8 configure:1554: checking for a BSD-compatible install configure:1608: result: /usr/bin/install -c configure:1619: checking whether build environment is sane .. snip .. configure:11026: checking sys/socket.h usability configure:11039: gcc -c -g -O2 -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fPIC -DFREEBSD -I/usr/local/inclu de conftest.c >&5 configure:11042: $? = 0 configure:11045: test -s conftest.o configure:11048: $? = 0 configure:11058: result: yes configure:11062: checking sys/socket.h presence configure:11073: gcc -E -DFREEBSD -I/usr/local/include conftest.c configure:11079: $? = 0 configure:11098: result: yes configure:11134: checking for sys/socket.h configure:11141: result: yes .. snip .. configure:12158: checking for net/if.h configure:12178: gcc -c -g -O2 -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fPIC -DFREEBSD -I/usr/local/inclu de conftest.c >&5 In file included from configure:12222: /usr/include/sys/socket.h:52: syntax error before `sa_family_t' /usr/include/sys/socket.h:52: warning: data definition has no type or storage class /usr/include/sys/socket.h:163: syntax error before `u_char' /usr/include/sys/socket.h:174: syntax error before `u_short' /usr/include/sys/socket.h:188: syntax error before `u_char' /usr/include/sys/socket.h:190: `int64_t' undeclared here (not in a function) /usr/include/sys/socket.h:190: `u_char' undeclared here (not in a function) /usr/include/sys/socket.h:190: size of array `__ss_pad1' is too large /usr/include/sys/socket.h:191: syntax error before `int64_t' /usr/include/sys/socket.h:192: `u_char' undeclared here (not in a function) /usr/include/sys/socket.h:192: `int64_t' undeclared here (not in a function) /usr/include/sys/socket.h:192: `u_char' undeclared here (not in a function) /usr/include/sys/socket.h:192: `int64_t' undeclared here (not in a function) /usr/include/sys/socket.h:359: syntax error before `pid_t' /usr/include/sys/socket.h:364: syntax error before `gid_t' /usr/include/sys/socket.h:399: syntax error before `u_short' /usr/include/sys/socket.h:407: syntax error before `caddr_t' /usr/include/sys/socket.h:411: syntax error before `caddr_t' In file included from configure:12222: /usr/include/sys/socket.h:444: syntax error before `recv' /usr/include/sys/socket.h:444: syntax error before `size_t' /usr/include/sys/socket.h:444: warning: data definition has no type or storage class /usr/include/sys/socket.h:445: syntax error before `recvfrom' /usr/include/sys/socket.h:445: syntax error before `size_t' /usr/include/sys/socket.h:445: warning: data definition has no type or storage class /usr/include/sys/socket.h:446: syntax error before `recvmsg' /usr/include/sys/socket.h:446: warning: data definition has no type or storage class /usr/include/sys/socket.h:447: syntax error before `send' /usr/include/sys/socket.h:447: syntax error before `size_t' /usr/include/sys/socket.h:447: warning: data definition has no type or storage class /usr/include/sys/socket.h:448: syntax error before `sendto' /usr/include/sys/socket.h:449: syntax error before `size_t' /usr/include/sys/socket.h:449: warning: data definition has no type or storage class /usr/include/sys/socket.h:450: syntax error before `sendmsg' /usr/include/sys/socket.h:450: warning: data definition has no type or storage class /usr/include/sys/socket.h:451: syntax error before `off_t' configure:12181: $? = 1 configure: failed program was: | #line 12163 "configure" | /* confdefs.h. */ | .. there seem to be quite a few of these .. -- /usr/include/sys/socket.h:451: syntax error before `off_t' configure:12181: $? = 1 configure: failed program was: | #line 12163 "configure" | /* confdefs.h. */ | | #define PACKAGE_NAME "ntop" | #define PACKAGE_TARNAME "ntop" | #define PACKAGE_VERSION "2.2.94" | #define PACKAGE_STRING "ntop 2.2.94" | #define PACKAGE_BUGREPORT "" | #define PACKAGE "ntop" | #define VERSION "2.2.94" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 -- /usr/include/netinet/ip.h:159: syntax error before `n_long' configure:12442: $? = 1 configure: failed program was: | #line 12424 "configure" | /* confdefs.h. */ | | #define PACKAGE_NAME "ntop" | #define PACKAGE_TARNAME "ntop" | #define PACKAGE_VERSION "2.2.94" | #define PACKAGE_STRING "ntop 2.2.94" | #define PACKAGE_BUGREPORT "" | #define PACKAGE "ntop" | #define VERSION "2.2.94" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 -- /usr/include/netinet/ip_icmp.h:102: syntax error before `u_int32_t' configure:12506: $? = 1 configure: failed program was: | #line 12479 "configure" | /* confdefs.h. */ | | #define PACKAGE_NAME "ntop" | #define PACKAGE_TARNAME "ntop" | #define PACKAGE_VERSION "2.2.94" | #define PACKAGE_STRING "ntop 2.2.94" | #define PACKAGE_BUGREPORT "" | #define PACKAGE "ntop" | #define VERSION "2.2.94" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 -- /usr/include/netinet/udp.h:45: syntax error before `u_short' configure:12703: $? = 1 configure: failed program was: | #line 12685 "configure" | /* confdefs.h. */ | | #define PACKAGE_NAME "ntop" | #define PACKAGE_TARNAME "ntop" | #define PACKAGE_VERSION "2.2.94" | #define PACKAGE_STRING "ntop 2.2.94" | #define PACKAGE_BUGREPORT "" | #define PACKAGE "ntop" | #define VERSION "2.2.94" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 -- Please let me know if there is anything else that is useful. Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. _______________________________________________ Ntop-dev mailing list [EMAIL PROTECTED] http://listgateway.unipi.it/mailman/listinfo/ntop-dev