I build 2.2.11 succesfully in Solaris 10 (both x86 and sparcv9)
I build OpenSSL, APR, and APR-util before building Apache.
For OpenSSL I use:
Configure thread shared solaris64-sparcv9-gcc
--prefix=/opt/myapp/openssl
make
make install
For the APR:
CPP_FLAGS="-m64 -O3"
CXX_FLAGS="-m64 -O3"
CFLAGS="=m64 -O3"
configure --prefix=/opt/myapp/apr --enable-threads
make
make install
For the APR-util
CPP_FLAGS="-m64 -O3"
CXX_FLAGS="-m64 -O3"
CFLAGS="=m64 -O3"
configure --prefix=/opt/myapp/apr-util --enable-threads
make
make install
For Apache:
CPP_FLAGS="-m64 -O3"
CXX_FLAGS="-m64 -O3"
CFLAGS="=m64 -O3"
LD_LIBRARY_PATH=/usr/sfw/lib/sparcv9
configure --with-ldap
--quiet
--srcdir=/path/to/apache/sources
--with-port=80
--enable-mods-shared="all headers ssl ldap
authnz_ldap info echo mime proxy proxy_ajp proxy_balancer"
--prefix=/opt/myapp/apache
--with-apr=/opt/myapp/apr
--with=apr-util=/opt/myapp/apr-util
--with-expat=builtin
--with-mpm=worker
--with-ssl=/opt/myapp/openssl
--enable-lib64
make
make install
Check if you can build using the lines above and adapt to add/remove
modules and options
-Jorge
________________________________
From: Anthony J. Biacco [mailto:[email protected]]
Sent: Friday, March 13, 2009 12:24 PM
To: [email protected]
Subject: RE: [us...@httpd] Build issue
Try putting the openssl bin directory in your PATH and the openssl lib
directory in your LD_LIBRARY_PATH
-Tony
---------------------------
Manager, IT Operations
Format Dynamics, Inc.
303-573-1800x27
[email protected] <mailto:[email protected]>
http://www.formatdynamics.com <http://www.formatdynamics.com/>
From: Rex Binns [mailto:[email protected]]
Sent: Friday, March 13, 2009 8:51 AM
To: users
Subject: [us...@httpd] Build issue
Hello all.
I'm trying to compile Apache 2.2.11 on a Solaris 10 box and have run
into some issues.
When I run my configure with the --with-ssl option set to the installed
location of my openSSL 0.9.8j binaries, I get a failure during configure
saying that the SSLeay libraries are not found.
checking for OpenSSL version... checking openssl/opensslv.h usability...
yes
checking openssl/opensslv.h presence... yes
checking for openssl/opensslv.h... yes
checking openssl/ssl.h usability... yes
checking openssl/ssl.h presence... yes
checking for openssl/ssl.h... yes
OK
forcing SSL_LIBS to "-lssl -lcrypto -lsocket -lnsl -ldl "
adding "-lssl" to LIBS
adding "-lcrypto" to LIBS
adding "-lsocket" to LIBS
adding "-lnsl" to LIBS
adding "-ldl" to LIBS
checking openssl/engine.h usability... yes
checking openssl/engine.h presence... yes
checking for openssl/engine.h... yes
checking for SSLeay_version... no
checking for SSL_CTX_new... no
checking for ENGINE_init... no
checking for ENGINE_load_builtin_engines... no
checking for SSL_set_cert_store... no
configure: error: ... Error, SSL/TLS libraries were missing or unusable
My build line for this configuration is: ./configure
--enable-layout=Sprint --enable-mods-shared=all --enable-ssl=shared
--enable-ssl --with-ssl=/tools/apache/openssl --enable-so
--with-mpm=prefork --enable-v4-mapped --enable-logio --enable-info
--enable-proxy --enable-cgi --enable-cgid
If I run configure with the --with-ssl option set to the location of the
openSSL 0.9.8j source tree, configure works fine, but make fails when
building ab with undefined symbols (BIO_set_callback,
BIO_set_callback_arg and SSL_CTX_set_info_callback)
/tools/apache/build/httpd-2.2.11/srclib/apr/libtool --silent --mode=link
gcc -g -O2 -L/usr/local/lib -R/usr/local/lib
-L/tools/apache/build/openssl-0.9.8j/lib
-R/tools/apache/build/openssl-0.9.8j/lib -L/usr/sfw/lib -o ab ab.lo
-lm /tools/apache/build/httpd-2.2.11/srclib/pcre/libpcre.la
/tools/apache/build/httpd-2.2.11/srclib/apr-util/libaprutil-1.la -lexpat
-liconv /tools/apache/build/httpd-2.2.11/srclib/apr/libapr-1.la -luuid
-lsendfile -lrt -lsocket -lnsl -lpthread -lssl -lcrypto -lsocket -lnsl
-ldl
Undefined first referenced
symbol in file
BIO_set_callback .libs/ab.o
BIO_set_callback_arg .libs/ab.o
BIO_get_callback_arg .libs/ab.o
SSL_CTX_set_info_callback .libs/ab.o
ld: fatal: Symbol referencing errors. No output written to .libs/ab
collect2: ld returned 1 exit status
My build line for this configuration is: ./configure
--enable-layout=Sprint --enable-mods-shared=all --enable-ssl=shared
--enable-ssl --with-ssl=/tools/apache/build/openssl-0.9.8j
--with-mpm=prefork --enable-v4-mapped --enable-logio --enable-info
--enable-proxy --enable-cgi --enable-cgid --enable-so
openSSL was built using this line: ./Configure solaris64-sparcv9-gcc
no-shared --prefix=/tools/apache/openssl
--openssldir=/tools/apache/openssl
PATH and MANPATH are the same for both openSSL and Apache..
export
PATH=/usr/ccs/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/bin:/opt/sfw/b
in/:/usr/openwin/bin:/bin/:/usr/bin:/bin:/usr/ucb:/usr/local/bin:/usr/lo
cal/sbin:/usr/sbin:/sbin:
export
LD_LIBRARY_PATH=/usr/lib:/usr/local/X11/lib:/usr/local/lib:/usr/sfw/lib:
/opt/sfw/lib:/usr/dt/lib:/usr/openwin/lib:${PWD}/lib
Any help with what I'm doing wrong here would be greatly appreciated.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [email protected]
" from the digest: [email protected]
For additional commands, e-mail: [email protected]