tech-pkg archive

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

Re: net/net-snmp compile error



This is a result of the change in -current to use arrays instead of structs to return statistics for icmp, ip, tcp and udp.

I have a patch that fixes this for -current but I do not have the time to properly integrate it into pkgsrc such that it doesn't break the package on netbsd-4. I can pass it along to you and you or someone else can do what they like with it if you want.

Let me know.

Tyler

On 18/05/2008, at 11:48 PM, D'Arcy J.M. Cain wrote:

I received the following error compiling net/net-snmp on -current
i386.  I have just built a new kernel and userland from yesterday
morning's sources.  I will try to debug this but I will report it
in the meantime in case someone else has already worked out a patch.

cc -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../ snmplib -I/usr/obj/net/net-snmp/work.i386/.buildlink/include -fno- strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/obj/net/ net-snmp/work.i386/.buildlink/lib/perl5/5.8.0/i386-netbsd-thread- multi/CORE -DNETSNMP_ENABLE_IPV6 -O2 -Dnetbsd1 -Unetbsdelf - Dnetbsdelf=netbsdelf -c mibII/ip.c -fPIC -DPIC -o mibII/.libs/ip.o
mibII/ip.c: In function 'ip_handler':
mibII/ip.c:367: error: invalid use of undefined type 'struct ipstat'
mibII/ip.c:370: error: invalid use of undefined type 'struct ipstat'
mibII/ip.c:371: error: invalid use of undefined type 'struct ipstat'
mibII/ip.c:372: error: invalid use of undefined type 'struct ipstat'
mibII/ip.c:372: error: invalid use of undefined type 'struct ipstat'
mibII/ip.c:372: error: invalid use of undefined type 'struct ipstat'
mibII/ip.c:375: error: invalid use of undefined type 'struct ipstat'
mibII/ip.c:378: error: invalid use of undefined type 'struct ipstat'
mibII/ip.c:433: error: invalid use of undefined type 'struct ipstat'
mibII/ip.c:444: error: invalid use of undefined type 'struct ipstat'
mibII/ip.c:444: error: invalid use of undefined type 'struct ipstat'
mibII/ip.c:451: error: invalid use of undefined type 'struct ipstat'
mibII/ip.c:452: error: invalid use of undefined type 'struct ipstat'
mibII/ip.c:452: error: invalid use of undefined type 'struct ipstat'
mibII/ip.c: In function 'ip_load':
mibII/ip.c:861: error: invalid application of 'sizeof' to incomplete type 'struct ipstat'
mibII/ip.c: In function 'ip_free':
mibII/ip.c:959: error: invalid application of 'sizeof' to incomplete type 'struct ipstat'
*** Error code 1


--
D'Arcy J.M. Cain <darcy%NetBSD.org@localhost>
http://www.NetBSD.org/



Home | Main Index | Thread Index | Old Index