Wednesday, 11 September 2013

httpd-2.4.6 build problems

httpd-2.4.6 build problems

I'm having a problem building Apache httpd-2.4.6 on Ubuntu Linux 13.04
x86_64.
I compiled and installed openssl-1.0.0g. It installed in /usr/local/ssl.
(Not openssl! Just in case that was the problem, I created a symbolic link
for openssl->ssl) The ssl directory has a lib directory, but no lib64
directory:
% ls /usr/local/ssl
bin/
certs -> /etc/ssl/certs/
include/
lib/
man/
misc/
openssl.cnf -> /etc/ssl/openssl.cnf
openssl.cnf-old
private -> /etc/ssl/private/
% ls /usr/local/ssl/lib
engines/ libcrypto.a libssl.a pkgconfig/
I configured httpd with:
./configure \
--cache-file=/usr/share/config/config.cache \
--prefix=/usr/local/apache2 \
--enable-dav \
--enable-http \
--enable-imagemap \
--enable-modules=all \
--enable-modules=most \
--enable-so \
--enable-unixd \
--prefix=/usr/local/apache2 \
--with-included-apr \
--with-included-apr-util \
--with-included-iconv \
--enable-ssl \
--enable-ssl-staticlib-deps \
--with-crypto \
--enable-session-crypto \
--with-ssl=/usr/local/ssl \
--with-mysql \
--with-perl
and I've tried commenting out the lines with "ssl" and "crypto", but still
get these same errors:
...
make[2]: Entering directory `/local/usr/local/src/httpd-2.4.6/support'
/usr/local/src/httpd-2.4.6/srclib/apr/libtool --silent --mode=link gcc
-std=gnu99 -g -O2 -pthread \
-o ab ab.lo
/usr/local/src/httpd-2.4.6/srclib/apr-util/libaprutil-1.la
-lexpat /usr/local/src/httpd-2.4.6/srclib/apr/libapr-1.la
-luuid -lrt -lcrypt -lpthread -ldl -lm
ab.o: In function `ssl_print_cb':
/usr/local/src/httpd-2.4.6/support/ab.c:445: undefined reference to
`BIO_get_callback_arg'
/usr/local/src/httpd-2.4.6/support/ab.c:455: undefined reference to
`BIO_printf'
/usr/local/src/httpd-2.4.6/support/ab.c:457: undefined reference to
`BIO_dump'
ab.o: In function `ssl_print_cert_info':
/usr/local/src/httpd-2.4.6/support/ab.c:549: undefined reference to
`ASN1_INTEGER_get'
/usr/local/src/httpd-2.4.6/support/ab.c:549: undefined reference to
`BIO_printf'
/usr/local/src/httpd-2.4.6/support/ab.c:550: undefined reference to
`BIO_printf'
/usr/local/src/httpd-2.4.6/support/ab.c:551: undefined reference to
`ASN1_UTCTIME_print'
/usr/local/src/httpd-2.4.6/support/ab.c:552: undefined reference to
`BIO_printf'
/usr/local/src/httpd-2.4.6/support/ab.c:554: undefined reference to
`BIO_printf'
/usr/local/src/httpd-2.4.6/support/ab.c:555: undefined reference to
`ASN1_UTCTIME_print'
/usr/local/src/httpd-2.4.6/support/ab.c:556: undefined reference to
`BIO_printf'
/usr/local/src/httpd-2.4.6/support/ab.c:558: undefined reference to
`X509_get_pubkey'
/usr/local/src/httpd-2.4.6/support/ab.c:559: undefined reference to
`EVP_PKEY_bits'
/usr/local/src/httpd-2.4.6/support/ab.c:559: undefined reference to
`BIO_printf'
/usr/local/src/httpd-2.4.6/support/ab.c:561: undefined reference to
`EVP_PKEY_free'
/usr/local/src/httpd-2.4.6/support/ab.c:563: undefined reference to
`X509_get_issuer_name'
/usr/local/src/httpd-2.4.6/support/ab.c:564: undefined reference to
`X509_NAME_oneline'
/usr/local/src/httpd-2.4.6/support/ab.c:565: undefined reference to
`BIO_printf'
/usr/local/src/httpd-2.4.6/support/ab.c:567: undefined reference to
`X509_get_subject_name'
/usr/local/src/httpd-2.4.6/support/ab.c:568: undefined reference to
`X509_NAME_oneline'
/usr/local/src/httpd-2.4.6/support/ab.c:569: undefined reference to
`BIO_printf'
/usr/local/src/httpd-2.4.6/support/ab.c:572: undefined reference to
`X509_get_ext_count'
/usr/local/src/httpd-2.4.6/support/ab.c:572: undefined reference to
`BIO_printf'
This problem is different from Apache bug 46745. In that bug there was a
directory /usr/local/ssl/lib64, and the solution was to make a symbolic
link /usr/local/ssl/lib

No comments:

Post a Comment