[AGENT++] can't compile agentX without SNMPv3

Frank Fock fock at agentpp.com
Thu Aug 12 00:04:54 CEST 2004


Hi Dave,

I will try to fix this, although I do not recommend using AgentX++
without SNMPv3 enabled (because of limited notification originator,
no context support, no source address validation, etc).

Best regards,
Frank

Dave Mason wrote:

> 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
>
>
> _______________________________________________
> AGENTPP mailing list
> AGENTPP at agentpp.org
> http://agentpp.org/mailman/listinfo/agentpp
>





More information about the AGENTPP mailing list