httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lynn Schaper <scha...@Colorado.EDU>
Subject [users@httpd] apache with mod_ssl + dynamic openssl libs
Date Mon, 31 Mar 2003 23:55:40 GMT
I'm building apache 1.3.26 with mod_ssl_2.8.10 with gcc 3.2 on Solaris
6.  We want a new mod_ssl for an openssl upgrade, and I don't want to
also upgrade apache (yet).

I'm using openssl-0.9.7a's dynamic libraries, and building apache and
mod_ssl without setting an LD_LIBRARY_PATH.  I'm having a hard time
having libssl.so find libssl/libcrypto plus libucb.  I end up having to
hard-code changes to the mod_ssl Makefile to get libssl/libcrypto linked
properly.

Here's what I do to configure:
CC=gcc \
LDFLAGS="-L/usr/ucblib -R/usr/local/openssl/lib" \
SSL_BASE=/usr/local/openssl \
EAPI_MM=../modules/mod_ssl/mm-1.1.3.solaris2.6 \
./configure \
    --prefix=/usr/local/apache_1.3.26-mod_ssl_2.8.10 \
    --enable-module=so \
    --enable-module=ssl \
    --enable-module=mime_magic \
    --enable-module=rewrite \
    --enable-module=info \
    --enable-module=usertrack \
    --enable-module=log_config \
    --enable-shared=max \
    --enable-shared=ssl \
    --disable-rule=SSL_COMPAT \
    --enable-rule=SHARED_CORE

Configure shows that it finds ssl:
      + SSL library path: /usr/local/openssl
      + SSL library version: OpenSSL 0.9.7a Feb 19 2003
      + SSL library type: installed package (stand-alone)

After this build, ldd shows:
# ldd src/modules/ssl/libssl.so
        libssl.so.0.9.7 =>        (file not found)
        libcrypto.so.0.9.7 =>     (file not found)
        libucb.so.1 =>   /usr/ucblib/libucb.so.1
        libresolv.so.2 =>        /usr/lib/libresolv.so.2
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libelf.so.1 =>   /usr/lib/libelf.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libmp.so.2 =>    /usr/lib/libmp.so.2
        /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1



Here is how I make it build:
# vi SRCDIR/src/modules/ssl
OLD: SSL_LDFLAGS= -L$(SSL_LIBDIR)
NEW: SSL_LDFLAGS= -L$(SSL_LIBDIR) -R/usr/ucblib -R/usr/local/openssl/lib

The only comment I've found about this (other than "set your LDFLAGS")
is in the mod_ssl manual, Overview chapter,
http://www.modssl.org/docs/2.8/ssl_overview.html

   "But notice that building mod_ssl as a DSO requires that your
   OS/compiler supports building DSOs in the first place, and
   additionally that they support linking of a DSO against a static
   library (libssl.a, libcrypo.a)."

Does this mean that mod_ssl doesn't support linking against a dynamic
openssl library so I have to change the Makefile?  Will this work
somehow in my environment or via configure without using
LD_LIBRARY_PATH?

Also, I really only need a new libssl.so, not an entire build of apache.
Any way to make this work via my environment (without LD_LIBRARY_PATH)
or via configure and then running a make only in SRCDIR/src/modules/ssl?

Lynn
-- 
    Lynn Schaper                        Schaper@colorado.edu
    Information Technology Services     Central and Unix Services     
    University of Colorado at Boulder   303-492-3872

---------------------------------------------------------------------
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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message