Re: undefined reference..

Thomas Anders <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Sharad Chandra wrote:
> I am compiling a code on freebsd 4.2 system but i am getting this problem
> 
> bash-2.04$ gcc -I /usr/local/include -L /usr/local/lib -lnetsnmp -lcrypto 
> trap.c
> /usr/local/lib/libnetsnmp.so: undefined reference to `EVP_DigestFinal_ex'
> /usr/local/lib/libnetsnmp.so: undefined reference to `AES_set_encrypt_key'
> /usr/local/lib/libnetsnmp.so: undefined reference to `EVP_MD_CTX_cleanup'
> /usr/local/lib/libnetsnmp.so: undefined reference to `EVP_MD_CTX_init'
> /usr/local/lib/libnetsnmp.so: undefined reference to `DES_cbc_encrypt'
> /usr/local/lib/libnetsnmp.so: undefined reference to `DES_ncbc_encrypt'
> /usr/local/lib/libnetsnmp.so: undefined reference to `DES_key_sched'
> /usr/local/lib/libnetsnmp.so: undefined reference to `AES_cfb128_encrypt'
> 
> while compiling on freebsd 6.0, it does not give any error. 

Which net-snmp version is this (on freebsd 4.2/6.0)? FreeBSD package or
your own build? Has net-snmp been built natively on the freebsd4.2 box?
Which version of libcrypto (OpenSSL) do you have on the freebsd4.2 box?
It doesn't seem to match the one that was used to build net-snmp.


+Thomas

-- 
Thomas Anders (thomas.anders at blue-cable.de)

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.