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 find libssl/libcrypto plus libucb.  I end up having to
hard-code changes to the mod_ssl Makefile to get libssl/libcrypto linked

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 \

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/ =>        (file not found) =>     (file not found) =>   /usr/ucblib/ =>        /usr/lib/ =>        /usr/lib/ =>   /usr/lib/ =>   /usr/lib/ =>    /usr/lib/ =>     /usr/lib/ =>    /usr/lib/

Here is how I make it build:
# vi SRCDIR/src/modules/ssl
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,

   "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

Also, I really only need a new, 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 Schaper              
    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:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message