I'm building mod_ssl-2.7.1-1.3.14 and apache_1.3.14 under Solaris 2.6.
OpenSSL is built as a shared library, installed in /usr/local/lib.
When I started apache, I got these errors:
# /usr/local/apache/sbin/apachectl startssl
[Thu Oct 26 19:56:22 2000] [warn] Loaded DSO libexec/mod_usertrack.so uses plain
Apache 1.3 API, this module might crash under EAPI! (please recompile it with -DEAPI)
Syntax error on line 210 of /usr/local/apache/etc/httpd.conf:
Cannot load /usr/local/apache/libexec/libssl.so into server: ld.so.1:
/usr/local/apache/sbin/httpd: fatal: libssl.so.0: open failed: No such file or
directory
/usr/local/apache/sbin/apachectl startssl: httpd could not be started
The first error I fixed by not loading the usertrack module. The second
one occurs because libexec/libssl.so requires two OpenSSL libraries,
but does not have a run path for /usr/local/lib. This is in spite of
the fact that I configured both mod_ssl and apache with that run path.
Here are my mod_ssl and apache configure scripts:
#!/bin/sh
env CC=cc OPTIM=-xO3 \
LDFLAGS="-R/usr/local/lib" \
./configure \
--with-apache=../apache_1.3.14 \
--with-ssl=/usr/local/src/OpenSSL/openssl-0.9.5a \
--prefix=/usr/local/apache \
--sysconfdir=/usr/local/apache/etc \
--datadir=/usr/local/apache/share \
--sbindir=/usr/local/apache/sbin \
--localstatedir=/var/apache
#!/end
#!/bin/sh
env CC=cc OPTIM=-xO3 \
LDFLAGS="-R/usr/local/lib" \
SSL_BASE=/usr/local/src/OpenSSL/openssl-0.9.5a \
./configure \
--server-uid=server --server-gid=staff \
--prefix=/usr/local/apache \
--sysconfdir=/usr/local/apache/etc \
--datadir=/usr/local/apache/share \
--sbindir=/usr/local/apache/sbin \
--localstatedir=/var/apache \
--enable-module=rewrite --enable-shared=rewrite \
--enable-module=usertrack --enable-shared=usertrack \
--enable-module=ssl --enable-shared=ssl
#!/end
I could not find a setting that would include the proper run path
into the libssl.so module. My workaround was to compile apache with
this make script:
#!/bin/sh
env LD_RUN_PATH=/usr/local/lib make
#!/end
I'm pleased to report that apache/mod_ssl now works quite nicely.
I hope that a future version would make it easier to configure for
Solaris shared libraries.
--
-Gary Mills- -Unix Support- -U of M Academic Computing and Networking-
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]