On Mon, 20 Jan 2003, Stas Bekman wrote:

> Nick Tonkin wrote:
> >>>apr/threadmutex..............FAILED tests 1-3                                
> >>>        Failed 3/3 tests, 0.00% okay
> >>
> >>[...]
> >> > [Sat Jan 18 21:23:17 2003] [error] [client 127.0.0.1] Can't locate
> >> > APR/ThreadMutex.pm in @INC (@INC contains: /home/tmp/build/modperl-2.0/t
> >> > /home/tmp/build/modperl-2.0/blib/lib/Apache2
> >>   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> >>it is in this directory, right?
> > 
> > 
> > Nope:
> > 
> > nick@fatboy /tmp/build/modperl-2.0>sudo find / -name 'ThreadMutex.pm' -print
> > /home/tmp/build/modperl-2.0/WrapXS/APR/ThreadMutex/ThreadMutex.pm
> 
> So you don't have APR/ThreadMutex.pm in blib and the error was correct.
> 
> And what's your WrapXS/APR/ThreadMutex/Makefile's pm_to_blib target says?
> Mine says:
> pm_to_blib: $(TO_INST_PM)
>          @$(PERLRUNINST) "-MExtUtils::Install" \
>          -e "pm_to_blib({qw{ThreadMutex.pm 
> ../../../blib/lib/Apache2/APR/ThreadMute
> x.pm}},'$(INST_LIB)/auto','$(PM_FILTER)')"
>          @$(TOUCH) $@

Um, not sure what you meant. There is no Makefile in that directory, only
Makefile.PL:

nick@fatboy /tmp/build/modperl-2.0/WrapXS/APR/ThreadMutex>cat Makefile.PL | grep -v '#'


use ModPerl::MM ();

ModPerl::MM::WriteMakefile(
    'NAME'    => 'APR::ThreadMutex',
    'VERSION' => '0.01',
    'depend'  => {
          'ThreadMutex.c' => 
'/home/tmp/build/modperl-2.0/xs/APR/ThreadMutex/APR__ThreadMutex.h'
        }
,
);

So I did this:

nick@fatboy /tmp/build/modperl-2.0/WrapXS/APR/ThreadMutex>perl Makefile.PL 
!!! '/usr/local/apache/bin/apxs -q INCLUDEDIR' failed:
!!! unknown error
Writing Makefile for APR::ThreadMutex


Then in Makefile I have:

# --- MakeMaker pm_to_blib section:

pm_to_blib: $(TO_INST_PM)
        @$(PERLRUNINST) "-MExtUtils::Install" \
        -e "pm_to_blib({qw{}},'$(INST_LIB)/auto','$(PM_FILTER)')"
        @$(TOUCH) $@

> 
> Also I get:
> 
> % grep HAS_THREADS lib/Apache/BuildConfig.pm
> 
> 'HAS_THREADS' => '1',
> 
> you probably have 0, right? 

nick@fatboy /tmp/build/modperl-2.0>grep HAS_THREADS lib/Apache/BuildConfig.pm
                                   'HAS_THREADS' => '0',



> If so:
> 
> Also, I'm not sure why an undef is returned here, I'd think it should be:
> 
> Index: lib/ModPerl/MM.pm
> ===================================================================
> RCS file: /home/cvs/modperl-2.0/lib/ModPerl/MM.pm,v
> retrieving revision 1.21
> diff -u -r1.21 MM.pm
> --- lib/ModPerl/MM.pm   23 Jun 2002 21:46:54 -0000      1.21
> +++ lib/ModPerl/MM.pm   20 Jan 2003 05:06:53 -0000
> @@ -178,7 +178,7 @@
>       my $apr_config = build_config()->get_apr_config();
> 
>       if ($path =~ m/(Thread|Global)Mutex/) {
> -        return unless $apr_config->{HAS_THREADS};
> +        return '' unless $apr_config->{HAS_THREADS};
>       }
> 
>       return '' if $path =~ m/\.(pl|cvsignore)$/;
> 

I made this change, compiled again, but got the same errors,




> 
> 
> >>>error/push_handlers..........# Failed test 1 in error/push_handlers.t at
> >>>line 14
> >>>error/push_handlers..........FAILED test 1                                   
> >>>        Failed 1/1 tests, 0.00% okay
> >>
> >>[...]
> >> > [Sat Jan 18 21:23:27 2003] [error] [client 127.0.0.1] File does not 
> >>exist: /home/tmp/build/modperl-2.0/t/htdocs/TestError::push_handlers
> >>
> >>This is a new test I've added recently, unrelated to the original problem.
> >>For some reason it wasn't auto-configured. Do you have a Location entry 
> >>for TestError::push_handlers in t/conf/httpd.conf?i
> > 
> > 
> > Yep:
> > 
> > <Location /TestError::push_handlers>
> >     SetHandler modperl      
> >     PerlResponseHandler TestError::push_handlers
> > </Location>
> > 
> > 
> >>Does it appear when you 
> >>run t/TEST -conf?
> > 
> > 
> > Nope:
> > 
> > nick@fatboy /tmp/build/modperl-2.0>t/TEST -conf
> > *** cleaning out current configuration
> > *** reconfiguration done
> > 
> > nick@fatboy /tmp/build/modperl-2.0>ll 
>/home/tmp/build/modperl-2.0/t/htdocs/TestError::push_handlers
> > ls: /home/tmp/build/modperl-2.0/t/htdocs/TestError::push_handlers: No such file or 
>directory
> 
> Of course the file doesn't exist, it's a location target. What happens if 
> you run this test:
> 
> t/TEST -v error/push_handlers

no change:

nick@fatboy /tmp/build/modperl-2.0>t/TEST -v error/push_handlers
/usr/local/apache/bin/httpd  -d /home/tmp/build/modperl-2.0/t -f
/home/tmp/build/modperl-2.0/t/conf/httpd.conf -DAPACHE2 
using Apache/2.0.43 (prefork MPM)

waiting for server to start: .[Mon Jan 20 06:28:51 2003] [info] 18
Apache:: modules loaded
[Mon Jan 20 06:28:51 2003] [info] 3 APR:: modules loaded
[Mon Jan 20 06:28:51 2003] [info] base server + 7 vhosts ready to run
tests
.
waiting for server to start: ok (waited 1 secs)
server localhost.rlnt.net:8529 started
server localhost.rlnt.net:8530 listening (TestProtocol::echo)
server localhost.rlnt.net:8531 listening (TestProtocol::echo_filter)
server localhost.rlnt.net:8532 listening (TestProtocol::eliza)
server localhost.rlnt.net:8533 listening (TestFilter::in_bbs_msg)
server localhost.rlnt.net:8534 listening (TestFilter::in_str_msg)
server localhost.rlnt.net:8535 listening (TestDirective::perlmodule)
server localhost.rlnt.net:8536 listening (TestDirective::perlrequire)
server localhost.rlnt.net:8537 listening (TestDirective::perlloadmodule3)
server localhost.rlnt.net:8538 listening (TestDirective::perlloadmodule4)
server localhost.rlnt.net:8539 listening (TestDirective::perlloadmodule5)
server localhost.rlnt.net:8540 listening (TestDirective::perlloadmodule6)
error/push_handlers....1..1
# expected: 'ok'
# Failed test 1 in error/push_handlers.t at line 14
# received: '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
# <html><head>
# <title>404 Not Found</title>
# </head><body>
# <h1>Not Found</h1>
# <p>The requested URL /TestError::push_handlers was not found on this
server.</p>
# </body></html>
# '
not ok 1
FAILED test 1
        Failed 1/1 tests, 0.00% okay
Failed Test           Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
error/push_handlers.t                1    1 100.00%  1
*** server localhost.rlnt.net:8529 shutdown
!!! error running tests (please examine t/logs/error_log)
nick@fatboy /tmp/build/modperl-2.0>more t/logs/error_log 
[Mon Jan 20 06:28:51 2003] [info] Init: Initializing OpenSSL library
[Mon Jan 20 06:28:51 2003] [info] Init: Seeding PRNG with 0 bytes of
entropy
[Mon Jan 20 06:28:51 2003] [info] Init: Generating temporary RSA private
keys (512/1024 bits)
[Mon Jan 20 06:28:52 2003] [info] Init: Generating temporary DH parameters
(512/1024 bits)
[Mon Jan 20 06:28:52 2003] [warn] Init: Session Cache is not configured
[hint: SSLSessionCache]
[Mon Jan 20 06:28:52 2003] [info] Init: Initializing (virtual) servers for
SSL
[Mon Jan 20 06:28:52 2003] [info] Server: Apache/2.0.43,
Interface: mod_ssl/2.0.43, Library: OpenSSL/0.9.6g
END in modperl_extra.pl, pid=17843
[Mon Jan 20 06:28:52 2003] [info] Init: Initializing OpenSSL library
[Mon Jan 20 06:28:52 2003] [info] Init: Seeding PRNG with 0 bytes of
entropy
[Mon Jan 20 06:28:52 2003] [info] Init: Generating temporary RSA private
keys (512/1024 bits)
[Mon Jan 20 06:28:52 2003] [info] Init: Generating temporary DH parameters
(512/1024 bits)
[Mon Jan 20 06:28:52 2003] [info] Init: Initializing (virtual) servers for
SSL
[Mon Jan 20 06:28:52 2003] [info] Server: Apache/2.0.43,
Interface: mod_ssl/2.0.43, Library: OpenSSL/0.9.6g
[Mon Jan 20 06:28:52 2003] [notice] Apache/2.0.43
(Unix) mod_perl/1.99_09-dev Perl/v5.8.0 mod_ssl/2.0.43 OpenSSL/0.9.6
g configured -- resuming normal operations
[Mon Jan 20 06:28:52 2003] [info] Server built: Jan 17 2003 19:14:32
[Mon Jan 20 06:28:52 2003] [debug] prefork.c(1039): AcceptMutex: flock
(default: flock)
[Mon Jan 20 06:28:53 2003] [error] server reached MaxClients setting,
consider raising the MaxClients setting
[Mon Jan 20 06:28:53 2003] [error] [client 127.0.0.1] File does not
exist: /home/tmp/build/modperl-2.0/t/htdocs/TestEr
ror::push_handlers
[Mon Jan 20 06:28:54 2003] [info] removed PID file
/home/tmp/build/modperl-2.0/t/logs/httpd.pid (pid=17844)
[Mon Jan 20 06:28:54 2003] [notice] caught SIGTERM, shutting down
END in modperl_extra.pl, pid=17844




- nick

~~~~~~~~~~~~~~~~~~~~   
Nick Tonkin   {|8^)>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to