[AGENT++] snmp++ compiling problems with openssl

Joel Realubit joel at voxsant.com
Sun Sep 21 14:44:55 CEST 2003


Hi All:

i'm using Red Hat 9.0 and I seem to be having problems compiling SNMP++ 
examples. specifically, i get the ff. when compiling consoleExamples:

[joel at localhost consoleExamples]$ make -f Makefile.linux all
INFO: Found libtomcrypt.
g++ -g -Wall -I../include -I../src   -lpthread  snmpGet.o -L../lib 
-lsnmp++ -L../../crypt -ltomcrypt -o snmpGet
../lib/libsnmp++.a(auth_priv.o)(.text+0x1d71): In function 
`PrivDES::encrypt(unsigned char const*, unsigned, unsigned char const*, 
unsigned, unsigned char*, unsigned*, unsigned char*, unsigned*, unsigned 
long, unsigned long)':
/home/joel/downloads/snmp/snmp++/src/auth_priv.cpp:1232: undefined 
reference to `des_key_sched'
../lib/libsnmp++.a(auth_priv.o)(.text+0x1dd2):/home/joel/downloads/snmp/snmp++/src/auth_priv.cpp:1234: 
undefined reference to `des_ncbc_encrypt'
../lib/libsnmp++.a(auth_priv.o)(.text+0x1eb8): In function 
`PrivDES::decrypt(unsigned char const*, unsigned, unsigned char const*, 
unsigned, unsigned char*, unsigned*, unsigned char const*, unsigned, 
unsigned long, unsigned long)':
/home/joel/downloads/snmp/snmp++/src/auth_priv.cpp:1280: undefined 
reference to `des_key_sched'
../lib/libsnmp++.a(auth_priv.o)(.text+0x1f01):/home/joel/downloads/snmp/snmp++/src/auth_priv.cpp:1282: 
undefined reference to `des_ncbc_encrypt'
collect2: ld returned 1 exit status
make: *** [snmpGet] Error 1


this seems to have something to do with openssl. updated OpenSSL rpms 
are installed in my system and upon reading the des man page, it 
mentions that all their des_ functions were renamed to DES_ .

Note that when I i have uncompressed crypt and libdes in the same 
directory that snmp++ resides in. Does my compile error have to do with 
conflicts with the new release of OpenSSL, and if so how to I get around 
this so that i dont get anymore errors?

TIA,

Joel Realubit





More information about the AGENTPP mailing list