On Mon, 11 Dec 2000, Richard Botting - Development - Torr Hall wrote:
> I am trying to build apache+mod-ssl, on a solaris 8 box, given apache 1.3.9,
> mod_ssl-2.4.10-1.3.9 and openssl-0.9.6. Following the mod_ssl
> INSTALL file I built openssl and configured mod_ssl with:
>
> ./configure --with-apache=/export/developers/rmb/apache-1.3.9/src/apache_1.3.9.
>
> I then configured apache with:
>
> SSL_BASE=/export/developers/rmb/open_ssl/src/openssl-0.9.6 \
> > ./configure \
> > --enable-module=ssl \
> > --prefix=/export/developers/rmb/apache_1.3.9 \
> > --enable-shared=ssl \
> > --enable-module=so
>
> However when i run make in the apache dir. I get an error:
>
> gcc -c -I../../os/unix -I../../include -DSOLARIS2=280 -DMOD_SSL=204110 -DEAPI
> -DUSE_EXPAT -I../../lib/expat-lite `../../apaci` -fPIC -DSHARED_MODULE
> -DSSL_COMPAT -I/export/developers/rmb/open_ssl/src/openssl-0.9.6/include
> -DMOD_SSL_VERSION=\"2.4.10\" ssl_expr_eval.c && mv ssl_expr_eval.o
> ssl_expr_eval.lo
> gcc -c -I../../os/unix -I../../include -DSOLARIS2=280 -DMOD_SSL=204110 -DEAPI
> -DUSE_EXPAT -I../../lib/expat-lite `../../apaci` -fPIC -DSHARED_MODULE
> -DSSL_COMPAT -I/export/developers/rmb/open_ssl/src/openssl-0.9.6/include
> -DMOD_SSL_VERSION=\"2.4.10\" ssl_util.c && mv ssl_util.o ssl_util.lo
> gcc -c -I../../os/unix -I../../include -DSOLARIS2=280 -DMOD_SSL=204110 -DEAPI
> -DUSE_EXPAT -I../../lib/expat-lite `../../apaci` -fPIC -DSHARED_MODULE
> -DSSL_COMPAT -I/export/developers/rmb/open_ssl/src/openssl-0.9.6/include
> -DMOD_SSL_VERSION=\"2.4.10\" ssl_util_ssl.c && mv ssl_util_ssl.o ssl_util_ssl.lo
> ssl_util_ssl.c:145: conflicting types for `d2i_PrivateKey_bio'
> /export/developers/rmb/open_ssl/src/openssl-0.9.6/include/openssl/x509.h:779:
> previous declaration of `d2i_PrivateKey_bio'
I think Ralf had a definition of d2i_PrivateKey_bio built into modssl
before such a function existed in OpenSSL (I haven't checked these facts,
just operating from what you've sent and vague recollections of something
similar). I would suggest that the versions of Apache and mod_ssl you're
building seem quite old compared to OpenSSL-0.9.6 (which is quite recent)
and hence this could well be your problem - ie. the function was added to
OpenSSL and is now conflicting with a version in mod_ssl that Ralf
probably removed in later versions. I'd try building with an older OpenSSL
if you need that version of Apache or (preferably) building with Apache
1.3.14 and a later mod_ssl too.
The other thing you could try is hacking out the d2i_PrivateKey_bio
implementation inside mod_ssl - ssl_util_ssl.c:145 seems to be the
location of mod_ssl's implementation and Ralf may have also predeclared it
in a header (or at the top of the same C file). You may find it compiles
and links that way but I have no idea for sure (good luck if you try).
Caveat: I could be way off target here - this is just a hunch based on
your error output. Good luck!
Hope that helps,
Geoff
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]