httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Schaefer <joe+gm...@sunstarsys.com>
Subject Re: cvs commit: httpd-apreq-2/build xsbuilder.pl
Date Thu, 30 Oct 2003 14:06:01 GMT
Stas Bekman <stas@stason.org> writes:

[...]

> >   -die __PACKAGE__ . ": httpd must load mod_apreq.so first"
> >   -           if __PACKAGE__->env ne "Apache::RequestRec";
> >   +if (\$ENV{MOD_PERL}) {
> >   +    require mod_perl;
> >   +    if (\$mod_perl::VERSION > 1.99) {
> >   +        die __PACKAGE__ . ": httpd must load mod_apreq.so first"
> >   +               if __PACKAGE__->env ne "Apache::RequestRec";
> >   +    }
> >   +    elsif (\$mod_perl::VERSION > 1.24) {
> >   +        die __PACKAGE__ . ": httpd must load mod_apreq1.so first"
> >   +              if __PACKAGE__->env ne "Apache";
> 
> A::R 2 supports mp1?

In a manner of speaking, yes.  Firstly, mod_apreq1.c needs to be born,
and secondly, the perl glue needs to be amended to subclass from "Apache".
Until both of those things happen, our perl glue must fail to load for mp1.
Of course, the error message could recommend using libapreq-1.X here, 
but hey, why be pessimistic about it?

-- 
Joe Schaefer


Mime
View raw message