I'm unable to build snmpd on NetBSD with the
vmstat_netbsd1 and memory_netbsd1 modules.
There are compile errors in tcpTable.c, and when I fixed
that, there were many other problems.
If I apply the patches from the NetBSD package collection,
in the patches/ directory at:
ftp://ftp.netbsd.org/pub/NetBSD/packages/pkgsrc/net/net-snmp/
then I can get a working agent.
Suggest you incorporate the NetBSD package collection
patches wherever possible.
A related problem is that I needed to manually specify to
configure:
--with-mib-modules='host ucd-snmp/memory_netbsd1
ucd-snmp/vmstat_netbsd1'
When it seems to me from my incomplete understanding of
the configure process that those modules should be
included automatically.
Logged In: YES
user_id=21104
My builds were done with net-snmp 5.2.1.rc2 and 5.2.rc1
Logged In: YES
user_id=88647
We try to include such porting patches, unfortunately the
different OS porters very seldom tells us about what patches
they have to include.
Actually we would be very happy to cooperate with the
porters to make sure that they only have to create such a
patch once.
I will try to include the patches but have no easy way to
test them.
Logged In: YES
user_id=88893
Originator: NO
I've just checked the current code, and
all active lines build successfully on
my NetBSD system, and include the memory
and vmstat modules automatically.
The host module is not included by
default, but should be with the next
release of the 5.4.x line.