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 Carl Brewer <ca...@bl.echidna.id.au> on 2003/07/17 11:10:51 UTC

perl make errors

I'm building on NetBSD 1.6.1, with perl 5.8.0 and a very recent
CVS pull of mp2 (2 days old)

a CVS up from today for httpd-apreq-2 does the following :

make perl_test
cd glue/perl; make test
/usr/bin/perl -Iblib/arch -Iblib/lib  t/TEST -clean
APACHE_USER= APACHE_GROUP= APACHE_PORT= APACHE= APXS=  /usr/bin/perl 
-Iblib/arch -Iblib/lib  t/TEST -verbose=0
*** root mode: changing the fs ownership to 'nobody' (32767:39)
/usr/local/apache2/bin/httpd  -d /data/src/httpd-apreq-2/glue/perl/t -f 
/data/src/httpd-apreq-2/glue/perl/t/conf/httpd.conf -DAPACHE2
using Apache/2.0.47 (prefork MPM)

waiting for server to start: ..
waiting for server to start: ok (waited 1 secs)
server localhost:8529 started
apreq/big_input....NOK 1# Failed test 1 in apreq/big_input.t at line 40
apreq/big_input....NOK 2# Failed test 2 in apreq/big_input.t at line 40 
fail #2
apreq/big_input....NOK 3# Failed test 3 in apreq/big_input.t at line 40 
fail #3
apreq/big_input....NOK 4# Failed test 4 in apreq/big_input.t at line 40 
fail #4
apreq/big_input....NOK 5# Failed test 5 in apreq/big_input.t at line 40 
fail #5
apreq/big_input....NOK 6# Failed test 6 in apreq/big_input.t at line 40 
fail #6
apreq/big_input....NOK 7# Failed test 7 in apreq/big_input.t at line 40 
fail #7
apreq/big_input....NOK 8# Failed test 8 in apreq/big_input.t at line 40 
fail #8
apreq/big_input....NOK 9# Failed test 9 in apreq/big_input.t at line 40 
fail #9
apreq/big_input....NOK 10# Failed test 10 in apreq/big_input.t at line 63
apreq/big_input....NOK 11# Failed test 11 in apreq/big_input.t at line 
63 fail #2
apreq/big_input....NOK 12# Failed test 12 in apreq/big_input.t at line 
63 fail #3
apreq/big_input....NOK 13# Failed test 13 in apreq/big_input.t at line 
63 fail #4
apreq/big_input....NOK 14# Failed test 14 in apreq/big_input.t at line 
63 fail #5
apreq/big_input....NOK 15# Failed test 15 in apreq/big_input.t at line 
63 fail #6
apreq/big_input....NOK 16# Failed test 16 in apreq/big_input.t at line 
63 fail #7
apreq/big_input....NOK 17# Failed test 17 in apreq/big_input.t at line 
63 fail #8
apreq/big_input....NOK 18# Failed test 18 in apreq/big_input.t at line 
63 fail #9
apreq/big_input....NOK 19# Failed test 19 in apreq/big_input.t at line 
63 fail #10
apreq/big_input....NOK 20# Failed test 20 in apreq/big_input.t at line 
63 fail #11
apreq/big_input....NOK 21# Failed test 21 in apreq/big_input.t at line 
63 fail #12
apreq/big_input....FAILED tests 1-21
         Failed 21/21 tests, 0.00% okay
apreq/cookie.......NOK 1# Failed test 1 in apreq/cookie.t at line 19
apreq/cookie.......NOK 2# Failed test 2 in apreq/cookie.t at line 28
apreq/cookie.......NOK 3# Failed test 3 in apreq/cookie.t at line 38
apreq/cookie.......NOK 4# Failed test 4 in apreq/cookie.t at line 50
apreq/cookie.......NOK 5# Failed test 5 in apreq/cookie.t at line 59
apreq/cookie.......FAILED tests 1-5
         Failed 5/5 tests, 0.00% okay
apreq/inherit......NOK 1# Failed test 1 in apreq/inherit.t at line 12
apreq/inherit......NOK 2# Failed test 2 in apreq/inherit.t at line 13
apreq/inherit......NOK 3# Failed test 3 in apreq/inherit.t at line 14
apreq/inherit......NOK 4# Failed test 4 in apreq/inherit.t at line 15
apreq/inherit......FAILED tests 1-4
         Failed 4/4 tests, 0.00% okay
apreq/request......NOK 1# Failed test 1 in apreq/request.t at line 18
apreq/request......NOK 2# Failed test 2 in apreq/request.t at line 26
apreq/request......FAILED tests 1-2
         Failed 2/2 tests, 0.00% okay
Failed Test       Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
apreq/big_input.t               21   21 100.00%  1-21
apreq/cookie.t                   5    5 100.00%  1-5
apreq/inherit.t                  4    4 100.00%  1-4
apreq/request.t                  2    2 100.00%  1-2
*** server localhost:8529 shutdown
!!! error running tests (please examine t/logs/error_log)
*** Error code 1

Stop.
make: stopped in /data/src/httpd-apreq-2/glue/perl
*** Error code 1

Stop.
make: stopped in /data/src/httpd-apreq-2


The C stuff compiles just fine but tests badly :

steel1: {36} make test
Making check in src
Making check in env
Making check in t
make  testall
`testall' is up to date.
t/testall -v
All APREQ Tests:
     Cookie:                   ....
     Param:                    ..
     Parsers:                  ..

8 tests run:  8 passed, 0 failed, 0 not implemented.

cd env; make test
perl t/TEST
==> inheriting config file: /usr/local/apache2/conf/httpd.conf
==> inheriting config file: /usr/local/apache2/conf/ssl.conf
==> Found: php4_module => mod_php4.c
==> LoadModule php4_module mod_php4.c
==> Found: perl_module => mod_perl.c
==> LoadModule perl_module mod_perl.c
==> Found: apreq_module => mod_apreq.c
==> LoadModule apreq_module mod_apreq.c
==> generating ../c-modules/apache_httpd_test.h
==> WRITING 
/data/src/httpd-apreq-2/env/c-modules/apreq_access_test/Makefile for 
mod_apreq_access_test
==> WRITING 
/data/src/httpd-apreq-2/env/c-modules/apreq_request_test/Makefile for 
mod_apreq_request_test
==> cd /data/src/httpd-apreq-2/env/c-modules && make all
==> WRITING httpd.conf with mod_apreq_access_test, mod_apreq_request_test
==> generating conf/httpd.conf
==> generating conf/apache_test_config.pm
==> saving config data to apache_test_config.pm
*** root mode: changing the fs ownership to 'nobody' (32767:39)
/usr/local/apache2/bin/httpd  -d /data/src/httpd-apreq-2/env/t -f 
/data/src/httpd-apreq-2/env/t/conf/httpd.conf -DAPACHE2
using Apache/2.0.47 (prefork MPM)

waiting for server to start: ..
waiting for server to start: ok (waited 1 secs)
server localhost:8529 started
request....NOK 1# Failed test 1 in request.t at line 12
request....NOK 2# Failed test 2 in request.t at line 15
request....NOK 3# Failed test 3 in request.t at line 12 fail #2
request....NOK 4# Failed test 4 in request.t at line 15 fail #2
request....NOK 5# Failed test 5 in request.t at line 20
request....NOK 6# Failed test 6 in request.t at line 25
request....FAILED tests 1-6
         Failed 6/6 tests, 0.00% okay
Failed Test Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
request.t                  6    6 100.00%  1-6
*** server localhost:8529 shutdown
!!! error running tests (please examine t/logs/error_log)
*** Error code 1

Stop.
make: stopped in /data/src/httpd-apreq-2/env
*** Error code 1

Stop.
make: stopped in /data/src/httpd-apreq-2
Here's the two error logs :

steel1: {40} more httpd-apreq-2/env/t/logs/error_log
[Thu Jul 17 19:07:18 2003] [info] Init: Initializing OpenSSL library
[Thu Jul 17 19:07:18 2003] [info] Init: Seeding PRNG with 0 bytes of entropy
[Thu Jul 17 19:07:18 2003] [info] Init: Generating temporary RSA private 
keys (5
12/1024 bits)
[Thu Jul 17 19:07:19 2003] [info] Init: Generating temporary DH 
parameters (512/
1024 bits)
[Thu Jul 17 19:07:19 2003] [warn] Init: Session Cache is not configured 
[hint: S
SLSessionCache]
[Thu Jul 17 19:07:19 2003] [info] Init: Initializing (virtual) servers 
for SSL
[Thu Jul 17 19:07:19 2003] [info] Server: Apache/2.0.47, Interface: 
mod_ssl/2.0.
47, Library: OpenSSL/0.9.7b
[Thu Jul 17 19:07:19 2003] [info] Init: Initializing OpenSSL library
[Thu Jul 17 19:07:19 2003] [info] Init: Seeding PRNG with 0 bytes of entropy
[Thu Jul 17 19:07:19 2003] [info] Init: Generating temporary RSA private 
keys (5
12/1024 bits)
[Thu Jul 17 19:07:20 2003] [info] Init: Generating temporary DH 
parameters (512/
1024 bits)
[Thu Jul 17 19:07:20 2003] [info] Init: Initializing (virtual) servers 
for SSL
[Thu Jul 17 19:07:20 2003] [info] Server: Apache/2.0.47, Interface: 
mod_ssl/2.0.
47, Library: OpenSSL/0.9.7b
[Thu Jul 17 19:07:20 2003] [notice] Apache/2.0.47 (Unix) 
mod_perl/1.99_10-dev Pe
rl/v5.8.0 PHP/4.3.2 mod_ssl/2.0.47 OpenSSL/0.9.7b configured -- resuming 
normal
operations
[Thu Jul 17 19:07:20 2003] [info] Server built: Jul 10 2003 10:10:41
[Thu Jul 17 19:07:20 2003] [debug] prefork.c(1037): AcceptMutex: sysvsem 
(defaul
t: sysvsem)
[Thu Jul 17 19:07:21 2003] [error] server reached MaxClients setting, 
consider r
aising the MaxClients setting
[Thu Jul 17 19:07:22 2003] [info] removed PID file 
/data/src/httpd-apreq-2/env/t
/logs/httpd.pid (pid=13088)
[Thu Jul 17 19:07:22 2003] [notice] caught SIGTERM, shutting down

steel1: {47} more glue/perl/t/logs/error_log
[Thu Jul 17 19:00:41 2003] [info] Init: Initializing OpenSSL library
[Thu Jul 17 19:00:41 2003] [info] Init: Seeding PRNG with 0 bytes of entropy
[Thu Jul 17 19:00:41 2003] [info] Init: Generating temporary RSA private 
keys (5
12/1024 bits)
[Thu Jul 17 19:00:41 2003] [info] Init: Generating temporary DH 
parameters (512/
1024 bits)
[Thu Jul 17 19:00:41 2003] [warn] Init: Session Cache is not configured 
[hint: S
SLSessionCache]
[Thu Jul 17 19:00:41 2003] [info] Init: Initializing (virtual) servers 
for SSL
[Thu Jul 17 19:00:41 2003] [info] Server: Apache/2.0.47, Interface: 
mod_ssl/2.0.
47, Library: OpenSSL/0.9.7b
[Thu Jul 17 19:00:41 2003] [info] Init: Initializing OpenSSL library
[Thu Jul 17 19:00:41 2003] [info] Init: Seeding PRNG with 0 bytes of entropy
[Thu Jul 17 19:00:41 2003] [info] Init: Generating temporary RSA private 
keys (5
12/1024 bits)
[Thu Jul 17 19:00:42 2003] [info] Init: Generating temporary DH 
parameters (512/
1024 bits)
[Thu Jul 17 19:00:42 2003] [info] Init: Initializing (virtual) servers 
for SSL
[Thu Jul 17 19:00:42 2003] [info] Server: Apache/2.0.47, Interface: 
mod_ssl/2.0.
47, Library: OpenSSL/0.9.7b
[Thu Jul 17 19:00:42 2003] [notice] Apache/2.0.47 (Unix) 
mod_perl/1.99_10-dev Pe
rl/v5.8.0 PHP/4.3.2 mod_ssl/2.0.47 OpenSSL/0.9.7b configured -- resuming 
normal
operations
[Thu Jul 17 19:00:42 2003] [info] Server built: Jul 10 2003 10:10:41
[Thu Jul 17 19:00:42 2003] [debug] prefork.c(1037): AcceptMutex: sysvsem 
(defaul
t: sysvsem)
[Thu Jul 17 19:00:43 2003] [error] server reached MaxClients setting, 
consider r
aising the MaxClients setting
[Thu Jul 17 19:00:49 2003] [info] removed PID file 
/data/src/httpd-apreq-2/glue/
perl/t/logs/httpd.pid (pid=12927)
[Thu Jul 17 19:00:49 2003] [notice] caught SIGTERM, shutting down




What other debugging info do you need?

Carl





Re: perl make errors

Posted by Joe Schaefer <jo...@sunstarsys.com>.
Carl Brewer <ca...@bl.echidna.id.au> writes:

[...]

> cd env; make test
> perl t/TEST
> /usr/local/apache2/bin/httpd  -d /data/src/httpd-apreq-2/env/t -f
> /data/src/httpd-apreq-2/env/t/conf/httpd.conf -DAPACHE2

Hmm, I've no idea what the problem might be.  You might
try editing httpd.conf and manually playing around with 
the test server like this:

  % cd env
  % emacs t/conf/httpd.conf
  (comment out LoadModule lines?)
  % httpd -d `pwd`/t -f conf/httpd.conf -DAPACHE2
  % GET http://localhost:8529/
  ...
  welcome to localhost.localdomain:8529
  % GET http://localhost:8529/apreq_request_test?foo=bar
  ARGS:
          foo => bar
  % 
If you find a httpd.conf that works, shut down the manual 
test server and run the tests like so:

  % t/TEST -v

Otherwise, may be you can figure out which commit 
date starts breaking the env/ tests:

  % cvs co -D "10 Jul 2003 00:00" httpd-apreq-2

Maybe we can trace through the commits on the critical 
date and figure out what's going on.

-- 
Joe Schaefer


Re: perl make errors

Posted by Carl Brewer <ca...@bl.echidna.id.au>.

Joe Schaefer wrote:

> Carl Brewer <ca...@bl.echidna.id.au> writes:
> 
> [...]
> 
> 
>>The C stuff compiles just fine but tests badly :
> 
> 
> It looks to me like the problem is with mod_apreq.
> (It may not be loading into the server.)
> 
> Do you have an "old" installed mod_apreq lying around?

I did have, but have now pulled that from the httpd.conf file,
still seeing the same errors.

> What does your env/t/conf/httpd.conf look like (in particular,
> the LoadModule & IfModule Sections)?  Have you tried 
> compiling & testing cvs as a non-root user?

This time I did it all as me (normal user acct).


steel1: {254} cat env/t/conf/httpd.conf
# WARNING: this file is generated, do not edit
# 01: 
/usr/local/perl-5.8.0/lib/site_perl/5.8.0/i386-netbsd/Apache/TestConfig.pm:737
# 02: 
/usr/local/perl-5.8.0/lib/site_perl/5.8.0/i386-netbsd/Apache/TestConfig.pm:754
# 03: 
/usr/local/perl-5.8.0/lib/site_perl/5.8.0/i386-netbsd/Apache/TestConfig.pm:1260
# 04: 
/usr/local/perl-5.8.0/lib/site_perl/5.8.0/i386-netbsd/Apache/TestRun.pm:408
# 05: t/TEST:38
# 06: 
/usr/local/perl-5.8.0/lib/site_perl/5.8.0/i386-netbsd/Apache/TestRun.pm:586
# 07: 
/usr/local/perl-5.8.0/lib/site_perl/5.8.0/i386-netbsd/Apache/TestRun.pm:586
# 08: t/TEST:30

LoadModule php4_module "/usr/local/apache2/modules/libphp4.so"
LoadModule perl_module "/usr/local/apache2/modules/mod_perl.so"
#LoadModule apreq_module "/usr/local/apache2/modules/mod_apreq.so"
<IfModule !mod_apreq.c>
     LoadModule apreq_module 
"/data/src/httpd-apreq-2/env/.libs/mod_apreq.so"
</IfModule>

LoadModule apreq_access_test_module 
/data/src/httpd-apreq-2/env/c-modules/apreq_access_test/.libs/mod_apreq_access_test.so
LoadModule apreq_request_test_module 
/data/src/httpd-apreq-2/env/c-modules/apreq_request_test/.libs/mod_apreq_request_test.so

User    carl
Group    users
ServerName localhost:8529
Listen     8529

ServerRoot   "/data/src/httpd-apreq-2/env/t"
DocumentRoot "/data/src/httpd-apreq-2/env/t/htdocs"

PidFile     /data/src/httpd-apreq-2/env/t/logs/httpd.pid
ErrorLog    /data/src/httpd-apreq-2/env/t/logs/error_log
LogLevel    debug

<IfModule mod_log_config.c>
     TransferLog /data/src/httpd-apreq-2/env/t/logs/access_log
</IfModule>

ServerAdmin carl@bl.echidna.id.au

#needed for http/1.1 testing
KeepAlive       On

HostnameLookups Off

<Directory />
     Options FollowSymLinks
     AllowOverride None
</Directory>

<IfModule worker.c>
     StartServers         1
     MaxClients           1
     MinSpareThreads      1
     MaxSpareThreads      1
     ThreadsPerChild      1
     MaxRequestsPerChild  0
</IfModule>

<IfModule perchild.c>
     NumServers           1
     StartThreads         1
     MinSpareThreads      1
     MaxSpareThreads      1
     MaxThreadsPerChild   1
     MaxRequestsPerChild  0
</IfModule>

<IfModule prefork.c>
     StartServers         1
     MaxClients           1
     MaxRequestsPerChild  0
</IfModule>

<IfModule mpm_winnt.c>
     ThreadsPerChild      20
     MaxRequestsPerChild  0
</IfModule>

<Location /server-info>
     SetHandler server-info
</Location>

<Location /server-status>
     SetHandler server-status
</Location>

Alias /getfiles-binary-perl /usr/local/perl-5.8.0/bin/perl
Alias /getfiles-perl-pod /usr/local/perl-5.8.0/lib/5.8.0/pod
Alias /getfiles-binary-httpd /usr/local/apache2/bin/httpd

TypesConfig "/usr/local/apache2/conf/mime.types"
<Location /apreq_access_test>
     TestAccess test
     SetHandler apreq_request_test
</Location>
<Location /apreq_request_test>
     SetHandler apreq_request_test
</Location>



I just ran this as me rather than root, with a CVS pull from
10 minutes ago.  I tried a make test on the C stuff (not bothering
with perl until this works)

To make it I did this :

make clean
./buildconf
./configure --with-apache2-apxs=/usr/local/apache2/bin/apxs
make
make test



Here's the error_log :

cat env/t/logs/error_log
[Fri Jul 18 17:49:30 2003] [info] Init: Initializing OpenSSL library
[Fri Jul 18 17:49:30 2003] [info] Init: Seeding PRNG with 0 bytes of entropy
[Fri Jul 18 17:49:30 2003] [info] Init: Generating temporary RSA private 
keys (512/1024 bits)
[Fri Jul 18 17:49:31 2003] [info] Init: Generating temporary DH 
parameters (512/1024 bits)
[Fri Jul 18 17:49:31 2003] [warn] Init: Session Cache is not configured 
[hint: SSLSessionCache]
[Fri Jul 18 17:49:31 2003] [info] Init: Initializing (virtual) servers 
for SSL
[Fri Jul 18 17:49:31 2003] [info] Server: Apache/2.0.47, Interface: 
mod_ssl/2.0.47, Library: OpenSSL/0.9.7b
[Fri Jul 18 17:49:31 2003] [info] Init: Initializing OpenSSL library
[Fri Jul 18 17:49:31 2003] [info] Init: Seeding PRNG with 0 bytes of entropy
[Fri Jul 18 17:49:31 2003] [info] Init: Generating temporary RSA private 
keys (512/1024 bits)
[Fri Jul 18 17:49:31 2003] [info] Init: Generating temporary DH 
parameters (512/1024 bits)
[Fri Jul 18 17:49:31 2003] [info] Init: Initializing (virtual) servers 
for SSL
[Fri Jul 18 17:49:31 2003] [info] Server: Apache/2.0.47, Interface: 
mod_ssl/2.0.47, Library: OpenSSL/0.9.7b
[Fri Jul 18 17:49:31 2003] [notice] Apache/2.0.47 (Unix) 
mod_perl/1.99_10-dev Perl/v5.8.0 PHP/4.3.2 mod_ssl/2.0.47 OpenSSL/0.9.7b 
configured -- resuming normal operations
[Fri Jul 18 17:49:31 2003] [info] Server built: Jul 10 2003 10:10:41
[Fri Jul 18 17:49:31 2003] [debug] prefork.c(1037): AcceptMutex: sysvsem 
(default: sysvsem)
[Fri Jul 18 17:49:32 2003] [error] server reached MaxClients setting, 
consider raising the MaxClients setting
[Fri Jul 18 17:49:33 2003] [info] removed PID file 
/data/src/httpd-apreq-2/env/t/logs/httpd.pid (pid=17887)
[Fri Jul 18 17:49:33 2003] [notice] caught SIGTERM, shutting down


And here's the make test result :

steel1: {258} make test
Making check in src
Making check in env
Making check in t
make  testall
`testall' is up to date.
t/testall -v
All APREQ Tests:
     Cookie:                   ....
     Param:                    ..
     Parsers:                  ..

8 tests run:  8 passed, 0 failed, 0 not implemented.

cd env; make test
perl t/TEST
/usr/local/apache2/bin/httpd  -d /data/src/httpd-apreq-2/env/t -f 
/data/src/httpd-apreq-2/env/t/conf/httpd.conf -DAPACHE2
using Apache/2.0.47 (prefork MPM)

waiting for server to start: ..
waiting for server to start: ok (waited 1 secs)
server localhost:8529 started
request....NOK 1# Failed test 1 in request.t at line 12
request....NOK 2# Failed test 2 in request.t at line 15
request....NOK 3# Failed test 3 in request.t at line 12 fail #2
request....NOK 4# Failed test 4 in request.t at line 15 fail #2
request....NOK 5# Failed test 5 in request.t at line 20
request....NOK 6# Failed test 6 in request.t at line 25
request....FAILED tests 1-6
         Failed 6/6 tests, 0.00% okay
Failed Test Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
request.t                  6    6 100.00%  1-6
*** server localhost:8529 shutdown
!!! error running tests (please examine t/logs/error_log)
*** Error code 1

Stop.
make: stopped in /data/src/httpd-apreq-2/env
*** Error code 1

Stop.
make: stopped in /data/src/httpd-apreq-2









Any suggestions?
> 



Re: perl make errors

Posted by Joe Schaefer <jo...@sunstarsys.com>.
Carl Brewer <ca...@bl.echidna.id.au> writes:

[...]

> The C stuff compiles just fine but tests badly :

It looks to me like the problem is with mod_apreq.
(It may not be loading into the server.)

Do you have an "old" installed mod_apreq lying around?
What does your env/t/conf/httpd.conf look like (in particular,
the LoadModule & IfModule Sections)?  Have you tried 
compiling & testing cvs as a non-root user?

-- 
Joe Schaefer


Re: perl make errors

Posted by Stas Bekman <st...@stason.org>.
Carl Brewer wrote:
> 
> I'm building on NetBSD 1.6.1, with perl 5.8.0 and a very recent
> CVS pull of mp2 (2 days old)
> 
> a CVS up from today for httpd-apreq-2 does the following :
> 
> make perl_test
> cd glue/perl; make test
> /usr/bin/perl -Iblib/arch -Iblib/lib  t/TEST -clean
> APACHE_USER= APACHE_GROUP= APACHE_PORT= APACHE= APXS=  /usr/bin/perl 
> -Iblib/arch -Iblib/lib  t/TEST -verbose=0
> *** root mode: changing the fs ownership to 'nobody' (32767:39)


what happens if you run it as a normal user (of course extracting the package 
under user's home), not as a root?


-- 


__________________________________________________________________
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