From: SourceForge.net <no...@so...> - 2003-02-27 15:02:53
|
Bugs item #230603, was opened at 2001-01-31 10:34 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=230603&group_id=12694 Category: agent Group: None Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Lukas Waldmann (lshark) Assigned to: Wes Hardaker (hardaker) Summary: Agent compilation failed on Digital Unix Initial Comment: Compilation of agent failed on OSF1 V5.1 Digital Unix in ucd-snmp version 4.2 File agent/mibgroup/mibII/tcpTable.c is not compiled because of problems with IPv6 and IPv4. inpcb structure on DU V5.1 contains IPV6 parts - s6_addr but tcpTable.c assumes that s_addr(IPv4) is used. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2001-04-12 07:34 Message: Logged In: NO Compilation output: cc -g -Dosf5 -I/usr/include/rpm -I. -I../.. -I. -I./../.. -I./../../snmplib -I./.. -I.. -c mibII/tcpTable.c -DPIC -o mibII/.libs/tcpTable.lo cc: Error: mibII/tcpTable.c, line 177: In this statement, "s_addr" is not a member of "inpcb.inp_laddr". (needmember) cp = (u_char *)&inpcb.inp_laddr.s_addr; ----------------------------^ cc: Error: mibII/tcpTable.c, line 186: In this statement, "s_addr" is not a member of "inpcb.inp_faddr". (needmember) cp = (u_char *)&inpcb.inp_faddr.s_addr; ----------------------------^ cc: Error: mibII/tcpTable.c, line 230: In this statement, "s_addr" is not a member of "Lowinpcb.inp_laddr". (needmember) return (u_char *) &Lowinpcb.inp_laddr.s_addr; -----------------------------------^ cc: Error: mibII/tcpTable.c, line 235: In this statement, "s_addr" is not a member of "Lowinpcb.inp_faddr". (needmember) return (u_char *) &Lowinpcb.inp_faddr.s_addr; -----------------------------------^ cc: Error: mibII/tcpTable.c, line 401: In this statement, "inpcb.inp_laddr" is of type "struct in6_addr", and cannot be converted to a different "struct in_addr" type. (noconvertcls) if (inet_lnaof(inpcb.inp_laddr) == INADDR_ANY) { -------------------------------^ *** Exit 1 Stop. *** Exit 1 Stop. *** Exit 1 Stop. Solution: replace &inpcb.inp_laddr.s_addr with &IN6_EXTRACT_V4ADDR(&inpcb.inp_laddr) and if (inet_lnaof(inpcb.inp_laddr) == INADDR_ANY) { with if (IN6_IS_ADDR_UNSPECIFIED(&(inpcb.inp_laddr))) { WARNING: udp mib seems to block snmpd in endless loop !?!? Also, define s/osf5.h: #include "generic.h" #define osf4 #undef TCP_TTL_SYMBOL #define TCP_TTL_SYMBOL "tcp_ttl" /* var_route.c nlist symbols */ #undef RTTABLES_SYMBOL #define RTTABLES_SYMBOL "rtable" #undef RTHASHSIZE_SYMBOL #define RTHASHSIZE_SYMBOL "rhash_size" Compile standard snmpd (without any additional mibs) ./configure Habi ---------------------------------------------------------------------- Comment By: Wes Hardaker (hardaker) Date: 2001-04-03 21:36 Message: Logged In: YES user_id=76242 The submitter of this bug has failed to respond to questions from the maintainers about it, so this bug has been marked as closed due to lack of a response within a reasonable period of time. ---------------------------------------------------------------------- Comment By: Wes Hardaker (hardaker) Date: 2001-02-05 08:36 Message: So, a s_addr field doesn't exist at all? Can you submit the compilation errors that you're seeing? I'm confused at why it would fail to compile (I can see it failing to work properly on a ipv6 machine, but...) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=230603&group_id=12694 |