Subject: ucd-snmp-3.1.2.1 comile error
To: None <port-i386@NetBSD.ORG>
From: Berndt Josef Wulf <wulf@ping.net.au>
List: port-i386
Date: 01/14/1997 12:50:53
G'day,
when building the ucd-snmp-3.1.2.1 package I am getting the following
error:
cc -I.. -I../snmplib -g -O2 -Dnetbsd1 -I.. -I../snmplib -c
snmp_vars.c
snmp_vars.c: In function `var_ipAddrEntry':
snmp_vars.c:2202: invalid operands to binary ==
*** Error code 1
Stop.
*** Error code 1
the code in question looks like this:
if ( ifnet.if_addrlist == 0 )
continue; /* No address found for interface */
/usr/include/net/if.h defines struct ifnet as:
struct ifnet {
void *if_softc;
TAILQ_ENTRY(ifnet) if_list;
are chained */
TAILQ_HEAD(, ifaddr) if_addrlist;
....
and TAILQ_HEAD is defined in /usr/include/sys/queue.h
#define TAILQ_HEAD(name, type)
struct name {
struct type *tqe_next;
struct type **tqe_prev;
}
How do I get it to compile? The README file reports this package to be
working under NetBSD-1.1 and NetBSD-1.2.... which gives me some hope
to complete my project ;)
cheerio Berndt
--
Name : Berndt Josef Wulf
E-Mail : wulf@ping.net.au
Sysinfo : DEC AXPpci33+, NetBSD-1.2