You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apreq-dev@httpd.apache.org by "Eric J. Hansen" <eh...@worldmachine.com> on 2004/10/13 15:36:13 UTC

help with 2.04-dev build (failed tests: t/apreq/request, t/apreq/upload)

Hi folks,

I'm having problems installing libapreq2-2.04-dev.  (I have been using 2.02 for
a while with no problems, and it tests all OK.) I'm running Apache 2.0.52,
mod_perl 1.99_16, perl 5.8.2 on Linux OS kernel 2.4.21 (CRUX v1.2 distribution).
Perl modules that I've installed include ExtUtils-XSBuilder-0.27 and
ExtUtils-MakeMaker-6.21.

My configure line for 2.04-dev is:
# perl Makefile.PL --with-apache2-apxs=/var/httpd/bin/apxs

Basically, the make completes without any errors.

But during 'make test', I get the following errors that terminate the
testing process (this is just the tail of the test output):



....
[warning] result: OK
[warning] the client side drops 'root' permissions and becomes 'nobody'
/var/httpd/bin/httpd -d /usr/src/libapreq2-2.04-dev/glue/perl/t -f
/usr/src/libapreq2-2.04-dev/glue/perl/t/conf/httpd.conf -D APACHE2 -D
PERL_USEITHREADS
using Apache/2.0.52 (prefork MPM)

waiting 60 seconds for server to start: ..
waiting 60 seconds for server to start: ok (waited 1 secs)
server localhost:8529 started
t/apreq/big_input....ok
t/apreq/cgi..........skipped
       all skipped: no reason given
t/apreq/cookie.......ok
t/apreq/inherit......ok
t/apreq/request......NOK 16# Failed test 16 in t/apreq/request.t at line 39
t/apreq/request......FAILED test 16
       Failed 1/18 tests, 94.44% okay
t/apreq/upload.......dubious
       Test returned status 0 (wstat 13, 0xd)
DIED. FAILED tests 5-20
       Failed 16/20 tests, 20.00% okay
Failed Test       Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
t/apreq/request.t               18    1   5.56%  16
t/apreq/upload.t     0    13    20   32 160.00%  5-20
1 test skipped.
Failed 2/6 test scripts, 66.67% okay. 17/70 subtests failed, 75.71% okay.
[warning] server localhost:8529 shutdown
[  error] error running tests (please examine t/logs/error_log)
make[1]: *** [run_tests] Error 1
make[1]: Leaving directory `/usr/src/libapreq2-2.04-dev/glue/perl'
make: *** [perl_test] Error 2



Any suggestions for getting this to test/build correctly?

One other tidbit...  my Apache is built with alot of stuff stripped out (perhaps
some of which is needed for apreq2's tests?)  Here's my httpd 2.0.52
configure line:

# ./configure --enable-rule=EAPI --enable-proxy --enable-headers
--enable-deflate \
--enable-file-cache --enable-cache --enable-disk-cache --enable-mem-cache \
--enable-ssl --with-ssl=/usr/src/openssl-0.9.7c --disable-cgi
--disable-autoindex \
--disable-asis --disable-cgid --disable-dir --disable-imap --disable-userdir \
--disable-include --disable-proxy-connect --disable-proxy-ftp
--disable-negotiation \
--prefix=/var/httpd

Will post the full output of 'make test' if needed.

many thanks,
Eric



Re: help with 2.04-dev build (failed tests: t/apreq/request, t/apreq/upload)

Posted by Joe Schaefer <jo...@sunstarsys.com>.
"Eric J. Hansen" <eh...@worldmachine.com> writes:

[...]

> docs/Upload.....ok 7/0# Looks like your test died just after 7.              
> docs/Upload.....dubious                                                      
>         Test returned status 255 (wstat 65280, 0xff00)
>         after all the subtests completed successfully

Check for an old mp2/apreq2 installation still lying
around. If that's not it, I'm stumped- sorry.

-- 
Joe Schaefer


RE: help with 2.04-dev build (failed tests: t/apreq/request, t/apreq/upload)

Posted by "Eric J. Hansen" <eh...@worldmachine.com>.
Ok, ran doc_test as both root and non-root, and it failed with
"Test returned status 255 (wstat 65280, 0xff00)" (see below.)

-Eric



> That one is fatal- line 137 is here:
> 
>             unless $upload->info->{"Content-Type"} eq $upload->type;
> 
> You should run the doc tests to see if this is a perl-glue bug:
> 
>   % cd glue/perl
>   % make doc_test
> 
> The docs/Upload tests will retest $upload->info outside httpd/mp2.


/usr/local/bin/perl "-Mblib" "-MTest::Harness" "-e" "runtests(@ARGV)" docs/Cookie.t docs/Error.t docs/Request.t
docs/Table.t docs/Upload.t
docs/Cookie.....ok                                                           
docs/Error......ok                                                           
docs/Request....ok                                                           
docs/Table......ok                                                           
docs/Upload.....ok 7/0# Looks like your test died just after 7.              
docs/Upload.....dubious                                                      
        Test returned status 255 (wstat 65280, 0xff00)
        after all the subtests completed successfully
Failed Test   Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
docs/Upload.t  255 65280     7    0   0.00%  ??
Failed 1/5 test scripts, 80.00% okay. 0/138 subtests failed, 100.00% okay.
make: *** [doc_test] Error 2



Re: help with 2.04-dev build (failed tests: t/apreq/request, t/apreq/upload)

Posted by Joe Schaefer <jo...@sunstarsys.com>.
"Eric J. Hansen" <eh...@worldmachine.com> writes:

[...]

> [Wed Oct 13 07:25:47 2004] [error] [client 127.0.0.1] Not a HASH
> reference at
> /usr/src/libapreq2-2.04-dev/glue/perl/t/response/TestApReq/request.pm 
> line 137.\n 

That one is fatal- line 137 is here:

            unless $upload->info->{"Content-Type"} eq $upload->type;

You should run the doc tests to see if this is a perl-glue bug:

  % cd glue/perl
  % make doc_test

The docs/Upload tests will retest $upload->info outside httpd/mp2.

> Would it matter that I've got Apache built with the following DISABLED?
> --disable-cgi
> --disable-cgid

No- it looks like the cgi tests were skipped for you.

> --disable-asis
> --disable-dir
> --disable-include

No, these shouldn't matter either.


-- 
Joe Schaefer


RE: help with 2.04-dev build (failed tests: t/apreq/request, t/apreq/upload)

Posted by "Eric J. Hansen" <eh...@worldmachine.com>.
Ok, tried both suggestions, but no luck :(  Recompiling and re-testing as
non-root didn't help.  Here are the '[error]' lines from the logfile
(for brevity, I'm not including the debug/info lines)...  unfortunately,
nothing jumps out as meaningful:

[Wed Oct 13 07:25:46 2004] [error] [client 127.0.0.1] (20014)Error string not specified yet: invalid query string:
test=bad;query=string%%
[Wed Oct 13 07:25:47 2004] [error] [client 127.0.0.1] Not a HASH reference at
/usr/src/libapreq2-2.04-dev/glue/perl/t/response/TestApReq/request.pm line 137.\n
[Wed Oct 13 07:25:47 2004] [error] [client 127.0.0.1] (20014)Error string not specified yet: Uploads are disabled for
this request.

Would it matter that I've got Apache built with the following DISABLED?
--disable-cgi
--disable-asis
--disable-cgid
--disable-dir
--disable-include

thanks
Eric


> -----Original Message-----
> From: news [mailto:news@sea.gmane.org] On Behalf Of Joe Schaefer
> Sent: Wednesday, October 13, 2004 10:48 AM
> To: apreq-dev@httpd.apache.org
> Subject: Re: help with 2.04-dev build (failed tests: 
> t/apreq/request, t/apreq/upload)
> 
> 
> "Eric J. Hansen" <eh...@worldmachine.com> writes:
> 
> [...]
> 
> > Any suggestions for getting this to test/build correctly?
> 
> Take a look at the logfile in glue/perl/t/logs/error_log,
> there may be a hint in there.  Otherwise try building apreq 
> again as a non-root user.
> 
> -- 
> Joe Schaefer
> 
> 
> 


Re: help with 2.04-dev build (failed tests: t/apreq/request, t/apreq/upload)

Posted by Joe Schaefer <jo...@sunstarsys.com>.
"Eric J. Hansen" <eh...@worldmachine.com> writes:

[...]

> Any suggestions for getting this to test/build correctly?

Take a look at the logfile in glue/perl/t/logs/error_log,
there may be a hint in there.  Otherwise try building apreq
again as a non-root user.

-- 
Joe Schaefer