On Thu, 7 Oct 1999, Ralf S. Engelschall wrote:

> On Thu, Oct 07, 1999, Yan Zhang Chen wrote:
> 
> > Before the existence of EAPI, I was thinking about building one single
> > Apache core, then each individual module could be built separately
> > (without referencing to Apache source tree) as DSO via apxs. This would look
> > really neat in terms of maintenance. Can I still do this with the introduction
> > of this EAPI? (mod_ssl INSTALL doesn't tell how to build mod_ssl separately
> > without Apache source tree; is it possible?)
> 
> Just build your Apache with EAPI only (see mod_ssl's --with-eapi-only option)
> and then proceed as you wanted, i.e. build all modules as DSOs (including
> mod_ssl). See "Upgrading with APXS (EXPERTS ONLY)" in the mod_ssl INSTALL
> documents for a few hints.

Hey Ralf! Need your help again. I followed your instructions to
separately build Apache (with EAPI patched) and mod_ssl DSO, but got the
following error when I tried to start Apache:

--------------------------------------------------------------------------
$ ./httpd -DSSL -f /beaker/yzc/ssl_test/httpd.conf
Syntax error on line 209 of /beaker/yzc/ssl_test/httpd.conf:
Cannot load /beaker/yzc/apache/libexec/libssl.so into server: Unresolved symbol in 
/beaker/yzc/apache/libexec/libssl.so: ap_add_config_define
-------------------------------------------------------------

Note that I didn't use "apxs" approach because of a ld error.
So I followed the conventional DSO building method. (Do I have to
use apxs for building this mod_ssl?)


Bellow are the main steps I conducted:

1. Patch Apache with EAPI

mod_ssl-2.4.5-1.3.9> ./configure --with-apache=../apache_1_3_9 --with-eapi-only

Now save a copy of apache_1_3_9/ as apache_1_3_9_1 for later use.


2. Build the base Apache (with SO enabled)

$ cp -r apache_1_3_9_1 apache_1_3_9
$ cd apache_1_3_9
$ ./configure --prefix=/beaker/yzc/apache --enable-module=most --enable-module=so
$ make
$ make install  (now I got the base httpd)


3. Build mod_ssl DSO

(openssl already been compiled)
$ cp apache_1_3_9_1 apache_1_3_9
$ cd mod_ssl-2.4.5-1.3.9
$ ./configure --with-apache=../apache_1.3.9
$ cd ../apache_1_3_9
$ SSL_BASE=../openssl-0.9.4 ./configure --enable-module=ssl --enable-shared=ssl
$ make
Now copy src/module/ssl/libssl.so to Apache install's libexec/, and add
ssl DSO into httpd.conf. Start httpd with "-DSSL -f <xxx>" args, and got
the above reported error.


Did I miss something?

Thanks very much,
--Yan

______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
User Support Mailing List                      [EMAIL PROTECTED]
Automated List Manager                            [EMAIL PROTECTED]

Reply via email to