On Wed, 2 Jun 2004 13:50:55 -0700 Thanh wrote:
TN> I am trying to compile net-snmp_5.1.1 on a Freebsd5.2x.  I keep getting
TN> errors:
TN>  
TN> /home/thanh/TOP/SNMP/agent/mibgroup/ucd-snmp/diskio.c: In function
TN> `var_diskio':
TN> /home/thanh/TOP/SNMP/agent/mibgroup/ucd-snmp/diskio.c:466: error:
TN> structure has no member named `bytes_read'

Not all mib modules are supported on all platforms.

TN> I looked under /usr/include/sys/devicestat.h file, "struct devstat" does
TN> not have any of the above fields (bytes_read, bytes_written...).  
TN>  
TN> I wonder why the code is reference these fields ?  

Because the code was written for another platform.

TN> INFO:
TN> I ran ./configure with 
TN>  
TN> cw02> ./configure [...]
TN> --with-mib-modules="mibII snmpv3mibs ucd_snmp agent_mibs agentx
TN> notification target utilities host disman/event-mib smux
TN> mibII/mta_sendmail ucd-snmp/diskio agentx/subagent agentx/master
TN> examples/ucdDemoPublic examples/example"
TN> 
TN> Any feedback please ?

Don't include ucd-snmp/diskio in your configure options. Either that, or port
the code to use structure that do exist for FreeBSD 5.2 and send us a patch.

You are likely to run into similar problem with other modules. If you do,
simple remove them from the configure options.

-- 
Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/>
<irc://irc.freenode.net/#net-snmp>  
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users>

You are lost in a twisty maze of little standards, all different. 


-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to