You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Pratik <pr...@gmail.com> on 2004/09/06 15:16:40 UTC

Wrong error message while building mp2

I was trying to build mp2 statically using httpd-2.0.50 and I got the
following error message.

$ perl Makefile.PL PREFIX=/home/pratik/src/mp2 MP_AP_BUILD=1
MP_AP_PREFIX=/home/pratik/src/mp2/httpd-2.0.50
Reading Makefile.PL args from @ARGV
  MP_AP_BUILD = 1
  MP_AP_PREFIX = /home/pratik/src/mp2/httpd-2.0.50
mod_perl/1.29 installation detected...ok (will install mod_perl 2 into
PREFIX=/home/pratik/src/mp2, no collision)
[  error] Apache/2.0.50 not supported, 2.0.47 or higher is required

It's a small bug in Makefile.PL and here is the Patch for it.

--- Makefile.PL.old     2004-09-06 04:15:37.205403224 +0530
+++ Makefile.PL 2004-09-06 04:15:55.971550336 +0530
@@ -240,7 +240,7 @@

    if ($httpd_version lt $min_version) {
        error "Apache/$httpd_version not supported, " .
-              "$min_httpd_version or higher is required";
+              "$min_version or higher is required";
        exit(1);
    }

Regards,
Pratik

-- 
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: Wrong error message while building mp2

Posted by Stas Bekman <st...@stason.org>.
Pratik wrote:
> I was trying to build mp2 statically using httpd-2.0.50 and I got the
> following error message.
> 
> $ perl Makefile.PL PREFIX=/home/pratik/src/mp2 MP_AP_BUILD=1
> MP_AP_PREFIX=/home/pratik/src/mp2/httpd-2.0.50
> Reading Makefile.PL args from @ARGV
>   MP_AP_BUILD = 1
>   MP_AP_PREFIX = /home/pratik/src/mp2/httpd-2.0.50
> mod_perl/1.29 installation detected...ok (will install mod_perl 2 into
> PREFIX=/home/pratik/src/mp2, no collision)
> [  error] Apache/2.0.50 not supported, 2.0.47 or higher is required
> 
> It's a small bug in Makefile.PL and here is the Patch for it.
> 
> --- Makefile.PL.old     2004-09-06 04:15:37.205403224 +0530
> +++ Makefile.PL 2004-09-06 04:15:55.971550336 +0530
> @@ -240,7 +240,7 @@
> 
>     if ($httpd_version lt $min_version) {
>         error "Apache/$httpd_version not supported, " .
> -              "$min_httpd_version or higher is required";
> +              "$min_version or higher is required";

Thank you, Pratik. Committed with some refactoring to avoid this kind of 
errors in the future.



-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org 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