[AGENT++] what happened with my mib files?

Frank Fock fock at agentpp.com
Fri Sep 8 07:40:41 CEST 2006


Hi,

When you use the latest AGENT++ version, then you should also
use the latest template version which is currently
templates\agent++v3.5.23. This template set is applicable to
all AGENT++ version greater or equal to 3.5.23 (until a new
template set with a greater version number than 3.5.23 is
present).

Best regards,
Frank

Jinnee wrote:
> Hello, Frank Fock
> 
> I have solved this problem yesterday. When I use AgentPro2 to generate source code, I select "templates\agent++v3.5.17". But the templates file "h_code.vm" of this version has a bug in line 421. It defined "agent_pp/log.h", but it should be "snmp_pp/log.h" in fact. Because there is no file named "log.h" in directory "../include/agent_pp/", but in "../include/snmp_pp/". Unfortunately, I have copy a "log.h" from "../include/snmp_pp/log.h" to "../include/agent_pp" when I first came to compiler error. As a result, it can be compiled yesterday, but has something wrong when linking objs. Now, it work normally. 
> 
> Thank you all. 
> 
> =============
> 
>> Hi Dario,
>>
>> Your workaround probably did not solve the problem.
>> I suspect a compiler switch has been modified or
>> you installed new sources of SNMP++ or AGENT++ and
>> did not recompiled everything.
>>
>> Best regards,
>> Frank
>>
>> Dario maljur wrote:
>>> I have seen this error when compiling agent's examples. 
>>> I don't know why they came out, but I deleted all lines where 
>>> DefaultLog was mentioned and it worked ok.
>>>
>> -----Original Message-----
>> From: agentpp-bounces at agentpp.org [mailto:agentpp-bounces at agentpp.org] On
>> Behalf Of Jinnee
>> Sent: Thursday, September 07, 2006 12:23 PM
>> To: agentpp
>> Subject: [AGENT++] what happened with my mib files?
>>
>> hello friends:
>> when i compile my mib files, it has some error i have never seen before. see
>> as follows. Please help me what happened?
>> /////////////////////////////////////////
>> arm-linux-g++ -g -Wall -c -o bluetop_bmc10_mib.o -I../include
>> -I../../../include -I../../../../snmp++/include bluetop_bmc10_mib.cpp
>> arm-linux-g++ -g -Wall -o agent agent.o snmpv2_conf.o snmpv2_smi.o
>> snmpv2_tc.o bluetop_bmc10_mib.o  -L../../../lib -L../../../../snmp++/lib
>> -lpthread -lagent++ -lsnmp++ -L../../../../libdes -ldes
>> bluetop_bmc10_mib.o(.gnu.linkonce.t._ZN7Agentpp10DefaultLog3logEv+0x88):../.
>> ./../include/agent_pp/List.h:168: undefined reference to
>> `Agentpp::AgentLogImpl::AgentLogImpl[in-charge](_IO_FILE*)'
>> bluetop_bmc10_mib.o(.gnu.linkonce.t._ZN7Agentpp10DefaultLog3logEv+0x120):../
>> ../../include/agent_pp/List.h:1140: undefined reference to
>> `Agentpp::DefaultLog::instance'
>> bluetop_bmc10_mib.o(.gnu.linkonce.t._ZN7Agentpp10DefaultLog16create_log_entr
>> yEh+0x8c):../../../include/agent_pp/List.h:999: undefined reference to
>> `Agentpp::DefaultLog::entry'
>> bluetop_bmc10_mib.o(.gnu.linkonce.t._ZN7Agentpp10DefaultLog9log_entryEv+0x34
>> ):../../../include/agent_pp/List.h:1075: undefined reference to
>> `Agentpp::DefaultLog::entry'
>> bluetop_bmc10_mib.o(.gnu.linkonce.t._ZN7Agentpp10DefaultLog16delete_log_entr
>> yEv+0x64):../../../include/agent_pp/List.h:970: undefined reference to
>> `Agentpp::DefaultLog::entry'
>> bluetop_bmc10_mib.o(.gnu.linkonce.t._ZN7Agentpp10DefaultLog4initEPNS_8AgentL
>> ogE+0x6c):../../../include/agent_pp/List.h:952: undefined reference to
>> `Agentpp::DefaultLog::instance'
>> collect2: ld returned 1 exit status
>> make: *** [agent] Error 1
>> //////////////////////////////////////////
>>> ________________________________________________________________________________________
>> AGENT++
>> http://www.agentpp.com
>> http://www.mibexplorer.com
>> http://www.mibdesigner.com
>>
>>
> 
> 
> 
> _______________________________________________
> AGENTPP mailing list
> AGENTPP at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/agentpp

-- 
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com




More information about the AGENTPP mailing list