I must be spoilt by apache2 :)
RedHat Linux 7.3 on i386, trying to build mod_perl and mod_ssl into apache 1.3.31. Here's what I'm doing :
tar -xzf ../apache_1.3.31.tar.gz tar -xzf ../mod_ssl-2.8.19-1.3.31.tar.gz tar -xzf ../mod_perl-1.29.tar.gz
cd mod_ssl-2.8.19-1.3.31/ ./configure --with-apache=../apache_1.3.31
Configuring mod_ssl/2.8.19 for Apache/1.3.31 + Apache location: ../apache_1.3.31 (Version 1.3.31) + Auxiliary patch tool: ./etc/patch/patch (local) + Applying packages to Apache source tree: o Extended API (EAPI) o Distribution Documents o SSL Module Source o SSL Support o SSL Configuration Additions o SSL Module Documentation o Addons Done: source extension and patches successfully applied.
Now proceed with the following commands (Bourne-Shell syntax): $ cd ../apache_1.3.31 $ SSL_BASE=/path/to/openssl ./configure ... --enable-module=ssl $ make $ make certificate $ make install
cd ../mod_perl-1.29/ perl Makefile.PL EVERYTHING=1 Configure mod_perl with ../apache_1.3.31/src ? [y] Shall I build httpd in ../apache_1.3.31/src for you? [y] n
make make install
At this stage, if I understand correctly, I shuold be able to build apache, and it will make the mod_ssl and mod_perl things too.
My config for apache is : CC="gcc" \ CFLAGS=" -fno-strict-aliasing -I/usr/local/include" \ SSL_BASE="/usr/local/src/apache/openssl-0.9.6d" \ ./configure \ "--with-layout=Apache" \ "--prefix=/usr/local/apache-test" \ "--disable-rule=EXPAT" \ "--enable-rule=EAPI" \ "--activate-module=src/modules/perl/libperl.a" \ "--enable-module=so" \ "--enable-module=rewrite" \ "--enable-module=access" \ "--enable-module=auth" \ "--enable-module=include" \ "--enable-module=mime" \ "--enable-module=log_config" \ "--enable-module=alias" \ "--enable-module=rewrite" \ "--enable-module=vhost_alias" \ "--enable-module=proxy" \ "--enable-module=log_agent" \ "--enable-module=headers" \ "--enable-module=expires" \ "--enable-module=mime_magic" \ "--enable-module=ssl" \ "--enable-shared=rewrite" \ "--enable-shared=access" \ "--enable-shared=auth" \ "--enable-shared=include" \ "--enable-shared=mime" \ "--enable-shared=log_config" \ "--enable-shared=alias" \ "--enable-shared=rewrite" \ "--enable-shared=vhost_alias" \ "--enable-shared=proxy" \ "--enable-shared=log_agent" \ "--enable-shared=headers" \ "--enable-shared=expires" \ "--enable-shared=mime_magic" \ "--enable-shared=ssl"
Shows me this at config-time : Configuring for Apache, Version 1.3.31 + using installation path layout: Apache (config.layout) + activated perl module (modules/perl/libperl.a) Creating Makefile Creating Configuration.apaci in src Creating Makefile in src + configured for Linux platform + setting C pre-processor to gcc -E + using "tr [a-z] [A-Z]" to uppercase + checking for system header files + adding selected modules o rewrite_module uses ConfigStart/End + using -ldb1 for DBM support enabling DBM support for mod_rewrite o ssl_module uses ConfigStart/End + SSL interface: mod_ssl/2.8.19 + SSL interface build type: DSO + SSL interface compatibility: enabled + SSL interface experimental code: disabled + SSL interface conservative code: disabled + SSL interface vendor extensions: disabled + SSL interface plugin: Built-in SDBM + SSL library path: /usr/local/src/apache/openssl-0.9.6d + SSL library version: OpenSSL 0.9.6d 9 May 2002 + SSL library type: source tree only (stand-alone) + enabling Extended API (EAPI) + using -ldl for vendor DSO support + checking sizeof various data types + doing sanity check on compiler and options Creating Makefile in src/support Creating Makefile in src/regex Creating Makefile in src/os/unix Creating Makefile in src/ap Creating Makefile in src/main Creating Makefile in src/modules/standard Creating Makefile in src/modules/proxy Creating Makefile in src/modules/ssl
And then make fails :
===> src/modules/perl
gcc -I. -I../../include -I../../include/regex -I../../include/../ -DLINUX=22 -DHAVE_SET_DUMPABLE -I/usr/include/db1 -DMOD_SSL=208119 -DUSE_HSREGEX -DEAPI -fno-strict-aliasing -I/usr/local/include `../apaci` -I`/usr/local/bin/perl -MConfig -e 'print $Config{archlibexp}'`/CORE `/usr/local/bin/perl '-MApache::ExtUtils=%Config' -e 'print $Config{ccflags}'` -DMOD_PERL_VERSION=\"1.29\" -c -o mod_perl_opmask.o mod_perl_opmask.c
/bin/sh: ../apaci: No such file or directory
In file included from ../../include/httpd.h:29,
from apache_inc.h:120,
from mod_perl.h:162,
from mod_perl_opmask.c:1:
../../include/ap_config.h:71:16: os.h: No such file or directory
make[4]: *** [mod_perl_opmask.o] Error 1
make[3]: *** [all] Error 1
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/usr/local/src/apache/apache-1.3.31/apache_1.3.31/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/usr/local/src/apache/apache-1.3.31/apache_1.3.31'
make: *** [build] Error 2
What did I do wrong?!
-- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html