[AGENT++] Example compilation problem !!!

Peter sobonski at wil.waw.pl
Thu Aug 5 10:59:34 CEST 2004


OELoo Jerry wrote:

> hi Peter
> maybe you should add the libdes file or its library
> Regards
> Jerry
>
>
>> From: Peter <sobonski at wil.waw.pl>
>> To: agentpp at agentpp.org
>> Subject: [AGENT++] Example compilation problem !!!
>> Date: Thu, 05 Aug 2004 10:35:28 +0200
>>
>> Hi all !
>>
>> I've some problems with example atm-mib compilation. The output is
>> lited below:
>>
>> $ make
>> rm -f agent.o
>> g++ -g -Wall -c -o agent.o -I../include -I../../../include
>> -I../../../../snmp++/include agent.cpp
>> rm -f atm_mib.o
>> g++ -g -Wall -c -o atm_mib.o -I../include -I../../../include
>> -I../../../../snmp++/include atm_mib.cpp
>> rm -f agentpp_notifytest_mib.o
>> g++ -g -Wall -c -o agentpp_notifytest_mib.o -I../include
>> -I../../../include -I../../../../snmp++/include
>> agentpp_notifytest_mib.cpp
>> rm -f agentpp_test_mib.o
>> g++ -g -Wall -c -o agentpp_test_mib.o -I../include -I../../../include
>> -I../../../../snmp++/include agentpp_test_mib.cpp
>> g++ -g -Wall -o agent agent.o atm_mib.o agentpp_notifytest_mib.o
>> agentpp_test_mib.o -L../../../lib -L../../../../snmp++/lib -lpthread
>> -lagent++ -lsnmp++ -L../../../../crypt -ltomcrypt
>> ../../../../snmp++/lib/libsnmp++.so: undefined reference to
>> `des_key_sched'
>> ../../../../snmp++/lib/libsnmp++.so: undefined reference to
>> `des_ncbc_encrypt'
>> collect2: ld returned 1 exit status
>> make: *** [agent] Error 1
>>
>> I've tried to find out these two symbols using grep inside snmp++
>> implementation
>> but I found nothing. Agent ++ and snmp++ implementation is compiled with
>> enabled flag NO_THREAD.
>>
>> I've tried to compile other example related to dynamic table but the
>> problem was the same.
>> The agent++ and snmp++ libs are fresh:
>>
>> gcc version is 3.3.3
>>
>> agent++ 3.5.20a
>> snmp++ 3.2.13
>>
>> Regards
>> Piotr Sobonski
>> _______________________________________________
>> AGENTPP mailing list
>> AGENTPP at agentpp.org
>> http://agentpp.org/mailman/listinfo/agentpp
>
>
> _________________________________________________________________
> ÏíÓÃÊÀ½çÉÏ×î´óµÄµç×ÓÓʼþϵͳ¡ª MSN Hotmail¡£ http://www.hotmail.com
>
It is not the problem :(
I've check :
$>ls ../../../../snmp++/lib/
$>libsnmp++.a libsnmp++.so

according to the libsnmppath from Makefile. I think that problem is more
complicated.

Regards
Piotr Sobo¨½ski



More information about the AGENTPP mailing list