net-snmp library error
"Daniel Coelho" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, I'm getting the folowing error: Making all in trapReceiver make[3]: Entering directory `/home/dcoelho/monoinoss/src/trapReceiver' if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../idl/TrapReceiverIDL -I../../src/utils -I/home/dcoelho/INOSS/include/corba -g -O2 -MT mibinterface.o -MD -MP -MF ".deps/mibinterface.Tpo" -c -o mibinterface.o mibinterface.cpp; \ then mv -f ".deps/mibinterface.Tpo" ".deps/mibinterface.Po"; else rm -f ".deps/mibinterface.Tpo"; exit 1; fi In file included from mibinterface.cpp:12: /usr/include/net-snmp/library/snmp_api.h:117: error: expected `;' before '*' token /usr/include/net-snmp/library/snmp_api.h:135: error: expected `;' before '*' token /usr/include/net-snmp/library/snmp_api.h:262: error: expected `;' before '*' token /usr/include/net-snmp/library/snmp_api.h:270: error: expected `;' before '*' token /usr/include/net-snmp/library/snmp_api.h:475: error: expected `;' before '*' token /usr/include/net-snmp/library/snmp_api.h:496: error: expected `;' before '*' token /usr/include/net-snmp/library/snmp_api.h:506: error: `oid' does not name a type /usr/include/net-snmp/library/snmp_api.h:695: error: expected `,' or `...' before '*' token /usr/include/net-snmp/library/snmp_api.h:697: error: expected `,' or `...' before '*' token /usr/include/net-snmp/library/snmp_api.h:699: error: expected `,' or `...' before '*' token /usr/include/net-snmp/library/snmp_api.h:701: error: expected `,' or `...' before '*' token /usr/include/net-snmp/library/snmp_api.h:703: error: expected `,' or `...' before '*' token /usr/include/net-snmp/library/snmp_api.h:705: error: expected `,' or `...' before '*' token /usr/include/net-snmp/library/snmp_api.h:707: error: expected `,' or `...' before '*' token /usr/include/net-snmp/library/snmp_api.h:734: error: expected `,' or `...' before '*' token /usr/include/net-snmp/library/snmp_api.h:739: error: expected `,' or `...' before '*' token /usr/include/net-snmp/library/snmp_api.h:744: error: expected `,' or `...' before '*' token /usr/include/net-snmp/library/snmp_api.h:746: error: expected constructor, destructor, or type conversion before '*' token /usr/include/net-snmp/library/snmp_api.h:746: error: expected `,' or `;' before '*' token mibinterface.cpp: In static member function `static void trapreceiver::MibInterface::initMibInt()': mibinterface.cpp:25: error: `snmp_set_mib_parse_label' undeclared (first use this function) mibinterface.cpp:25: error: (Each undeclared identifier is reported only once for each function it appears in.) mibinterface.cpp: In static member function `static std::string trapreceiver::MibInterface::getOIDName(std::string, bool)': mibinterface.cpp:77: error: `sprint_objid' undeclared (first use this function) make[3]: *** [mibinterface.o] Error 1 make[3]: Leaving directory `/home/dcoelho/monoinoss/src/trapReceiver' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/dcoelho/monoinoss/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/dcoelho/monoinoss' make: *** [all] Error 2 I'm using the net-snmp 5.1.2-11 version net-snmp-5.1.2-11 net-snmp-libs-5.1.2-11 net-snmp-devel-5.1.2-11 and I have this includes in the mibinterface.cpp file: #include "mibinterface.h" #include <fstream> #include <iostream> #include <cstdio> #include <sys/types.h> #include <net-snmp/library/snmp_api.h> #include <net-snmp/library/asn1.h> #include <net-snmp/library/mib.h> #include <net-snmp/library/parse.h> Is there something wrong with this version's librarys? What could be the problem? Thanks for your time in advance. Daniel Coelho ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ 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