I am using Redhat 3.0 ES version and running a test program

 

g++ -o test test.Clnetsnmplsnmp

 

Got linking error as

/usr/lib/libnetsnmp.so: undefined reference to `EVP_DigestInit'

/usr/lib/libnetsnmp.so: undefined reference to `EVP_DigestFinal'

/usr/lib/libnetsnmp.so: undefined reference to `EVP_DigestFinal_ex'

/usr/lib/libnetsnmp.so: undefined reference to `AES_set_encrypt_key'

/usr/lib/libnetsnmp.so: undefined reference to `EVP_md5'

/usr/lib/libnetsnmp.so: undefined reference to `HMAC'

/usr/lib/libnetsnmp.so: undefined reference to `EVP_MD_CTX_cleanup'

/usr/lib/libnetsnmp.so: undefined reference to `SSLeay'

/usr/lib/libnetsnmp.so: undefined reference to `EVP_sha1'

/usr/lib/libnetsnmp.so: undefined reference to `EVP_MD_CTX_init'

/usr/lib/libnetsnmp.so: undefined reference to `EVP_DigestUpdate'

/usr/lib/libnetsnmp.so: undefined reference to `RAND_bytes'

/usr/lib/libnetsnmp.so: undefined reference to `DES_cbc_encrypt'

/usr/lib/libnetsnmp.so: undefined reference to `DES_ncbc_encrypt'

/usr/lib/libnetsnmp.so: undefined reference to `DES_key_sched'

/usr/lib/libnetsnmp.so: undefined reference to `AES_cfb128_encrypt'

 

I tried the option suggested below by Mr. Wes Hardakar,

 

--------------------------------------------------------------------------------------------
>>>>> On Mon, 2 Aug 2004 09:54:20 -0700 (PDT), avinash sawant <[EMAIL PROTECTED]> said:
 
avinash> #gcc -otest  test.c -lnetsnmp -lsnmp 
...
 
It was compiled with openssl support.  Try the following instead,
which should always work no matter how it was compiled:
 
gcc -otest  test.c `net-snmp-config --libs`
 
-- 
Wes Hardaker
Sparta

 

 

But the above gives error as

/usr/bin/ld: cannot find –lcrypto

 

 

Can someone help what the problem could be ….

 

Thanks

Arun

 

 

 

 

 

Reply via email to