Compiling NetMrg

gfreitas

28-06-2004 16:56:08

When i compile de NetMrg on Mandrake a get the follow errors.

snmp.cpp In function `void snmp_init()'
snmp.cpp48 error `NETSNMP_DS_LIBRARY_ID' undeclared (first use this function)
snmp.cpp48 error (Each undeclared identifier is reported only once for each function it appears in.)
snmp.cpp48 error `NETSNMP_DS_LIB_OID_OUTPUT_FORMAT' undeclared (first use this function)
snmp.cpp48 error `NETSNMP_OID_OUTPUT_NUMERIC' undeclared (first use this function)
snmp.cpp48 error `netsnmp_ds_set_int' undeclared (first use this function)
snmp.cpp49 error `NETSNMP_DS_LIB_PRINT_NUMERIC_ENUM' undeclared (first use this function)
snmp.cpp49 error `netsnmp_ds_set_boolean' undeclared (first use this function)
make[1] ** [snmp.o] Erro 1
make[1] Leaving directory `/home/sysop/snmp/netmrg-0.16/src'
make ** [all-recursive] Erro 1


Can someone help me?

keb

28-06-2004 22:42:43

Which version of Mandrake and NetMRG are you using? I'll assume MDK 10.0 and NetMRG 0.16.

The header file net-snmp/library/default_store.h header file defines most of the variables listed in the errors you included. This file is usually included in net-snmp-devel on RedHat/Fedora and is included with libnet-snmp5-devel on Mandrake 10.0.

If that package is installed and NetMRG still isn't building correctly, try to locate where the default_store.h file is on your system.

- Kevin