Am updating from snmp+±3.3.10/agent+±4.1.0/agentx+±2.1.0 to latest (snmp+±3.4.7/agent+±4.5.1/agentx+±2.5.0) and get the following error when building agent++
libtool: compile: i586-buildroot-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I../include -pthread -I/opt/ThirdParty/snmp++-3.4.7/include -D_GNU_SOURCE -D_XOPEN_SOURCE=XPG6 --std=gnu++11 -ggdb -g3 -O0 -pthread -MT mib.lo -MD -MP -MF .deps/mib.Tpo -c mib.cpp -fPIC -DPIC -o .libs/mib.o
In file included from mib.cpp:31:0:
../include/agent_pp/notification_originator.h:232:39: error: snmpCommunityEntry has not been declared
void set_snmp_community_entry(snmpCommunityEntry* communityEntryRef) {
^
../include/agent_pp/notification_originator.h:244:17: error: snmpCommunityEntry does not name a type
virtual snmpCommunityEntry* get_snmp_community_entry();
^
../include/agent_pp/notification_originator.h:296:32: error: nlmLogEntry has not been declared
void set_nlm_log_entry(nlmLogEntry* nlmLogEntryRef) {
^
../include/agent_pp/notification_originator.h:308:17: error: nlmLogEntry does not name a type
virtual nlmLogEntry* get_nlm_log_entry();
^
../include/agent_pp/notification_originator.h:318:9: error: snmpCommunityEntry does not name a type
snmpCommunityEntry* communityEntry;
^
../include/agent_pp/notification_originator.h:321:9: error: nlmLogEntry does not name a type
nlmLogEntry* _nlmLogEntry;
^
../include/agent_pp/notification_originator.h: In member function void Agentpp::NotificationOriginator::set_snmp_community_entry(int*):
../include/agent_pp/notification_originator.h:233:13: error: communityEntry was not declared in this scope
communityEntry = communityEntryRef;
^
../include/agent_pp/notification_originator.h: In member function void Agentpp::NotificationOriginator::set_nlm_log_entry(int*):
../include/agent_pp/notification_originator.h:297:13: error: _nlmLogEntry was not declared in this scope
_nlmLogEntry = nlmLogEntryRef;
^
make[1]: *** [mib.lo] Error 1
snmp++ is configured with:
/configure --host=$ARCHITECTURE-buildroot-linux-gnu --build=$ARCHITECTURE-buildroot-linux-gnu --disable-snmpv3 --disable-ipv6 --prefix=$BUILDROOT/$PACKAGE --with-log-profile=quiet --enable-static=no
agent++ is configured with:
./configure --host=$ARCHITECTURE-buildroot-linux-gnu --build=$ARCHITECTURE-buildroot-linux-gnu --with-libsnmp-prefix=$BUILDROOT/snmp++-3.4.7 --prefix=$BUILDROOT/$PACKAGE --enable-static=no
There are no errors with the snmp++ build