hi

> John Saylor wrote:
> >when i run make test i keep getting errors like this:
> >
> >[Tue Nov 25 17:12:11 2003] [error] Can't locate My/child_init.pm in @INC
> >(@INC contains: /usr/lib/perl5/5.8.0/i686-linux /usr/lib/perl5/5.8.0
> >/usr/lib/perl5/site_perl/5.8.0/i686-linux /usr/lib/perl5/site_perl/5.8.0
> >/usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl
> >/usr/lib/perl5/vendor_perl/5.8.0/i686-linux
> >/usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .
> >/usr/local/src/mod_perl-1.29/t/ /usr/local/src/mod_perl-1.29/t/lib/perl) at
> >(eval 5) line 3.

> >now My::child_init is defined in t/docs/startup.pl but for some reason the
> >test script isn't seeing it there. any suggestions?

( 03.11.25 15:28 -0800 ) Stas Bekman:
> Show us a sample code.

it's all in the mod_perl tests. this is not my code at all! this is the
part where the webserver starts up before doing the mod_perl testing. i
give the command:
make test


and it fails like this:
cp t/conf/mod_perl_srm.conf t/conf/srm.conf
./apaci/load_modules.pl ../apache_1.3.29/src
../apache_1.3.29/src/httpd -f `pwd`/t/conf/httpd.conf -X -d `pwd`/t &
httpd listening on port 8529
will write error_log to: t/logs/error_log
letting apache warm up...\c
done
/usr/bin/perl t/TEST 0
still waiting for server to warm up...............not ok
server failed to start! (please examine t/logs/error_log) at t/TEST line 95.
make: *** [run_tests] Error 111


so the error log reference is the one i've included earlier in this
mail.

in the t/conf/httpd.conf there's this:
PerlChildInitHandler My::child_init
PerlChildExitHandler My::child_exit


and in t/docs/startup.pl i've found this:
#testing child init/exit hooks

sub My::child_init {
    my $r = shift;
    eval {
      my $s = $r->server;
      my $sa = $s->server_admin;
      $s->warn("[notice] child_init for process $$, report any problems to $sa\n");
    }; [EMAIL PROTECTED]'' if $@;
    0;
}


in the mod_perl-1.29 directory. here are the arguments i'm passing to
perl Makefile.PL

APACHE_SRC=../apache_1.3.29/src DO_HTTPD=1 USE_APACI=1 PREP_HTTPD=1 USE_DSO=1 
PERL_TRACE=1 PERL_DEBUG=1 PERL_SSI=0 EVERYTHING=1


thanks for any help.

-- 
\js     "don't panic"


-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html

Reply via email to