Hi Graham,

On 03.01.2009 01:39, Graham Leggett wrote:
Hi all,

I am currently struggling to build httpd-trunk, the build of ab fails
with undefined symbols as below. Is this broken for anyone else, or have
I done something dumb?

/tmp/httpd-trunk//build-1/libtool --silent --mode=link gcc -g -Wall
-Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations
-I/opt/local/include
-L/Users/minfrin/src/apache/sandbox/crypto/nss-3.12/mozilla/dist/Darwin9.4.0_OPT.OBJ/lib
-L/usr/lib -o ab ab.lo -L/opt/local/lib -lpcre -lldap -llber -lz -lldap
-llber -lssl -lcrypto /tmp/httpd-trunk//lib/libaprutil-1.la -lexpat
-liconv /tmp/httpd-trunk//lib/libapr-1.la -lpthread -lssl -lcrypto
Undefined symbols:
"_BIO_set_callback_arg", referenced from:
_start_connect in ab.o
"_BIO_get_callback_arg", referenced from:
_ssl_print_cb in ab.o
"_SSL_CTX_set_info_callback", referenced from:
_main in ab.o
"_BIO_set_callback", referenced from:
_start_connect in ab.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [ab] Error 1
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1

It works for me on Solaris. Those symbols (without the leading underscore) are referenced indeed by ab.c, but they should be in your libcrypto (BIO*) resp. libssl (SSL*).

Are you sure, that the libraries libcrypto and libssl can be found? Are they in /Users/minfrin/src/apache/sandbox/crypto/nss-3.12/mozilla/dist/Darwin9.4.0_OPT.OBJ/lib?

Which version of OpenSSL do you use (I use 0.9.8i)? Can you see the symbols in the libs (check with "nm")?

Regards,

Rainer

Reply via email to