[AGENT++] A bug

Rajesh Bansal bansal.rajeshkr at gmail.com
Mon Jul 30 09:01:35 CEST 2007


Dear All,
I have defined _NO_SNMPv3 in config_snmp_pp.h file and after that i compile
snmp++ , agent++ , agentX++ libraries these are compiling right but after
that when i am tring to use given examples in agent++ and agentX++ all are
quiting program with segmentation fault. first after defiining _NO_SNMPv3
all examples are not compiling these are making errors

master.o(.text+0x30e): In function `init(Agentpp::Mib&)':
/home/jimmy/development/agentX++/examples/master/src/master.cpp:170:
undefined reference to `Agentpp::snmp_community_mib::snmp_community_mib()'
master.o(.text+0x455):/home/jimmy/development/agentX++/examples/master/src/master.cpp:175:
undefined reference to
`Agentpp::notification_log_mib::notification_log_mib()'
master.o(.text+0x4b2):/home/jimmy/development/agentX++/examples/master/src/master.cpp:177:
undefined reference to `Agentpp::UsmUserTable::UsmUserTable()'
master.o(.text+0xc86):/home/jimmy/development/agentX++/examples/master/src/master.cpp:218:
undefined reference to `Agentpp::UsmStats::UsmStats()'
master.o(.text+0xcfa):/home/jimmy/development/agentX++/examples/master/src/master.cpp:221:
undefined reference to `Agentpp::usm_mib::usm_mib(Agentpp::UsmUserTable*)'
master.o(.text+0xd67):/home/jimmy/development/agentX++/examples/master/src/master.cpp:223:
undefined reference to `Agentpp::V3SnmpEngine::V3SnmpEngine()'
master.o(.text+0xdd4):/home/jimmy/development/agentX++/examples/master/src/master.cpp:224:
undefined reference to `Agentpp::MPDGroup::MPDGroup()'
master.o(.text+0xe48):/home/jimmy/development/agentX++/examples/master/src/master.cpp:225:
undefined reference to
`Agentpp::agentpp_config_mib::agentpp_config_mib(Agentpp::Mib*)'
master.o(.text+0xee6): In function `allow_agentx_tcp_from_localhost()':
/home/jimmy/development/agentX++/examples/master/src/master.cpp:134:
undefined reference to `Agentpp::snmpTargetAddrExtEntry::instance'
master.o(.text+0x10c4):/home/jimmy/development/agentX++/examples/master/src/master.cpp:142:
undefined reference to `Agentpp::snmpTargetAddrExtEntry::instance'

and after that if i am commenting all portion of SNMPv3 then it is making
segmentation faullt
-- 
Best Regards,
Rajesh Bansal



More information about the AGENTPP mailing list