Hey All,
I've just been updating the test suite for
MasonX::Interp::WithCallbacks and noticed that, while tests pass
perfectly with Apache 1, the server never starts up with Apache 2.
With Apache 2, I get:
benedict% perl Build.PL
Checking whether your kit is complete...
Looks good
Checking prerequisites...
Looks good
Creating new 'Build' script for 'MasonX-Interp-WithCallbacks' version
'1.18'
benedict% ./Build test --test_files t/08apache.t
Copying lib/MasonX/Interp/WithCallbacks.pm -> blib/lib/MasonX/Interp/
WithCallbacks.pm
/usr/local/bin/perl -I /Users/david/dev/Kineticode/MasonX-Interp-
WithCallbacks/trunk/blib/lib -I /Users/david/dev/Kineticode/MasonX-
Interp-WithCallbacks/trunk/blib/arch t/TEST -clean
[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/local/bin/perl /Users/david/dev/Kineticode/
MasonX-Interp-WithCallbacks/trunk/t/TEST -clean
/usr/local/bin/perl -I /Users/david/dev/Kineticode/MasonX-Interp-
WithCallbacks/trunk/blib/lib -I /Users/david/dev/Kineticode/MasonX-
Interp-WithCallbacks/trunk/blib/arch t/TEST -bugreport -verbose=0
[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/local/bin/perl /Users/david/dev/Kineticode/
MasonX-Interp-WithCallbacks/trunk/t/TEST -bugreport -verbose=0
/usr/local/apache2/bin/httpd -d /Users/david/dev/Kineticode/MasonX-
Interp-WithCallbacks/trunk/t -f /Users/david/dev/Kineticode/MasonX-
Interp-WithCallbacks/trunk/t/conf/httpd.conf -D APACHE2
using Apache/2.2.8 (prefork MPM)
waiting 60 seconds for server to start: .Loading CGI at runtime. You
could increase shared memory between Apache processes by preloading it
in your httpd.conf or handler.pl file
Syntax error on line 189 of /Users/david/dev/Kineticode/MasonX-Interp-
WithCallbacks/trunk/t/conf/httpd.conf:
mod_perl is already running, too late for PerlSwitches
.............................................................
waiting 60 seconds for server to start: not ok
[ error] giving up after 61 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. 360) and repeat the last command.
[ error] server failed to start! (t/logs/error_log wasn't created,
start the server in the debug mode)
benedict%
I'm not sure what the difference is here. Anyone know?
If you want to try it yourself, you can check out my code from svn here:
https://svn.kineticode.com/MasonX-Interp-WithCallbacks/trunk
I have Apache::Test 1.31 installed and am tying t run the tests
against my 2.2.8 Apache server with mod_perl 2.04 and Perl 5.10.
Thanks,
David
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]