Follow up for this issue on Solaris 8 (and Solaris 9). This issue was first posted back in June ( http://lists.ntop.org/pipermail/ntop/2003-June/005744.html ).
At the time I was able to get ntop running on Solaris 9 but not Solaris 8. This time I hacked pbuf.c in the same way (as well as my old hacks to report.c and reportUtils.c) and was able to get 2.2.90 running fine under both Solaris 8 and Solaris 9 (you need to edit configure.in for Solaris 9 ). So my question is really are there any other Solaris 8 (sparc) users out there who can verify this issue and if so does my hack work for them as well. Again the pbuf.c edit is Line 961 pbuf.c u_char *tcp_data =3D (u_char *)((int)tcp + tp.th_off * 4); (The report.c and reportUtils.c edits can be seen at http://lists.ntop.org/pipermail/ntop/2003-May/005373.html ) Mike Tremaine [EMAIL PROTECTED] http://www.stellarcore.net ----- Original Message ----- From: "Mike Tremaine" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 05, 2003 10:53 AM Subject: [Ntop] Ntop 2.2.90 Solaris 8 > Decide to give 2.2.90 a try since Luca is on his way to 2.3 soon. > > It compiled no problems but fails to start up. I was having this same > problem since sometime after 2.2 (but 2.2 with patches runs fine in fact > when I went to test this the current install was up 35 days and had > processed 2.6TB of data) ... > > Platform is Sun Netra 105 - Solaris 8 - (384mb ram). > > Here is my GDB output > > 05/Aug/2003 10:45:20 THREADMGMT: Address resolution thread started... > [New LWP 9] > [New LWP 10] > 05/Aug/2003 10:45:20 ICMP: Welcome to icmpWatchPlugin. (C) 1999 by Luca Deri > 05/Aug/2003 10:45:20 LASTSEEN: Welcome to LastSeenWatchPlugin. (C) 1999 by > Andrea Marangoni > 05/Aug/2003 10:45:20 NETFLOW: Welcome to NetFlow.(C) 2002 by Luca Deri > 05/Aug/2003 10:45:20 NFS: Welcome to nfsWatchPlugin. (C) 1999 by Luca Deri > 05/Aug/2003 10:45:21 PDA: Welcome to PDAPlugin. (C) 2001-2002 by L.Deri and > W.Brock > 05/Aug/2003 10:45:21 SFLOW: Welcome to sFlowPlugin. (C) 2002 by Luca Deri > 05/Aug/2003 10:45:21 **WARNING** Unable to load plugin > './plugins/rrdPlugin.so' > 05/Aug/2003 10:45:21 **WARNING** Message is 'ld.so.1: /tools/ntop/bin/ntop: > fatal: relocation error: file ./plugins/rrdPlugin.so: symbol rrd_fetch: > referenced symbol not found' > 05/Aug/2003 10:45:21 Calling plugin start functions (if any) > 05/Aug/2003 10:45:21 SSL is present but https is disabled: use -W <https > port> for enabling it > 05/Aug/2003 10:45:21 WEB: Initializing > 05/Aug/2003 10:45:21 Note: Reporting device set to 0 [hme1] > 05/Aug/2003 10:45:21 WEB: Waiting for HTTP connections on port 3000 > 05/Aug/2003 10:45:21 THREADMGMT: web connections thread (4749) started... > 05/Aug/2003 10:45:21 THREADMGMT: Started thread (8) for web server > 05/Aug/2003 10:45:21 THREADMGMT: pcap dispatch thread started... > 05/Aug/2003 10:45:21 THREADMGMT: Started thread (9) for network packet > sniffing on hme1 > > Program received signal SIGSEGV, Segmentation fault. > [Switching to LWP 4] > processIpPkt ( > bp=0x7e77dcfe ' ' <repeats 20 times>, "\r\n319110343260000506M", ' ' > <repeats 15 times>, "3060956029386391944798AVASQUEZ MA19580421F GR0019110 > UNIVERSAL CARE MEDICAL GROUP928403022472003022820030228", ' ' <repeats 13 > times>, "78650", ' ' <repeats 12 times>, "C200"..., h=0x7e77fcf0, > length=1514, > ether_src=0x4000 <Address 0x4000 out of bounds>, ether_dst=0x0, > actualDeviceId=0, vlanId=329) > at pbuf.c:961 > 961 u_char *tcp_data = (u_char *)((int)tcp + tcp->th_off * 4); > (gdb) list > 956 int WIN=0, MSS=-1, WS=-1, S=0, N=0, D=0, T=0; > 957 int ttl; > 958 char WSS[3], _MSS[5]; > 959 struct tcphdr *tcp = (struct tcphdr*)(bp+hlen); > 960 u_char *tcp_opt = (u_char *)(tcp + 1); > 961 u_char *tcp_data = (u_char *)((int)tcp + tcp->th_off * 4); > 962 > 963 if (tcp->th_flags & TH_SYN) /* only SYN or SYN-2ACK > packets */ > 964 { > 965 if (tcpUdpLen > 0) { > (gdb) info stack > #0 processIpPkt ( > bp=0x7e77dcfe ' ' <repeats 20 times>, "\r\n319110343260000506M", ' ' > <repeats 15 times>, "3060956029386391944798AVASQUEZ MA19580421F GR0019110 > UNIVERSAL CARE MEDICAL GROUP928403022472003022820030228", ' ' <repeats 13 > times>, "78650", ' ' <repeats 12 times>, "C200"..., h=0x7e77fcf0, > length=1514, > ether_src=0x4000 <Address 0x4000 out of bounds>, ether_dst=0x0, > actualDeviceId=0, vlanId=329) > at pbuf.c:961 > #1 0x7f81c104 in processPacket (_deviceId=0x0, h=0x7e77fcf0, p=0x7e77dcc8 > "") at pbuf.c:2494 > #2 0x7f81a404 in dequeuePacket (notUsed=0x7f8467d8) at pbuf.c:1719 > > > PS - I know this should go to dev list but my mails never get through to > that list :( .... > > Mike Tremaine > [EMAIL PROTECTED] > http://www.stellarcore.net > > _______________________________________________ > Ntop mailing list > [EMAIL PROTECTED] > http://listgateway.unipi.it/mailman/listinfo/ntop _______________________________________________ Ntop mailing list [EMAIL PROTECTED] http://listgateway.unipi.it/mailman/listinfo/ntop
