RE: [mp2.0] make test failure in mod_perl 1.99_08

2003-04-03 Thread Hensley, Richard
Title: RE: [mp2.0] make test failure in mod_perl 1.99_08





I was able to make my tests work, I had to do the following:


I had to put the user that built mod_perl in the httpd.conf file. I also had to declare TestHooks::init and TestHooks::trans in the httpd.conf using the PerlModule directive.

Here are the diffs to httpd.conf that I used:


51,52c51,52
 User nobody
 Group root
---
 User build
 Group build
554c554,555
 PerlModule TestHooks::init
---
 PerlModule TestHooks::trans
 PerlModule TestHooks::init


Richard
-Original Message-
From: Hensley, Richard [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 03, 2003 8:57 AM
To: '[EMAIL PROTECTED]'
Subject: [mp2.0] make test failure in mod_perl 1.99_08



1. Problem Description: 
 make test is failing badly. I get the following from the t/logs/error_log 
[Wed Apr 02 16:58:51 2003] [error] [client 127.0.0.1] Can't locate TestHooks/ini 
t/first.pm in @INC (@INC contains: /home/rhensle/mod_perl-1.99_08/t /home/rhensl 
e/mod_perl-1.99_08/blib/lib/Apache2 /home/rhensle/mod_perl-1.99_08/Apache-Test/l 
ib /home/rhensle/mod_perl-1.99_08/lib /home/rhensle/mod_perl-1.99_08/blib/lib /h 
ome/rhensle/mod_perl-1.99_08/blib/arch /home/rhensle/mod_perl-1.99_08/t/response 
/home/rhensle/mod_perl-1.99_08/t/protocol /home/rhensle/mod_perl-1.99_08/t/hook 
s /home/rhensle/mod_perl-1.99_08/t/filter /home/rhensle/mod_perl-1.99_08/t/htdoc 
s/testdirective/main /home/rhensle/mod_perl-1.99_08/t/htdocs/testdirective/perlm 
odule-vh /usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1 /usr/lib/perl5/sit 
e_perl/5.6.1/i386-linux /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl/ 
5.6.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.6.1/i386-linux /usr/ 
lib/perl5/vendor_perl/5.6.1 /usr/lib/perl5/vendor_perl) at (eval 27) line 3. 
I tried to apply the patch specified here 
http://www.mail-archive.com/[EMAIL PROTECTED]/msg29648.html, but I get the same error. 




2. Used Components and their Configuration: 
*** using /home/rhensle/mod_perl-1.99_08/t/../lib/Apache/BuildConfig.pm 
*** Makefile.PL options: 
 MP_AP_PREFIX = /usr/local/apache2 
 MP_GENERATE_XS = 1 
 MP_LIBNAME = mod_perl 
 MP_USE_DSO = 1 
 MP_USE_STATIC = 1 



*** /usr/local/apache2/bin/httpd -V 
Server version: Apache/2.0.44-dev 
Server built: Jan 15 2003 22:21:29 
Server's Module Magic Number: 20020903:0 
Architecture: 32-bit 
Server compiled with 
-D APACHE_MPM_DIR=server/mpm/prefork 
-D APR_HAS_SENDFILE 
-D APR_HAS_MMAP 
-D APR_HAVE_IPV6 
-D APR_USE_SYSVSEM_SERIALIZE 
-D APR_USE_PTHREAD_SERIALIZE 
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT 
-D APR_HAS_OTHER_CHILD 
-D AP_HAVE_RELIABLE_PIPED_LOGS 
-D HTTPD_ROOT=/usr/local/apache2 
-D SUEXEC_BIN=/usr/local/apache2/bin/suexec 
-D DEFAULT_PIDLOG=logs/httpd.pid 
-D DEFAULT_SCOREBOARD=logs/apache_runtime_status 
-D DEFAULT_LOCKFILE=logs/accept.lock 
-D DEFAULT_ERRORLOG=logs/error_log 
-D AP_TYPES_CONFIG_FILE=conf/mime.types 
-D SERVER_CONFIG_FILE=conf/httpd.conf 



*** /usr/bin/perl -V 
Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration: 
 Platform: 
 osname=linux, osvers=2.4.17-0.13smp, archname=i386-linux 
 uname='linux daffy.perf.redhat.com 2.4.17-0.13smp #1 smp fri feb 1 10:30:48 
est 2002 i686 unknown ' 
 config_args='-des -Doptimize=-O2 -march=i386 -mcpu=i686 -Dcc=gcc -Dcf_by=Red 
Hat, Inc. -Dcccdlflags=-fPIC -Dinstallprefix=/usr -Dprefix=/usr -Darchname=i386 
-linux -Dvendorprefix=/usr -Dsiteprefix=/usr -Uusethreads -Uuseithreads -Uuselar 
gefiles -Dd_dosuid -Dd_semctl_semun -Di_db -Di_ndbm -Di_gdbm -Di_shadow -Di_sysl 
og -Dman3ext=3pm' 
 hint=recommended, useposix=true, d_sigaction=define 
 usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=unde 
f 
 useperlio=undef d_sfio=undef uselargefiles=undef usesocks=undef 
 use64bitint=undef use64bitall=undef uselongdouble=undef 
 Compiler: 
 cc='gcc', ccflags ='-fno-strict-aliasing -I/usr/local/include', 
 optimize='-O2 -march=i386 -mcpu=i686', 
 cppflags='-fno-strict-aliasing -I/usr/local/include' 
 ccversion='', gccversion='2.96 2731 (Red Hat Linux 7.2 2.96-109)', gccos 
andvers='' 
 intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 
 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 
 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize 
=4 
 alignbytes=4, usemymalloc=n, prototype=define 
 Linker and Libraries: 
 ld='gcc', ldflags =' -L/usr/local/lib' 
 libpth=/usr/local/lib /lib /usr/lib 
 libs=-lnsl -ldl -lm -lc -lcrypt -lutil 
 perllibs=-lnsl -ldl -lm -lc -lcrypt -lutil 
 libc=/lib/libc-2.2.5.so, so=so, useshrplib=false, libperl=libperl.a 
 Dynamic Linking: 
 dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic' 
 cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib' 



Characteristics of this binary (from libperl): 
 Compile-time options: 
 Built under linux 
 Compiled at Apr 1 2002 12:23:22 
 %ENV: 
 PERL_LWP_USE_HTTP_10=1 
 @INC: 
 /usr/lib/perl5/5.6.1/i386-linux 
 /usr/lib

Re: [mp2.0] make test failure in mod_perl 1.99_08

2003-04-03 Thread Stas Bekman
Can you give it a try with the latest cvs, without the changes you have 
applied? Thanks.

http://perl.apache.org/download/source.html#2_0_Development_Source_Distribution

__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


RE: [mp2.0] make test failure in mod_perl 1.99_08

2003-04-03 Thread Hensley, Richard
Title: RE: [mp2.0] make test failure in mod_perl 1.99_08





Unfortunately, I can not access cvs from behind the corporate firewall. I was using the contents of mod_perl-2.0-current.tar.gz, which is the best I can do. Sorry.

-Original Message-
From: Stas Bekman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 03, 2003 3:43 PM
To: Hensley, Richard
Cc: '[EMAIL PROTECTED]'
Subject: Re: [mp2.0] make test failure in mod_perl 1.99_08



Can you give it a try with the latest cvs, without the changes you have 
applied? Thanks.


http://perl.apache.org/download/source.html#2_0_Development_Source_Distribution


__
Stas Bekman JAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com





Re: [mp2.0] make test failure in mod_perl 1.99_08

2003-04-03 Thread Stas Bekman
Hensley, Richard wrote:
Unfortunately, I can not access cvs from behind the corporate firewall. 
I was using the contents of mod_perl-2.0-current.tar.gz, which is the 
best I can do. Sorry.
You can get the latest cvs snapshots here:
http://cvs.apache.org/snapshots/modperl-2.0/
I'll update the doc to include this URL.
__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Re: [mp2.0] make test failure in mod_perl 1.99_08

2003-04-03 Thread Stas Bekman
Stas Bekman wrote:
Hensley, Richard wrote:

Unfortunately, I can not access cvs from behind the corporate 
firewall. I was using the contents of mod_perl-2.0-current.tar.gz, 
which is the best I can do. Sorry.


You can get the latest cvs snapshots here:
http://cvs.apache.org/snapshots/modperl-2.0/
You will also need to apply this patch after you download the snapshot, unless 
you pick the snapshot 5 hours from now, which will already include it.

Thanks to Geoff for the heads up!

--- Apache-Test/lib/Apache/TestConfig.pm27 Mar 2003 07:57:06 - 
 1.148
+++ Apache-Test/lib/Apache/TestConfig.pm4 Apr 2003 00:27:47 -
@@ -113,7 +113,9 @@
 sub server { shift-{server} }

 sub modperl_2_inc_fixup {
-(eval { require mod_perl }  $mod_perl::VERSION = 1.99)
+
+(eval { require mod_perl }  $mod_perl::VERSION = 1.99 
+ eval { require Apache::Build }  !Apache::Build::IS_MOD_PERL_BUILD())
 ? use Apache2;\n
 : '';
 }
__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Re: [mp2.0] make test failure in mod_perl 1.99_08

2003-04-03 Thread Stas Bekman
Hensley, Richard wrote:
I tried it with the lastest snapshot, and the patch below. I still get 
the following in the error_log

[Thu Apr 03 16:49:00 2003] [error] failed to resolve handler 
`TestHooks::trans'
[Thu Apr 03 16:49:00 2003] [error] [client 127.0.0.1] Can't locate 
TestHooks/trans.pm in @INC (@INC contains: /home/rhensle/modperl-2.0/t 
/usr/lib/perl5/site_pe
rl/5.6.1/i386-linux/Apache2 /home/rhensle/modperl-2.0/Apache-Test/lib 
/home/rhen
sle/modperl-2.0/lib /home/rhensle/modperl-2.0/blib/lib 
/home/rhensle/modperl-2.0
/blib/arch /home/rhensle/modperl-2.0/t/response 
/home/rhensle/modperl-2.0/t/prot
ocol /home/rhensle/modperl-2.0/t/preconnection 
/home/rhensle/modperl-2.0/t/hooks
 /home/rhensle/modperl-2.0/t/filter 
/home/rhensle/modperl-2.0/t/htdocs/testdirec
tive/main /home/rhensle/modperl-2.0/t/htdocs/testdirective/perlmodule-vh 
/usr/li
b/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1 
/usr/lib/perl5/site_perl/5.6.1/i38

This was the second problem I encountered after I fixed the first.pm 
problem. I fixed
this by adding a PerlModule TestHooks::trans to the httpd.conf in my 
original patches
I sent.
/home/rhensle/modperl-2.0/t/hooks is in @INC, any idea why it can't find 
TestHooks/trans.pm. What are the file perms for 
/home/rhensle/modperl-2.0/t/hooks/TestHooks/trans.pm?

I don't seem to be able to reproduce the problem. I've tried using the same 
perl version as yours, with and without root, but in vain; It works.

Do you get the error during server startup or when the actual tests are run?

Can you remove the 'PerlModule TestHooks::trans' that you have added, rebuild 
mod_perl with MP_TRACE=1 (perl Makefile.PL MP_TRACE=1 ...) and now run:

rm t/logs/error_log
MOD_PERL_TRACE=h t/TEST -start
(run 'env MOD_PERL_TRACE=h t/TEST -start' if using csh)

do you get the failure? Post the output of the startup and the error_log file.

If you didn't get the failure so far, next run:

t/TEST -run hooks/trans

and post only the error_log file.

Since the trace is going to be pretty long, send it to me and not to the list.

__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Re: [mp2.0] make test failure in mod_perl 1.99_08

2003-04-03 Thread Stas Bekman
Hensley, Richard wrote:
As an aside, one of the interesting issues that I ran across when 
running make test was the following:

/usr/local/apache2/bin/httpd  -d /home/rhensle/modperl-2.0/t -f 
/home/rhensle/mo
dperl-2.0/t/conf/httpd.conf -DAPACHE2
using Apache/2.0.44-dev (prefork MPM)

waiting for server to start: .No -M allowed while running setuid.
Most likely coming from t/conf/httpd.conf having:

  PerlSwitches -Mlib=/home/stas/apache.org/mp-filters/t

does the problem disappear if you replace it with:

  PerlSwitches -I/home/stas/apache.org/mp-filters/t

Why is your perl has setuid bits set?

perl_parse: Address family not supported by protocol
most likely an error in apr_parse_addr_port() but could be due to earlier 
problems.

server has died with status 1 (please examine t/logs/error_log)
what's your t/logs/error_log says?

make: *** [run_tests] Error 143

I think this occurs because my apache2 is located in /usr/local/apache2 
and installed by root. The user that I built mod_perl with is not root, 
therefore it sqawks. I overcame this by building mod_perl as root. I also

had to run the tests as root, but I think that some of the tests will 
eventually fail in this mode.
Tests should run just fine with root. Did you have any problems?

__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com