Re: net-snmp crash on hpux11
Johannes Schmidt-Fischer <jsf <at> InterFace-AG.de>
2003-10-01 17:01:08 GMT
Hello Vijay,
I never used gcc for compiling net-snmp (or ucd-snmp) under HP-UX 11i
(11.11), because luckily I have HP's ANSI C Compiler installed. But I've
heard from others that it should work with gcc 3.1 and 3.2.
Did you install this gcc version as a binary version from the internet,
or did you download the sources and bootstrapped it yourself? From what
I know there is no binary gcc version available in the internet which
works for HP-UX 11i, the versions I know of only work for HP-UX 11.0,
and these versions don't work with HP-UX 11i.
Sorry, but at the moment I can't help you further.
Johannes
spvijayakumar schrieb:
> Hello Johannes,
>
> Thanks for your valuable inputs. I made changes to the three files,
> ip.c, tcp.c and udp.c and compiled them.
> snmpd was returning all the statistics of ip.c, tcp.c and udp.c.
> Thanks very much.
>
> I am trying to install net-snmp in HP-UX 11.11. Could you please
> inform me which version of gcc I have to use to install net-snmp
> on HP-UX 11.11.
>
> I am not able to compile because I am getting gcc 3.3.1 compilation
> error message:
> /usr/include/machine/sys/setjmp.h:45: redefinition of `struct label_t'
> In file included from mibII/tcp.c:34:
> /usr/include/sys/socket.h:439: parse error before "sendfile"
> /usr/include/sys/socket.h:440: parse error before "bsize_t"
> /usr/include/sys/socket.h:441: parse error before "sendpath"
> /usr/include/sys/socket.h:442: parse error before "bsize_t"
> mibII/tcp.c:104:27: netinet/tcpip.h: No such file or directory
>
> Could you please help me in this regard? I am struggling for the
> past 3 days.
>
> Kindly cc your reply to: spvijayakumar <at> yahoo.com also.
>
> Thanks & Regards,
> Vijay.
>
> -----Original Message-----
> From: Johannes Schmidt-Fischer [mailto:jsf <at> InterFace-AG.de]
> Sent: Tuesday, September 30, 2003 4:17 AM
> To: Sp.vijaya kumar
> Cc: net-snmp-users <at> lists.sourceforge.net; net-snmp-coders <at> lists.sourceforge.net
> Subject: Re: net-snmp crash on hpux11
>
>
> Hello Vijay,
>
> it seems as if there are some statements missing in the respective files
> (but I don't know why, probably I forgot to send them in as patches).
>
> So the three files ip.c, tcp.c and udp.c (all to be found in
> agent/mibgroup/mibII) are to patched as follows (the patches are built
> against net-snmp 5.0.8):
>
> *** ip.c Mon Dec 9 12:10:49 2002
> --- ip.c Tue Sep 30 00:18:32 2003
> ***************
> *** 514,519 ****
> --- 514,544 ----
> return (u_char *) & ipstat.dwRoutingDiscards;
> #endif /* WIN32 */
>
> + #ifdef hpux11
> + case IPFORWARDING:
> + case IPDEFAULTTTL:
> + case IPINRECEIVES:
> + case IPINHDRERRORS:
> + case IPINADDRERRORS:
> + case IPFORWDATAGRAMS:
> + case IPINUNKNOWNPROTOS:
> + case IPINDISCARDS:
> + case IPINDELIVERS:
> + case IPOUTREQUESTS:
> + case IPOUTDISCARDS:
> + case IPOUTNOROUTES:
> + case IPREASMTIMEOUT:
> + case IPREASMREQDS:
> + case IPREASMOKS:
> + case IPREASMFAILS:
> + case IPFRAGOKS:
> + case IPFRAGFAILS:
> + case IPFRAGCREATES:
> + case IPROUTEDISCARDS:
> + long_return = (long) ipstat;
> + return (u_char *) & long_return;
> + #endif /* hpux11 */
> +
> default:
> DEBUGMSGTL(("snmpd", "unknown sub-id %d in var_ip\n",
> vp->magic));
> }
>
> *** tcp.c Fri May 17 18:05:13 2002
> --- tcp.c Tue Sep 30 00:20:45 2003
> ***************
> *** 443,448 ****
> --- 443,468 ----
> case TCPOUTRSTS:
> return (u_char *) & tcpstat.dwOutRsts;
> #endif
> +
> + #ifdef hpux11
> + case TCPRTOALGORITHM:
> + case TCPRTOMIN:
> + case TCPRTOMAX:
> + case TCPMAXCONN:
> + case TCPACTIVEOPENS:
> + case TCPPASSIVEOPENS:
> + case TCPATTEMPTFAILS:
> + case TCPESTABRESETS:
> + case TCPCURRESTAB:
> + case TCPINSEGS:
> + case TCPOUTSEGS:
> + case TCPRETRANSSEGS:
> + case TCPINERRS:
> + case TCPOUTRSTS:
> + long_return = (long) tcpstat;
> + return (u_char *) & long_return;
> + #endif /* hpux11 */
> +
> default:
> DEBUGMSGTL(("snmpd", "unknown sub-id %d in var_tcp\n",
> vp->magic));
> }
>
> *** udp.c Fri May 17 18:05:14 2002
> --- udp.c Tue Sep 30 00:22:23 2003
> ***************
> *** 319,324 ****
> --- 319,333 ----
> return (u_char *) & udpstat.dwInErrors;
> #endif /* WIN32 */
>
> + #ifdef hpux11
> + case UDPINDATAGRAMS:
> + case UDPNOPORTS:
> + case UDPOUTDATAGRAMS:
> + case UDPINERRORS:
> + long_return = (long) udpstat;
> + return (u_char *) & long_return;
> + #endif /* hpux11 */
> +
> default:
> DEBUGMSGTL(("snmpd", "unknown sub-id %d in var_udp\n",
> vp->magic));
> }
>
> Please let me know whether these patches work for you, especially
> whether you get those values you're missing currently.
>
> If so, I'll send these patches together with the patch for var_route.c I
> sent you before to the net-snmp patches list.
>
> Johannes
>
> Sp.vijaya kumar schrieb:
>
>>Hello Johannes,
>>
>> Now, I am writing from my yahoo mail.
>>
>> Thanks very much for your kind explanation.
>> I have one more problem with net-snmp 5.0.8 w.r.to
>>hpux11 that
>> when I issue "snmpwalk" on mib-2 objects a few IP,
>>UDP and TCP statistics are not displayed.
>> Details:
>>
>> 1) from object ipForwarding to ipFragCreates
>>(totally 19 objects) under IP are not displayed.
>> 2) TCP: objects from tcpRtoAlgorithm to tcpOutRsts (totally 14) are
>>not displayed during snmpwalk on mib-2.
>> 3) UDP: from udpInDatagrams to udpOutDatagrams
>>(totally 4) objects are not shown.
>>
>> If you have any idea on this, I would request you to
>>kindly revert back.
>>
>>Thanks & Regards,
>>Vijay.
>>
>>
>>______________________________________________________________________
>>__
>>Want to chat instantly with your online friends? Get the FREE Yahoo!
>>Messenger http://mail.messenger.yahoo.co.uk
>
>
>
--
--
Johannes Schmidt-Fischer
InterFace AG phone +49 (0)89 / 610 49 - 207
Leipziger Str. 16 fax +49 (0)89 / 610 49 - 85
D-82008 Unterhaching mobile +49 (0)171/ 787 76 01
http://www.InterFace-AG.com mailto:jsf <at> InterFace-AG.de
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users