You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Randy Kobes <ra...@theoryx5.uwinnipeg.ca> on 2002/03/28 06:06:05 UTC

Re: Apache build problem on Windows

On Wed, 27 Mar 2002, Stas Bekman wrote:

> Pete Kelly wrote:
> > I get the following errors when trying to build from
> > command line:
> >
> > C:\mod_perl-1.26>perl Makefile.PL
> > APACHE_SRC=\Apache_1.3.23 INSTALL_DLL=\Apache\
> > mod_perl
[ ... ]
> > Can't open s/sub mod_perl::hooks.*/sub mod_perl::hooks
> > { qw(PerlDispatchHandler
> > PerlChildInitHandler PerlChildExitHandler
> > PerlPostReadRequestHandler PerlTransHa
> > ndler PerlHeaderParserHandler PerlAccessHandler
> > PerlAuthenHandler PerlAuthzHandl
> > er PerlTypeHandler PerlFixupHandler PerlHandler
> > PerlLogHandler PerlInitHandler P
> > erlCleanupHandler PerlRestartHandler
> > PerlStackedHandlers PerlMethodHandlers Perl
> > DirectiveHandlers PerlTableApi PerlLogApi PerlUriApi
> > PerlUtilApi PerlFileApi Per
> > lConnectionApi PerlServerApi) }/: No such file or
> > directory.
> > Edit of lib/mod_perl_hooks.pm failed
>
>
> Hmm, this looks related to the -spi.bak bug reported earlier. Try this
> patch:
>
> http://marc.theaimsgroup.com/?l=apache-modperl&m=101682366719414&w=2

Off-line, Pete tried the above, and it wasn't quite enough;
what's needed is the following (applied against the cvs
mod_perl sources):

=======================================================================
--- Makefile.PL~	Sun Mar 24 17:22:12 2002
+++ Makefile.PL	Wed Mar 27 12:14:48 2002
@@ -1104,7 +1104,7 @@
     cp "lib/mod_perl_hooks.pm.PL", "lib/mod_perl_hooks.pm";

     if ($Is_Win32) {
-      my @args = ($^X, '-spi.bak ', ' -e ', "\"s/sub mod_perl::hooks.*/sub mod_perl::hooks { qw($hooks) }/\"", 'lib/mod_perl_hooks.pm');
+      my @args = ($^X, '-spi.bak', '-e', "\"s/sub mod_perl::hooks.*/sub mod_perl::hooks { qw($hooks) }/\"", 'lib/mod_perl_hooks.pm');
       system(@args) == 0 or die "@args failed\n";
     }
     iedit "lib/mod_perl_hooks.pm",
=======================================================================

best regards,
randy


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org