I am trying to compile net-snmp_5.1.1 on a Freebsd5.2x.  I keep getting errors:
 
gcc -I../../include -I/home/thanh/TOP/SNMP/include -I. -I../.. -I/home/thanh/TOP/SNMP/agent/mibgroup -I/home/thanh/TOP/SNMP/agent/mibgroup/../.. -I/home/thanh/TOP/SNMP/agent/mibgroup/../../snmplib -I/home/thanh/TOP/SNMP/agent/mibgroup/.. -I.. -O -pipe -Dfreebsd5 -c /home/thanh/TOP/SNMP/agent/mibgroup/ucd-snmp/diskio.c  -fPIC -DPIC -o ucd-snmp/.libs/diskio.lo
/home/thanh/TOP/SNMP/agent/mibgroup/ucd-snmp/diskio.c: In function `var_diskio':
/home/thanh/TOP/SNMP/agent/mibgroup/ucd-snmp/diskio.c:466: error: structure has no member named `bytes_read'
/home/thanh/TOP/SNMP/agent/mibgroup/ucd-snmp/diskio.c:469: error: structure has no member named `bytes_written'
/home/thanh/TOP/SNMP/agent/mibgroup/ucd-snmp/diskio.c:472: error: structure has no member named `num_reads'
/home/thanh/TOP/SNMP/agent/mibgroup/ucd-snmp/diskio.c:475: error: structure has no member named `num_writes'
*** Error code 1
 
I looked under /usr/include/sys/devicestat.h file, "struct devstat" does not have any of the above fields (bytes_read, bytes_written...). 
 
I wonder why the code is reference these fields ?  
 
INFO:
I ran ./configure with
 
cw02> ./configure --prefix=$MIDSTREAMBASE/snmp-install --enable-shared --includedir=$MIDSTREAMBASE/SNMP/include --srcdir=$MIDSTREAMBASE/SNMP --with-persistent-directory=$MIDSTREAMBASE/snmp-install/persistent --with-mibdirs=$MIDSTREAMBASE/snmp-install/mibs --with-logfile=$MIDSTREAMBASE/snmp-install/logfiles --with-mib-modules="mibII snmpv3mibs ucd_snmp agent_mibs agentx notification target utilities host disman/event-mib smux mibII/mta_sendmail ucd-snmp/diskio agentx/subagent agentx/master examples/ucdDemoPublic examples/example"
Any feedback please ?
Thanks.

Reply via email to