You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apreq-dev@httpd.apache.org by Randy Kobes <ra...@theoryx5.uwinnipeg.ca> on 2004/12/02 06:12:48 UTC
[apreq-2] Win32 cannot find Apache::Build
With the current svn sources, on Win32, when I try to run
the env/t/ tests, it fails in that it can't find
Apache::Build. I built mp2 with MP_INST_APACHE2=1, which
means Apache::Build is under an Apache2/, and consequently
Apache2.pm needs to be invoked. This may be a problem with
Apache::Test, though, in that I don't find this problem on
linux (also built with MP_INST_APACHE2=1), and also, I don't
have this problem with the perl_glue tests. Until I can
track this problem down, would the following:
========================================================
Index: env/t/TEST.PL
===================================================================
--- env/t/TEST.PL (revision 109447)
+++ env/t/TEST.PL (working copy)
@@ -1,6 +1,8 @@
use strict;
use warnings FATAL => 'all';
+BEGIN { eval{require Apache2;} }
+
use constant WIN32 => $^O eq 'MSWin32';
require Win32 if WIN32;
=======================================================
be acceptable? Thanks.
By the way, with this patch, all tests pass (perl-5.8.4,
Apache/2.0.52) on Win32.
--
best regards,
randy
Re: [apreq-2] Win32 cannot find Apache::Build
Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
On Thu, 2 Dec 2004, Randy Kobes wrote:
> On Thu, 2 Dec 2004, Joe Schaefer wrote:
[ ... ]
> > Where is the Apache::Build dependence coming from?
> > You should not need mp2 installed in order to run the env/
> > tests. Are you able to run the httpd-test/perl-framework
> > test suite on Win32 without a prior mp2 install? If so,
> > we should be able to do the same within env/t.
>
[ ... ]
> ==============================================================
> Specifically, it is around line 34 of Apache:::TestConfig:
> ==============================================================
> use constant IS_MOD_PERL_2 =>
> eval { require mod_perl && $mod_perl::VERSION >= 1.99 } || 0;
>
> use constant IS_MOD_PERL_2_BUILD => IS_MOD_PERL_2 &&
> require Apache::Build && Apache::Build::IS_MOD_PERL_BUILD();
> =============================================================
> which is requiring Apache::Build.
>
> Upon reflection, this does look like a bug which would be
> better addressed, rather than masked by my previous patch.
Never mind the above - I see now what my problem is. At one
point some time ago in the mp2 development I got a mp2
(partial) install not under Apache2/, which is why in the
above requiring mod_perl was successful but requiring
Apache::Build failed. Removing the old mod_perl.pm fixed
that problem (which has now introduced another problem, but
unrelated to apreq-2).
Thanks for the prod.
--
best regards,
randy
Re: [apreq-2] Win32 cannot find Apache::Build
Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
On Thu, 2 Dec 2004, Joe Schaefer wrote:
> Randy Kobes <ra...@theoryx5.uwinnipeg.ca> writes:
>
> > With the current svn sources, on Win32, when I try to run
> > the env/t/ tests, it fails in that it can't find
> > Apache::Build. I built mp2 with MP_INST_APACHE2=1, which
> > means Apache::Build is under an Apache2/, and consequently
> > Apache2.pm needs to be invoked.
>
> Where is the Apache::Build dependence coming from?
> You should not need mp2 installed in order to run the env/
> tests. Are you able to run the httpd-test/perl-framework
> test suite on Win32 without a prior mp2 install? If so,
> we should be able to do the same within env/t.
The Apache::Build dependence is coming from
=================================================================
cd D:\svn\apreq-2\env
D:\Perl\bin\perl.exe t\TEST.PL -apxs D:\Apache2\bin\apxs.bat
Can't locate Apache/Build.pm in @INC (@INC contains:
D:/Perl/lib D:/Perl/site/lib .) at
D:/Perl/site/lib/Apache/TestConfig.pm line 33.
BEGIN failed--compilation aborted at
D:/Perl/site/lib/Apache/TestConfig.pm line 34.
BEGIN failed--compilation aborted at
D:/Perl/site/lib/Apache/Test.pm line 22.
BEGIN failed--compilation aborted at
D:/Perl/site/lib/Apache/TestRun.pm line 20.
==============================================================
Specifically, it is around line 34 of Apache:::TestConfig:
==============================================================
use constant IS_MOD_PERL_2 =>
eval { require mod_perl && $mod_perl::VERSION >= 1.99 } || 0;
use constant IS_MOD_PERL_2_BUILD => IS_MOD_PERL_2 &&
require Apache::Build && Apache::Build::IS_MOD_PERL_BUILD();
=============================================================
which is requiring Apache::Build.
Upon reflection, this does look like a bug which would be
better addressed, rather than masked by my previous patch.
--
best regards,
randy
Re: [apreq-2] Win32 cannot find Apache::Build
Posted by Joe Schaefer <jo...@sunstarsys.com>.
Randy Kobes <ra...@theoryx5.uwinnipeg.ca> writes:
> With the current svn sources, on Win32, when I try to run
> the env/t/ tests, it fails in that it can't find
> Apache::Build. I built mp2 with MP_INST_APACHE2=1, which
> means Apache::Build is under an Apache2/, and consequently
> Apache2.pm needs to be invoked.
Where is the Apache::Build dependence coming from?
You should not need mp2 installed in order to run the env/
tests. Are you able to run the httpd-test/perl-framework
test suite on Win32 without a prior mp2 install? If so,
we should be able to do the same within env/t.
> This may be a problem with Apache::Test, though, in that I
> don't find this problem on linux
Correct. You don't need mp2 installed to run the env/
tests, just configure with --disable-perl-glue and the
mp2 stuff in glue/perl will be ignored.
> and also, I don't have this problem with the perl_glue tests.
> Until I can track this problem down, would the following:
> ======================================================== Index:
> env/t/TEST.PL
> ===================================================================
> --- env/t/TEST.PL (revision 109447)
> +++ env/t/TEST.PL (working copy)
> @@ -1,6 +1,8 @@
> use strict;
> use warnings FATAL => 'all';
>
> +BEGIN { eval{require Apache2;} }
> +
> use constant WIN32 => $^O eq 'MSWin32';
> require Win32 if WIN32;
>
> =======================================================
> be acceptable? Thanks.
I would prefer not to see this committed this just yet.
If we can't easily resolve the bug, this patch needs
a better comment and a corresponding note in TODO.
--
Joe Schaefer