On Wed, Oct 05, 2005 at 04:33:53PM -0500, Albert Chin wrote: > I tried building 5.2.2.pre3 on IRIX 6.5 with the SGI C compiler: > ./configure --with-cc=cc --enable-internal-md5 --with-sys-contact= \ > --with-sys-location= --enable-shared --enable-static \ > --with-mibdirs=$HOME/.snmp/mibs:/opt/TWWfsw/netsnmp522/share/mibs \ > --with-mib-modules="host mibII/mta_sendmail disman/event-mib \ > ucd-snmp/diskio --enable-mfd-rewrites \ > --with-default-snmp-version=3 --prefix=/opt/TWWfsw/netsnmp522 > > Doesn't seem like the host MIB module works on this platform: > [ snip snip ]
Builds fine if I remove "host" from --with-mib-modules. The patch below cleans up the source a little. -- albert chin ([EMAIL PROTECTED]) -- snip snip --- agent/mibgroup/mibII/tcpTable.c.orig 2005-10-04 21:02:30.050888000 -0500 +++ agent/mibgroup/mibII/tcpTable.c 2005-10-04 21:05:53.817262000 -0500 @@ -23,6 +23,9 @@ #if HAVE_NETINET_TCP_TIMER_H #include <netinet/tcp_timer.h> #endif +#if HAVE_NETINET_TCPIP_H +#include <netinet/tcpip.h> +#endif #if HAVE_NETINET_TCP_VAR_H #include <netinet/tcp_var.h> #endif --- include/net-snmp/system/irix.h.orig 2005-10-04 21:01:51.797535000 -0500 +++ include/net-snmp/system/irix.h 2005-10-04 21:05:53.689107000 -0500 @@ -23,24 +23,6 @@ */ #define IFNET_NEEDS_KERNEL_LATE 1 -/* - * configure fails to detect these properly because they're broken headers - */ -#define HAVE_NETINET_TCP_H 1 -#define HAVE_NETINET_IP_H 1 - -/* - * don't use this on irix - * it has a prototype of inet_addr() which conflicts - * with <netinet/in.h> - */ -#undef HAVE_ARPA_INET_H - -/* - * We need a prototype of inet_ntoa() then. - */ -extern const char *inet_ntoa(); - #define STREAM_NEEDS_KERNEL_ISLANDS #ifndef __GNUC__ ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
