Re: undefined reference..

Sharad Chandra <[email protected]>
Newsgroups gmane.network.net-snmp.user
Organization Niksun India
Message-ID <[email protected]>
Hi Thomas,

on 4.2 snmp version: net-snmp-5.1.2
but i don't know open ssl version coz.
pkg_info | grep ssl and crypto is null. but i have crypto
bash-2.04$ ls /usr/lib/libcrypt*
/usr/lib/libcrypt.a     /usr/lib/libcrypt.so.2  /usr/lib/libcrypto.a    /usr/lib/libcrypto.so.1
/usr/lib/libcrypt.so    /usr/lib/libcrypt_p.a   /usr/lib/libcrypto.so   /usr/lib/libcrypto_p.a
and is not compiling

but on 6.0 i have net-snmp-5.2.3_3 and libgcrypt-1.2.3_1, which is compiling 
but want on 4.2.

Thanks
Sharad 

On Tuesday 03 July 2007 3:12 pm, Thomas Anders wrote:
> 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

-------------------------------------------------------------------------
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.