You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Graham Leggett <mi...@sharp.fm> on 2009/01/03 01:39:37 UTC
Undefined symbols in ab.c
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
Regards,
Graham
--
Re: Undefined symbols in ab.c
Posted by Graham Leggett <mi...@sharp.fm>.
Rainer Jung wrote:
> 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")?
I had checked with nm, and the symbols weren't present in either libssl
or libcrypto v0.9.7 (as shipped with MacOSX v10.5), or v0.9.8 (from
Macports), nor in openssl-0.9.8b (from RHEL5).
Busy trying to build trunk from a pristine copy, will see if it makes a
difference.
Regards,
Graham
--
Re: Undefined symbols in ab.c
Posted by Rainer Jung <ra...@kippdata.de>.
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