Subject: Re: Building SNMP for the 386.
To: Dave Burgess <burgess@cynjut.neonramp.com>
From: Berndt Josef Wulf <wulf@ping.net.au>
List: port-i386
Date: 02/06/1997 13:54:08
Dave Burgess wrote
> 
> I recently tried my hand at building the most recent version of the
> UCB-SNMP stuff.
> 
> I found the following problems:
> 
> 1)  There is an assignment that lacks a cast in one of the files.  It
> would be innocuous, since the comparison is to NULL, but the compile
> fails.
> 
> 2)  We dont have separate if_name and if_unit stuff anymore.  I simply
> changed the if_name to if_xname and left the rest of the code for the
> unit hidden behind an 'ifdef 0'.
> 
> The server works well in both version 1 and version 2 modes.  SInce I
> have a bunch of V1 stuff here on the net, I have stuck pretty much with
> v1.

Do you mean ucd-snmp-3.x? I had problems compiling
ucd-snmp-3.1.2.1. Can you be a little more specific about the
comparison? 

I had problems compiling ./agent/snmp_vars.c line 2201. 

if ( ifnet.if_addrlist == 0 )

after setting it

if ( ifnet.if_addrlist.tqh_last == 0)

and defining STRUCT_IFNET_HAS_IF_XNAME to get around the 
if_name problem at around lines 3507/3517 the compiler was happy.

There was also a problem with redefining a variable by vmmeter.h 
I commented it out in the config.h file....


cheerio Berndt
-- 
Name	: Berndt Josef Wulf
E-Mail	: wulf@ping.net.au
Sysinfo	: DEC AXPpci33+, NetBSD-1.2