I'm trying to build Apache 1.3.6 mod_perl and mod_ssl using openssl on
a Solaris box. The relevant version numbers are:
Solaris 2.6
Apache 1.3.6
mod_perl 1.19
mod_ssl 2.3.11
openssl 0.9.4
gcc 2.8.1
perl 5.005_03
mod_perl configures with no problems, from this:
cd /src/mod_perl-1.19
perl Makefile.PL APACHE_PREFIX=/usr/local/apache \
APACHE_SRC=../apache_1.3.6/src NO_HTTPD=1 DYNAMIC=1 USE_APACI=1 \
PERL_MARK_WHERE=1 PERL_STACKED_HANDLERS=1 ALL_HOOKS=1 PERL_SECTIONS=1
openssl configures with no problems, from this:
cd /src/openssl-0.9.4
make -f Makefile.ssl links
./Configure solaris-sparcv8-gcc
I run the Apache configure from mod_ssl as follows:
cd /src/mod_ssl-2.2.8-1.3.6
setenv SSL_BASE /src/openssl-0.9.4
./configure --with-apache=../apache_1.3.6
./configure \
--with-apache=/src/apache_1.3.6/ \
--with-ssl=/src/openssl-0.9.4 \
--with-layout=Apache \
--enable-module=ssl \
--enable-module=rewrite \
--enable-module=perl \
--enable-module=ssl \
--enable-rule=SSL_SDBM
That all works fine, and the Apache configure sees both mod_perl and
mod_ssl and configures them in. Then I try to run the Apache make,
and it gets as far as building mod_ssl and croaks with this error:
===> src/modules/ssl
gcc -c -I../../os/unix -I../../include -DSOLARIS2=260 -DMOD_PERL -DMOD_SSL=203111
-DEAPI `../../apaci` -DSSL_COMPAT \
-DSSL_USE_SDBM -I/src/openssl-0.9.4/include -DMOD_SSL_VERSION=\"2.3.11\" mod_ssl.c
In file included from mod_ssl.c:65:
mod_ssl.h:496: parse error before `AP_MM'
mod_ssl.h:496: warning: no semicolon at end of struct or union
mod_ssl.h:511: parse error before `}'
mod_ssl.h:511: warning: data definition has no type or storage class
*** Error code 1
make: Fatal error: Command failed for target `mod_ssl.o'
I am not using MM (the load on this server will be very light), and
it's not installed on the system. It looks like mod_ssl.h was
expecting a "typedef void AP_MM;" but the header file for it was never
included. I tried running the Apache configure from the Apache
directory with the same options, and got the same error when I ran make.
Help?
-- Cos (Ofer Inbar) -- [EMAIL PROTECTED] [EMAIL PROTECTED]
-- Exodus Professional Services -- [EMAIL PROTECTED]
"This may seem a bit weird, but that's okay, because it is weird."
-- Larry Wall in perlref(1) man page, Perl 5.001
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]