Hi Greeting:
I wrote a simple net-snmp trap program using net-snmp-5.1.1. library.
I got the compilation error as following -
/usr/local/lib/libnetsnmp.so: undefined reference to `EVP_DigestInit'
/usr/local/lib/libnetsnmp.so: undefined reference to `EVP_DigestFinal'
/usr/local/lib/libnetsnmp.so: undefined reference to `EVP_md5'
/usr/local/lib/libnetsnmp.so: undefined reference to `HMAC'
/usr/local/lib/libnetsnmp.so: undefined reference to `EVP_sha1'
/usr/local/lib/libnetsnmp.so: undefined reference to `des_cbc_encrypt'
/usr/local/lib/libnetsnmp.so: undefined reference to `des_key_sched'
/usr/local/lib/libnetsnmp.so: undefined reference to `EVP_DigestUpdate'
/usr/local/lib/libnetsnmp.so: undefined reference to `RAND_bytes'
/usr/local/lib/libnetsnmp.so: undefined reference to `des_ncbc_encrypt'
***************************************************************************
I have the -lnetsnmp in my Makefile.
And the two lines as following in my c file.
#include <net-snmp/net-snmp-config.h>
#include <net-snmp/net-snmp-includes.h>
I don't know what caused the compilation error. Could it be the
/usr/loca/lib/ having mixed version of netsnmp libraries? But I ran the make
install as root and all files in that directory were updated to the latest
(according to the time). Any suggestion is appreciated.
Regards,
Jim
HW夸)b粗h?+y羕N??v??y?'z汻jwbv楝?,│n?煡?!3諢?傳諲j溣[津??(赭?'!死嘈l飩瓜X砧瘱J^?^J眱須?)??嗓?l〥gr?i?