Re: errors installing Apache 1.3.19/mod_perl 1.25 on RedHat 6.1

2001-06-14 Thread Doug MacEachern

On Tue, 10 Apr 2001, Jonathan Swartz wrote:

> % ./configure --activate-module=src/modules/perl/libperl.a
...
> "%Config" is not exported by the Apache::ExtUtils module at -e line 0

this is a bug.  newer mod_perl's override %Config::Config using
Apache::ExtUtils, which when you build inside the mod_perl-1.xx tree is
found ok, but inside the apache tree the build is picking up your older
Apache::ExtUtils.  you can bandaid by setting the PERL5LIB environment
variable inside the apache_1.3.19 tree to: `pwd`/../mod_perl-1.25/lib




errors installing Apache 1.3.19/mod_perl 1.25 on RedHat 6.1

2001-04-10 Thread Jonathan Swartz

I am trying to install mod_perl with APACI, exactly as written in
mod_perl/INSTALL.apaci under "The flexible way". I get the warnings and
fatal errors below.

My system:
  Apache 1.3.19
  mod_perl 1.25
  Perl 5.005_03
  RedHat 6.1 (Linux 2.2.12-20)

% perl Makefile.PL APACHE_SRC=../apache_1.3.19/src DO_HTTPD=1 USE_APACI=1
PREP_HTTPD=1 EVERYTHING=1
Will configure via APACI
...

% cd ../apache_1.3.19/
% ./configure --activate-module=src/modules/perl/libperl.a
Configuring for Apache, Version 1.3.19
 + using installation path layout: Apache (config.layout)
 + activated perl module (modules/perl/libperl.a)
Creating Makefile
Creating Configuration.apaci in src
  + id: mod_perl/1.25
  + id: Perl/5.00503 (linux) [perl]
"%Config" is not exported by the Apache::ExtUtils module at -e line 0
Can't continue after import errors at -e line 0
BEGIN failed--compilation aborted.
"%Config" is not exported by the Apache::ExtUtils module at -e line 0
Can't continue after import errors at -e line 0
BEGIN failed--compilation aborted.
[about 10 of these errors]
...

% make
...
gcc -c -I../.. -I/usr/lib/perl5/5.00503/i386-linux/CORE -I../../os/unix -I..
/../include   -DLINUX=22 -DMOD_PERL -DUSE_PERL_SSI  -DU\
SE_HSREGEX -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED `../../apaci`
mod_include.c
In file included from /usr/lib/perl5/5.00503/i386-linux/CORE/perl.h:1276,
 from ../../modules/perl/mod_perl.h:83,
 from mod_include.c:86:
/usr/lib/perl5/5.00503/i386-linux/CORE/cop.h:217: parse error before `bool'
/usr/lib/perl5/5.00503/i386-linux/CORE/cop.h:217: warning: no semicolon at
end of struct or union
/usr/lib/perl5/5.00503/i386-linux/CORE/cop.h:218: warning: data definition
has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/cop.h:227: parse error before `}'
/usr/lib/perl5/5.00503/i386-linux/CORE/cop.h:268: field `cx_subst' has
incomplete type
In file included from /usr/lib/perl5/5.00503/i386-linux/CORE/perl.h:1280,
 from ../../modules/perl/mod_perl.h:83,
 from mod_include.c:86:
/usr/lib/perl5/5.00503/i386-linux/CORE/scope.h:135: parse error before
`bool'
/usr/lib/perl5/5.00503/i386-linux/CORE/scope.h:135: warning: no semicolon at
end of struct or union

etc.

Any ideas? I will research, but it seems odd to fail out of the box on such
a common system.

Thanks,
Jon