You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Christian Hansen <ch...@ngmedia.com> on 2004/12/11 11:22:30 UTC

[mp2] Apache::SizeLimit compilation failure on OS X with trunk

Apache::SizeLimit does not recognize OS X (darwin) and dies at compilation phase.

waiting 120 seconds for server to start: .[Sat Dec 11 10:56:10 2004] [info] 7 
Apache:: modules loaded
[Sat Dec 11 10:56:10 2004] [info] 0 APR:: modules loaded
[Sat Dec 11 10:56:10 2004] [info] base server + 29 vhosts ready to run tests
.............................................................................
waiting 120 seconds for server to start: not ok
[  error] giving up after 121 secs. If you think that your system
is slow or overloaded try again with a longer timeout value.
by setting the environment variable APACHE_TEST_STARTUP_TIMEOUT
to a high value (e.g. 420) and repeat the last command.


t/logs/error_log:

[Sat Dec 11 10:56:13 2004] [error] Apache::SizeLimit not implemented on your 
platform. at /Users/chansen/src/mod_perl-2.0/blib/lib/Apache/SizeLimit.pm line 
78.\nBEGIN failed--compilation aborted at 
/Users/chansen/src/mod_perl-2.0/blib/lib/Apache/SizeLimit.pm line 
81.\nCompilation failed in require at 
/Users/chansen/src/mod_perl-2.0/t/conf/post_config_startup.pl line 
68.\nCompilation failed in require at 
/Users/chansen/src/mod_perl-2.0/t/conf/modperl_extra.pl line 81.\n


Index: lib/Apache/SizeLimit.pm
===================================================================
--- lib/Apache/SizeLimit.pm     (revision 111596)
+++ lib/Apache/SizeLimit.pm     (working copy)
@@ -54,7 +54,7 @@

          $HOW_BIG_IS_IT = \&linux_size_check;

-    } elsif ( $Config{'osname'} =~ /(bsd|aix)/i ) {
+    } elsif ( $Config{'osname'} =~ /(bsd|aix|darwin)/i ) {

          # will getrusage work on all BSDs?  I should hope so.
          if ( eval { require BSD::Resource } ) {



Regards
Christian


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


Re: [mp2] Apache::SizeLimit compilation failure on OS X with trunk

Posted by Stas Bekman <st...@stason.org>.
Christian Hansen wrote:
> Apache::SizeLimit does not recognize OS X (darwin) and dies at 
> compilation phase.
> 
> waiting 120 seconds for server to start: .[Sat Dec 11 10:56:10 2004] 
> [info] 7 Apache:: modules loaded
> [Sat Dec 11 10:56:10 2004] [info] 0 APR:: modules loaded
> [Sat Dec 11 10:56:10 2004] [info] base server + 29 vhosts ready to run 
> tests
> ............................................................................. 
> 
> waiting 120 seconds for server to start: not ok
> [  error] giving up after 121 secs. If you think that your system
> is slow or overloaded try again with a longer timeout value.
> by setting the environment variable APACHE_TEST_STARTUP_TIMEOUT
> to a high value (e.g. 420) and repeat the last command.
> 
> 
> t/logs/error_log:
> 
> [Sat Dec 11 10:56:13 2004] [error] Apache::SizeLimit not implemented on 
> your platform. at 
> /Users/chansen/src/mod_perl-2.0/blib/lib/Apache/SizeLimit.pm line 
> 78.\nBEGIN failed--compilation aborted at 
> /Users/chansen/src/mod_perl-2.0/blib/lib/Apache/SizeLimit.pm line 
> 81.\nCompilation failed in require at 
> /Users/chansen/src/mod_perl-2.0/t/conf/post_config_startup.pl line 
> 68.\nCompilation failed in require at 
> /Users/chansen/src/mod_perl-2.0/t/conf/modperl_extra.pl line 81.\n

Thanks, Christian, committed

I'll work further to make sure that the test doesn't fail on unsupported 
platforms.

> Index: lib/Apache/SizeLimit.pm
> ===================================================================
> --- lib/Apache/SizeLimit.pm     (revision 111596)
> +++ lib/Apache/SizeLimit.pm     (working copy)
> @@ -54,7 +54,7 @@
> 
>          $HOW_BIG_IS_IT = \&linux_size_check;
> 
> -    } elsif ( $Config{'osname'} =~ /(bsd|aix)/i ) {
> +    } elsif ( $Config{'osname'} =~ /(bsd|aix|darwin)/i ) {
> 
>          # will getrusage work on all BSDs?  I should hope so.
>          if ( eval { require BSD::Resource } ) {
> 
> 
> 
> Regards
> Christian
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
> For additional commands, e-mail: dev-help@perl.apache.org


-- 
__________________________________________________________________
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

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