Re: [mp1] building mp1 with mod_ssl - what am I doing wrong?
Carl Brewer wrote: Stas Bekman wrote: Carl, can you build Apache w/o mod_perl w/ the rest of the things? Yes, it's just the mod_perl stuff that's barfing. It looks like the mod_perl make install isn't putting the header files into src/includes/. A quick google shows a bunch of relevant hits: http://www.google.ca/search?hl=en&ie=UTF-8&q=%22os.h%3A+No+such+file+or+directory%22&btnG=Search&meta= Also make sure that you are following the exact instructions from: http://perl.apache.org/docs/1.0/guide/install.html#mod_perl_and_mod_ssl___openssl_ The list of arguments I want to feed to the actual apache configure make this a bit of a pain, and I thought that it wasn't necessary to build httpd from within mod_perl (and indeed it shouldn't be anyway!). Not, unless you want a static build, which is what the quoted instructions do. But, at your suggestion, I've now done this, following the instructions on the site you referenced : cd openssl-0.9.7d ./config --prefix=/usr/local/openssl-0.9.7d make make test make install then in the mod_perl dir : perl Makefile.PL USE_APACI=1 EVERYTHING=1 DO_HTTPD=1 SSL_BASE=/usr/local/openssl-0.9.7d APACHE_PREFIX=/usr/local/apache-test APACHE_SRC=../apache_1.3.31/src APACI_ARGS='--enable-module=ssl,--enable-module=rewrite,--enable-module=proxy, --enable-module=so,--enable-module=access,--enable-module=auth, --enable-module=include,--enable-module=mime,--enable-module=log_config, --enable-module=alias,--enable-module=vhost_alias,--enable-module=log_agent, --enable-module=headers,--enable-shared=expires,--enable-shared=mime_magic, --enable-shared=ssl' And that compiled ok. Maybe the problem was this : "--activate-module=src/modules/perl/libperl.a" \ ? Right. In which case refer to the various sections in http://perl.apache.org/docs/1.0/guide/install.html that discuss the DSO build. -- __ Stas BekmanJAm_pH --> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com -- 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
Re: [mp1] building mp1 with mod_ssl - what am I doing wrong?
Stas Bekman wrote: Carl, can you build Apache w/o mod_perl w/ the rest of the things? Yes, it's just the mod_perl stuff that's barfing. It looks like the mod_perl make install isn't putting the header files into src/includes/. A quick google shows a bunch of relevant hits: http://www.google.ca/search?hl=en&ie=UTF-8&q=%22os.h%3A+No+such+file+or+directory%22&btnG=Search&meta= Also make sure that you are following the exact instructions from: http://perl.apache.org/docs/1.0/guide/install.html#mod_perl_and_mod_ssl___openssl_ The list of arguments I want to feed to the actual apache configure make this a bit of a pain, and I thought that it wasn't necessary to build httpd from within mod_perl (and indeed it shouldn't be anyway!). But, at your suggestion, I've now done this, following the instructions on the site you referenced : cd openssl-0.9.7d ./config --prefix=/usr/local/openssl-0.9.7d make make test make install then in the mod_perl dir : perl Makefile.PL USE_APACI=1 EVERYTHING=1 DO_HTTPD=1 SSL_BASE=/usr/local/openssl-0.9.7d APACHE_PREFIX=/usr/local/apache-test APACHE_SRC=../apache_1.3.31/src APACI_ARGS='--enable-module=ssl,--enable-module=rewrite,--enable-module=proxy, --enable-module=so,--enable-module=access,--enable-module=auth, --enable-module=include,--enable-module=mime,--enable-module=log_config, --enable-module=alias,--enable-module=vhost_alias,--enable-module=log_agent, --enable-module=headers,--enable-shared=expires,--enable-shared=mime_magic, --enable-shared=ssl' And that compiled ok. Maybe the problem was this : "--activate-module=src/modules/perl/libperl.a" \ ? I also upgraded openssl to the latest 0.9.7 release. -- 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
Re: [mp1] building mp1 with mod_ssl - what am I doing wrong?
Stas Bekman wrote: Carl Brewer wrote: I must be spoilt by apache2 :) RedHat Linux 7.3 on i386, trying to build mod_perl and Also RH 7.3 sounds like a way too old. It's possible that this is why you are having those problems. Just a guess, I haven't read the google result I've quoted in my reply. -- __ Stas BekmanJAm_pH --> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com -- 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
Re: [mp1] building mp1 with mod_ssl - what am I doing wrong?
Carl Brewer wrote: 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 : [...] 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 Carl, can you build Apache w/o mod_perl w/ the rest of the things? A quick google shows a bunch of relevant hits: http://www.google.ca/search?hl=en&ie=UTF-8&q=%22os.h%3A+No+such+file+or+directory%22&btnG=Search&meta= Also make sure that you are following the exact instructions from: http://perl.apache.org/docs/1.0/guide/install.html#mod_perl_and_mod_ssl___openssl_ -- __ Stas BekmanJAm_pH --> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com -- 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
[mp1] building mp1 with mod_ssl - what am I doing wrong?
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