[AGENT++] can't compile agentX without SNMPv3
Dave Mason
dmason at transat-tech.com
Wed Aug 11 18:25:12 CEST 2004
Hi,
I downloaded agent++v3.5.20a, snmp++v3.2.13a, and agentX++v1.4.10. I
dont use SNMPv3, so I uncomment the "#define _NO_SNMPv3" in
snmp_pp/config_snmp_pp.h. agent++ and snmp++ compile OK, but I had this
problem with agentX++:
$ make -f Makefile.linux
rm -f agentx.o
g++ -g -Wall -c -o agentx.o -I../include
-I/home/dmason/agentpp/agent++v3.5.20a/include
-I/home/dmason/agentpp/snmp++v3.2.13a/include agentx.cpp
agentx.cpp: In member function `virtual int
Agentpp::AgentXMaster::validate_address(const OctetStr&) const':
agentx.cpp:644: `snmpTargetAddrExtEntry' undeclared (first use this
function)
agentx.cpp:644: (Each undeclared identifier is reported only once for each
function it appears in.)
agentx.cpp:644: syntax error before `::' token
agentx.cpp:645: syntax error before `::' token
agentx.cpp: At global scope:
agentx.cpp:652: syntax error before `delete'
agentx.cpp:653: ISO C++ forbids declaration of `create_log_entry' with
no type
agentx.cpp:653: `int Agentpp::DefaultLog::create_log_entry' is not a static
member of `class Agentpp::DefaultLog'
agentx.cpp:654: ISO C++ forbids declaration of `log_entry' with no type
agentx.cpp:654: prototype for `int* Agentpp::DefaultLog::log_entry()'
does not
match any in class `Agentpp::DefaultLog'
This was the beginning of a long list of related problems. I checked
agent_pp/snmp_community_mib.h and it appears not to define
snmpTargetAddrExtEntry if SNMPv3 is turned off.
My first thought was that maybe AgentX isnt valid without v3, but I
checked the manual and it says we should be able to run it that way.
Regards,
Dave
More information about the AGENTPP
mailing list