Subject: Re: strange things with NetBSD -current and net-snmp
To: Masao Uebayashi <uebayasi@pultek.co.jp>
From: Brian A. Seklecki <lavalamp@spiritual-machines.org>
List: tech-pkg
Date: 02/07/2004 02:35:45
On Thu, 2004-02-05 at 23:29, Masao Uebayashi wrote:
> It's possible kvm(3) ABI changes on -current, I think.  If this is the

No that is definitely not the case (rebuilding != fix).  Rebuilding does
NOT help.  Apparently there are hard-coded references to specific NetBSD
kernel data structures in the Net-SNMP code.  Apparently we don't keep a
good communications channel with that group open because enabling the
build of these files w/ "--with-mib-modules="smux host ucd-snmp/memory""
causes a build failure below.  A closer look at memory_netbsd1.c reveals
that breakage.

Of course, until 2.0 branches, they (Net-SNMP) can't be expected to
maintain constant updates reflecting daily/weekly/monthly changes in
-current.  Unfortunately, I don't have any 1.6.x boxes around to
determine if the present 5.0.9 values work.

creating libnetsnmphelpers.la
(cd .libs && rm -f libnetsnmphelpers.la && ln -s ../libnetsnmphelpers.la
libnetsnmphelpers.la)
: libnetsnmphelpers.la
making all in
/mnt/disk0/_pkgsrc/net/net-snmp/work/net-snmp-5.0.9/agent/mibgroup
/bin/sh ../../libtool --mode=compile cc -I../../include -I../../include 
-I. -I../.. -I. -I./../..  -I./../../snmplib -I./.. -I..  
-I/usr/pkg/include  -O2 -pipe -Dnetbsd1 -I/usr/pkg/include -Dnetbsdelf
-c -o ucd-snmp/memory.lo ucd-snmp/memory.c
mkdir ucd-snmp/.libs
cc -I../../include -I../../include -I. -I../.. -I. -I./../..
-I./../../snmplib -I./.. -I..
-I/mnt/disk0/_pkgsrc/net/net-snmp/work/.buildlink/include -O2 -pipe
-Dnetbsd1 -I/mnt/disk0/_pkgsrc/net/net-snmp/work/.buildlink/include
-Dnetbsdelf -c ucd-snmp/memory.c  -fPIC -DPIC -o ucd-snmp/.libs/memory.o
ucd-snmp/memory.c: In function `getswap':
ucd-snmp/memory.c:398: error: storage size of `swdevt' isn't known
ucd-snmp/memory.c:399: error: storage size of `fswdevt' isn't known
ucd-snmp/memory.c:406: error: invalid application of `sizeof' to an
incomplete type
ucd-snmp/memory.c:432: error: invalid application of `sizeof' to an
incomplete type
ucd-snmp/memory.c: In function `var_extensible_mem':
ucd-snmp/memory.c:610: error: `total' undeclared (first use in this
function)
ucd-snmp/memory.c:610: error: (Each undeclared identifier is reported
only once
ucd-snmp/memory.c:610: error: for each function it appears in.)
*** Error code 1

Stop.
make: stopped in
/mnt/disk0/_pkgsrc/net/net-snmp/work/net-snmp-5.0.9/agent/mibgroup
*** Error code 1

Stop.
make: stopped in
/mnt/disk0/_pkgsrc/net/net-snmp/work/net-snmp-5.0.9/agent
*** Error code 1

Stop.
make: stopped in /mnt/disk0/_pkgsrc/net/net-snmp/work/net-snmp-5.0.9
*** Error code 1

Stop.
make: stopped in /mnt/disk0/_pkgsrc/net/net-snmp
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/net/net-snmp



http://cvs.sourceforge.net/viewcvs.py/net-snmp/net-snmp/agent/mibgroup/ucd-snmp/


-Brian

> case, rebuilding the executables would help.
> 
> Masao