httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Hill" <ddh...@zk3.dec.com>
Subject resolving SSL with mod_ssl.so
Date Thu, 15 Aug 2002 20:06:44 GMT
Hi,
    Building 2.0.40 on Tru64 I am seeing issues with building a resolved
mod_ssl.so.

I am using OpenSSL with the SSL libs built static. I get messages about
unresolved symbols when loading mod_ssl. I chased it down but need some
advice on a real resolution.

As you all know, mod_ssl needs to resolve against -lss -lcrypto. What I am
seeing is that:

Configure:
*  correctly detects that SSL is desired,
* finds the libs in the right place (I specify the location),
* knows that additional libraries, -lssl and -lcrypto are needed.
* adds -lssl and -lcrypto to EXTRA_LIBS

We are golden so far ... if we are building a static httpd, but I want to
build apache DSO.

When linking http, I do see the EXTRA_LIBS on the link line...

But... I am building mod_ssl.so, so there are no SSL calls in httpd to
resolve against, so in effect, the EXTRA_LIBS are ignored when linking
httpd. If my SSL libraries were built shared, then the linker would put a
runtime requirement into the httpd image that would load the SSL libs, but
my SSL libs are static.

So, normally I would expect that the link command creating mod_ssl.so would
include the needed EXTRA_LIBS, but I don't see any provision for this.

Hacking modules/ssl/modules.mk and adding -lssl -lcrypto, and makeing
mod_ssl.la I do end up with a fully resolved mod_ssl.so

Am I missing something dreadfully obvious here ?

It would seem to me that other than the static httpd case, resolving all DSO
against -lssl -lcrypto is not the right thing to do. If my SSL libs were
shared, then each of the DSO modules would load the SSL libs regardless if
they were needed or not. Given the size of the SSL libs that is a pain.

The right answer (?) would seem to be configure setting SSL_LIBS, and
somehow inserting them into the proper place depending on where they are
needed (httpd link or the mod_ssl.so link).

So any words of wisdom or thoughts from you build gurus out there ?

thanks,
    Dave Hill


Mime
View raw message