Hi,
i compile the current release fine. when i try and link to libssl.a,
i get the following:
altir# uname -a
FreeBSD altir.com 3.3-STABLE FreeBSD 3.3-STABLE #0: Sat Sep 18 08:02:21
GMT 19
root@:/usr/src/sys/compile/NULLZERO i386
altir# make clean
rm -f *.o main
altir# make
gcc -c -ggdb -Wall -I. -I/usr/local/ssl/include main.c
main.c: In function `main':
main.c:36: warning: assignment makes integer from pointer without a cast
main.c:57: warning: passing arg 1 of `SSL_set_fd' makes pointer from
integer w
hout a cast
main.c:58: warning: passing arg 1 of `SSL_use_RSAPrivateKey' makes pointer
fro
integer without a cast
main.c:58: warning: passing arg 2 of `SSL_use_RSAPrivateKey' from
incompatible
ointer type
main.c:59: warning: passing arg 1 of `SSL_use_certificate' makes pointer
from
teger without a cast
main.c:59: warning: passing arg 2 of `SSL_use_certificate' from
incompatible p
nter type
main.c:60: warning: passing arg 1 of `SSL_accept' makes pointer from
integer w
hout a cast
gcc -o main main.o -ggdb -Wall -L/usr/local/ssl/lib -lcrypto -lssl
/usr/local/ssl/lib/libssl.a(ssl_lib.o): In function `SSL_clear':
ssl_lib.o(.text+0x1f): undefined reference to `ERR_put_error'
ssl_lib.o(.text+0x92): undefined reference to `BUF_MEM_free'
/usr/local/ssl/lib/libssl.a(ssl_lib.o): In function
`SSL_CTX_set_ssl_version':
ssl_lib.o(.text+0x178): undefined reference to `ERR_put_error'
/usr/local/ssl/lib/libssl.a(ssl_lib.o): In function `SSL_new':
ssl_lib.o(.text+0x1c3): undefined reference to `ERR_put_error'
ssl_lib.o(.text+0x2b1): undefined reference to `CRYPTO_add_lock'
ssl_lib.o(.text+0x327): undefined reference to `CRYPTO_new_ex_data'
/usr/local/ssl/lib/libssl.a(ssl_lib.o): In function
`SSL_CTX_set_session_id_co
ext':
ssl_lib.o(.text+0x3b8): undefined reference to `ERR_put_error'
/usr/local/ssl/lib/libssl.a(ssl_lib.o): In function
`SSL_set_session_id_contex
:
ssl_lib.o(.text+0x418): undefined reference to `ERR_put_error'
/usr/local/ssl/lib/libssl.a(ssl_lib.o): In function `SSL_free':
ssl_lib.o(.text+0x473): undefined reference to `CRYPTO_add_lock'
ssl_lib.o(.text+0x491): undefined reference to `CRYPTO_free_ex_data'
ssl_lib.o(.text+0x4a6): undefined reference to `BIO_pop'
ssl_lib.o(.text+0x4b5): undefined reference to `BIO_free'
etc..
here is the info on the system:
altir# uname -a
FreeBSD altir.com 3.3-STABLE FreeBSD 3.3-STABLE #0: Sat Sep 18 08:02:21
GMT 1999 root@:/usr/src/sys/compile/NULLZERO i386
altir#
altir# ./config -t
Operating system: i586-pc-freebsd3.3
Configuring for FreeBSD-elf
/usr/bin/perl5 ./Configure FreeBSD-elf
altir#
altir# gcc -v
gcc version 2.7.2.3
altir#
I tried all of the suggestions for compiling the library (removing
ASM, making sure it was freebsd-elf, taking out gcc optimizations)
and nothing seems to work. I tried compiling libssl on a freebsd 3.1
box, still spit the same thing out.
i am just taking a simple server and adding in the basic SSL support
as outlined in the SSLeay FAQ. i also tried compiling libssl.a from the
ssleay source and found the same problem on all boxes involved.
is this a common mistake? i didn't find anything much like it in the
email archives for the user lists, so perhaps you guys would know.
thanks!
BR
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]