[AGENT++] Re: AGENTPP Digest, Vol 42, Issue 14

Rajesh Bansal bansal.rajeshkr at gmail.com
Tue Jul 31 15:18:07 CEST 2007


Dear All,
segmentation fault is due to problem in request.cpp in function Request*
RequestList::receive(int sec)
because there ifdef _SNMPv3 statements are not properly aligned (not closed
if statement properly) at line no 1273.

On 7/30/07, agentpp-request at agentpp.org <agentpp-request at agentpp.org> wrote:
>
> Send AGENTPP mailing list submissions to
>         agentpp at agentpp.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://lists.agentpp.org/mailman/listinfo/agentpp
> or, via email, send a message with subject or body 'help' to
>         agentpp-request at agentpp.org
>
> You can reach the person managing the list at
>         agentpp-owner at agentpp.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of AGENTPP digest..."
>
> Today's Topics:
>
>    1. A bug (Rajesh Bansal)
>
>
> ---------- Forwarded message ----------
> From: "Rajesh Bansal" <bansal.rajeshkr at gmail.com>
> To: agentpp at agentpp.org
> Date: Mon, 30 Jul 2007 12:31:35 +0530
> Subject: [AGENT++] A bug
> 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
>
>
> _______________________________________________
> AGENTPP mailing list
> AGENTPP at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/agentpp
>
>


-- 
Best Regards,
Rajesh Bansal



More information about the AGENTPP mailing list