[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ucd-snmp under OpenBSD 2.5
- To: ports_(_at_)_openbsd_(_dot_)_org
- Subject: ucd-snmp under OpenBSD 2.5
- From: Gordon Greene <Gordon_(_dot_)_Greene_(_at_)_netsec_(_dot_)_net>
- Date: Wed, 30 Jun 1999 14:06:26 -0400
Hello,
I was given the task of installing ucd-snmp from the ports collection on
OpenBSD 2.5, and found it had a problem. The basic problem is a change to
an OpenBSD include file. Here is the story:
/usr/ports/net/ucd-snmp/work/ucd-snmp-3.2/agent/mibgroup/tcp.c
includes:
../common_header.h
(/usr/ports/net/ucd-snmp/work/ucd-snmp-3.2/agent/common_header.h)
which includes:
/usr/include/netinet/in_pcb.h if the symbol HAVE_NETINET_IN_PCB_H is set
(as it should be, but the conftest.c file produced by the configure script
barfs for the same reason as tcp.c above, and doesn't set the symbol)
which includes:
/usr/include/netinet6/ipv6_var.h
which includes:
/usr/include/netinet6/in6.h
which contains:
#if !defined(_NETINET_IN_H) && !defined(_NETINET_IN_H_)
#error in6.h should no longer be included directly; include <netinet/in.h>
#endif /* !defined(_NETINET_IN_H) && !defined(_NETINET_IN_H_) */
I'm not sure why this would be an error, rather than a change to
/usr/include/netinet6/ipv6_var.h.
Nevertheless, if one just puts #include <netinet/in.h> on line 15 (just
ahead of #include <netinet6/in6.h>, snmp compiles with only typecast whinings.
-Gordon Greene
Visit your host, monkey.org