pkgsrc-Users archive

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

Re: net/net-snmp fails to build



Hello,

I've created the following patch which should fix this package for - current NetBSD. Does anyone want to look it over before I commit it?

The patch should not change the operation of the package on <= netbsd 4, netbsd-current < 499005800 or non-netbsd platforms. For netbsd >= 499005800 it should i) make the package build ii) query the statistics using sysctl by way of new code introduced in the patches.

If everything checks out I'l submit the patches upstream. Anyway, if I don't hear objections I'l commit in the next day or two.

Thanks

Attachment: net-snmp.diff
Description: Binary data




On 12/04/2008, at 2:57 AM, Jukka Salmi wrote:

Hello,

net/net-snmp from pkgsrc HEAD fails to build on a -current NetBSD/i386
system:

[...]
cc -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../ snmplib -I/b/build/pkg/c/net/net-snmp/work/.buildlink/include -fno- strict-aliasing -pipe -Wdeclaration-after-statement -I/b/build/pkg/c/ net/net-snmp/work/.buildlink/lib/perl5/5.8.0/i386-netbsd-thread- multi/CORE -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

Stop.
make: stopped in /b/build/pkg/c/net/net-snmp/work/net-snmp-5.4.1/ agent/mibgroup
*** Error code 1
[...]


I don't see any recent changes to the package. Any hints?


Regards, Jukka

--
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~



Home | Main Index | Thread Index | Old Index