[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

make on OpenBSD2.5



I'm trying to compile ucd-snmp-4.0.1 on an OpenBSD
2.5-current machine running on a Sparc machine.  I got the
following errors:

cd mibgroup; make; cd ..
gcc -c -I. -I../.. -I. -I./../..  -I./../../snmplib -I./..
-I.. -g -O2 -Dopenbsd2 -o mibII.o mibII.c
gcc -c -I. -I../.. -I. -I./../..  -I./../../snmplib -I./..
-I.. -g -O2 -Dopenbsd2 -o mibII/system_mib.o
mibII/system_mib.c
gcc -c -I. -I../.. -I. -I./../..  -I./../../snmplib -I./..
-I.. -g -O2 -Dopenbsd2 -o mibII/sysORTable.o
mibII/sysORTable.c
gcc -c -I. -I../.. -I. -I./../..  -I./../../snmplib -I./..
-I.. -g -O2 -Dopenbsd2 -o mibII/at.o mibII/at.c
gcc -c -I. -I../.. -I. -I./../..  -I./../../snmplib -I./..
-I.. -g -O2 -Dopenbsd2 -o mibII/interfaces.o
mibII/interfaces.c
gcc -c -I. -I../.. -I. -I./../..  -I./../../snmplib -I./..
-I.. -g -O2 -Dopenbsd2 -o mibII/snmp_mib.o mibII/snmp_mib.c
gcc -c -I. -I../.. -I. -I./../..  -I./../../snmplib -I./..
-I.. -g -O2 -Dopenbsd2 -o mibII/tcp.o mibII/tcp.c
mibII/tcp.c: In function `var_tcpEntry':
mibII/tcp.c:549: storage size of `inpcb' isn't known
mibII/tcp.c:549: storage size of `Lowinpcb' isn't known
mibII/tcp.c: In function `TCP_Count_Connections':
mibII/tcp.c:854: storage size of `cb' isn't known
mibII/tcp.c:859: storage size of `inpcb' isn't known
mibII/tcp.c:867: sizeof applied to an incomplete type
mibII/tcp.c: In function `TCP_Scan_Init':
mibII/tcp.c:931: storage size of `table' isn't known
mibII/tcp.c:936: dereferencing pointer to incomplete type
mibII/tcp.c: In function `TCP_Scan_Next':
mibII/tcp.c:1066: sizeof applied to an incomplete type
mibII/tcp.c:1067: invalid use of undefined type `struct
inpcb'
mibII/tcp.c:1076: invalid use of undefined type `struct
inpcb'
mibII/tcp.c:1087: dereferencing pointer to incomplete type
mibII/tcp.c: At top level:
mibII/tcp.c:914: storage size of `tcp_inpcb' isn't known
*** Error code 1

Stop in /home/rizal/ucd-snmp-4.0.1/agent/mibgroup.
*** Error code 1

Stop in /home/rizal/ucd-snmp-4.0.1/agent.
*** Error code 1

Can somebody help me getting this compiled on OpenBSD?