RE: [mp2] make test fails nearly all tests...

2003-06-13 Thread Tim Howell
No problem.  Today has been crazy, but I should be able to post this
information on Monday morning.

Thanks again.  =)

--TWH

-Original Message-
From: Stas Bekman [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 12, 2003 4:38 PM
To: Tim Howell
Cc: [EMAIL PROTECTED]
Subject: Re: [mp2] make test fails nearly all tests...


Tim Howell wrote:
 Stas (and others)--
 
 Following your suggestion I built/tested as a normal user.  This time 
 only one test fails (one of the CGI tests).  Below is the output from 
 make test.

Great. However if you don't mind to help others, I'd like you to help me
to 
resolve your original problem, it shouldn't be a problem to run tests as
root. 
So if you can answer my questions from the original reply to you, that
will 
help a lot

 Thanks for your help.  I've only been using unix/linux for a few 
 months, but I've learned an enormous amount from lists like this.  I 
 really appreciate it.

We all have been helped while being newbies and try to help others in
the same 
positions we once were. It's a win-win vicious circle ;)

Just in case you don't have the original reply, here is what I wanted to
know 
(that's when you return to run the build and tests as root, not a normal
user, 
which we now know that works):


--

Looks like you encounter permission problems. Since you  have 
/root/mod_perl-1.99_09/t/hooks in the path. I'm pretty sure that if you 
build/test as a normal user and only su to install, everything will work
just 
fine.

We try to provide a workaround for testing with root and what we do is
chown 
the files to the uid/gid the server is configured to run with. This is
because 
the server can't be run as root for security reasons. Can you do:

grep User t/conf/httpd.conf

it tries to pick the 'httpd' or 'nobody' user to run the tests with. If
you 
don't have such user on your machine this may explain the problem you
are having.

Also, I'd like to see the output of 'make test', since it tells me when
it 
chowns the files and to which uid/gid.

__
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] make test fails nearly all tests...

2003-06-12 Thread Tim Howell
Stas (and others)--

Following your suggestion I built/tested as a normal user.  This time
only one test fails (one of the CGI tests).  Below is the output from
make test.

Thanks for your help.  I've only been using unix/linux for a few months,
but I've learned an enormous amount from lists like this.  I really
appreciate it.

--TWH

cd src/modules/perl  make -f Makefile.modperl
make[1]: Entering directory
`/home/timhowel/mod_perl-1.99_09/src/modules/perl'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/home/timhowel/mod_perl-1.99_09/src/modules/perl'
make[1]: Entering directory
`/home/timhowel/mod_perl-1.99_09/Apache-Test'
make[1]: Leaving directory `/home/timhowel/mod_perl-1.99_09/Apache-Test'
make[1]: Entering directory
`/home/timhowel/mod_perl-1.99_09/ModPerl-Registry'
make[1]: Leaving directory
`/home/timhowel/mod_perl-1.99_09/ModPerl-Registry'
make[1]: Entering directory `/home/timhowel/mod_perl-1.99_09/WrapXS'
make[2]: Entering directory `/home/timhowel/mod_perl-1.99_09/WrapXS/APR'
make[3]: Entering directory
`/home/timhowel/mod_perl-1.99_09/WrapXS/APR/Base64'
make[3]: Leaving directory
`/home/timhowel/mod_perl-1.99_09/WrapXS/APR/Base64'
make[3]: Entering directory
`/home/timhowel/mod_perl-1.99_09/WrapXS/APR/Brigade'
make[3]: Leaving directory
`/home/timhowel/mod_perl-1.99_09/WrapXS/APR/Brigade'
make[3]: Entering directory
`/home/timhowel/mod_perl-1.99_09/WrapXS/APR/Bucket'
make[3]: Leaving directory
`/home/timhowel/mod_perl-1.99_09/WrapXS/APR/Bucket'
make[3]: Entering directory
`/home/timhowel/mod_perl-1.99_09/WrapXS/APR/Date'
make[3]: Leaving directory
`/home/timhowel/mod_perl-1.99_09/WrapXS/APR/Date'
make[3]: Entering directory
`/home/timhowel/mod_perl-1.99_09/WrapXS/APR/NetLib'
make[3]: Leaving directory
`/home/timhowel/mod_perl-1.99_09/WrapXS/APR/NetLib'
make[3]: Entering directory
`/home/timhowel/mod_perl-1.99_09/WrapXS/APR/OS'
make[3]: Leaving directory
`/home/timhowel/mod_perl-1.99_09/WrapXS/APR/OS'
make[3]: Entering directory
`/home/timhowel/mod_perl-1.99_09/WrapXS/APR/Pool'
make[3]: Leaving directory
`/home/timhowel/mod_perl-1.99_09/WrapXS/APR/Pool'
make[3]: Entering directory
`/home/timhowel/mod_perl-1.99_09/WrapXS/APR/SockAddr'
make[3]: Leaving directory
`/home/timhowel/mod_perl-1.99_09/WrapXS/APR/SockAddr'
make[3]: Entering directory
`/home/timhowel/mod_perl-1.99_09/WrapXS/APR/Socket'
make[3]: Leaving directory
`/home/timhowel/mod_perl-1.99_09/WrapXS/APR/Socket'
make[3]: Entering directory
`/home/timhowel/mod_perl-1.99_09/WrapXS/APR/String'
make[3]: Leaving directory
`/home/timhowel/mod_perl-1.99_09/WrapXS/APR/String'
make[3]: Entering directory
`/home/timhowel/mod_perl-1.99_09/WrapXS/APR/Table'
make[3]: Leaving directory
`/home/timhowel/mod_perl-1.99_09/WrapXS/APR/Table'
make[3]: Entering directory
`/home/timhowel/mod_perl-1.99_09/WrapXS/APR/ThreadMutex'
make[3]: Leaving directory
`/home/timhowel/mod_perl-1.99_09/WrapXS/APR/ThreadMutex'
make[3]: Entering directory
`/home/timhowel/mod_perl-1.99_09/WrapXS/APR/URI'
make[3]: Leaving directory
`/home/timhowel/mod_perl-1.99_09/WrapXS/APR/URI'
make[3]: Entering directory
`/home/timhowel/mod_perl-1.99_09/WrapXS/APR/UUID'
make[3]: Leaving directory
`/home/timhowel/mod_perl-1.99_09/WrapXS/APR/UUID'
make[3]: Entering directory
`/home/timhowel/mod_perl-1.99_09/WrapXS/APR/Util'
make[3]: Leaving directory
`/home/timhowel/mod_perl-1.99_09/WrapXS/APR/Util'
make[2]: Leaving directory `/home/timhowel/mod_perl-1.99_09/WrapXS/APR'
make[2]: Entering directory
`/home/timhowel/mod_perl-1.99_09/WrapXS/Apache'
make[3]: Entering directory
`/home/timhowel/mod_perl-1.99_09/WrapXS/Apache/Access'
make[3]: Leaving directory
`/home/timhowel/mod_perl-1.99_09/WrapXS/Apache/Access'
make[3]: Entering directory
`/home/timhowel/mod_perl-1.99_09/WrapXS/Apache/CmdParms'
make[3]: Leaving directory
`/home/timhowel/mod_perl-1.99_09/WrapXS/Apache/CmdParms'
make[3]: Entering directory
`/home/timhowel/mod_perl-1.99_09/WrapXS/Apache/Command'
make[3]: Leaving directory
`/home/timhowel/mod_perl-1.99_09/WrapXS/Apache/Command'
make[3]: Entering directory
`/home/timhowel/mod_perl-1.99_09/WrapXS/Apache/Connection'
make[3]: Leaving directory
`/home/timhowel/mod_perl-1.99_09/WrapXS/Apache/Connection'
make[3]: Entering directory
`/home/timhowel/mod_perl-1.99_09/WrapXS/Apache/Directive'
make[3]: Leaving directory
`/home/timhowel/mod_perl-1.99_09/WrapXS/Apache/Directive'
make[3]: Entering directory
`/home/timhowel/mod_perl-1.99_09/WrapXS/Apache/Filter'
make[3]: Leaving directory
`/home/timhowel/mod_perl-1.99_09/WrapXS/Apache/Filter'
make[3]: Entering directory
`/home/timhowel/mod_perl-1.99_09/WrapXS/Apache/FilterRec'
make[3]: Leaving directory
`/home/timhowel/mod_perl-1.99_09/WrapXS/Apache/FilterRec'
make[3]: Entering directory
`/home/timhowel/mod_perl-1.99_09/WrapXS/Apache/HookRun'
make[3]: Leaving directory
`/home/timhowel/mod_perl-1.99_09/WrapXS/Apache/HookRun'
make[3]: Entering directory
`/home/timhowel/mod_perl-1.99_09/WrapXS/Apache/Log'
make[3]: Leaving directory

Re: [mp2] make test fails nearly all tests...

2003-06-12 Thread Stas Bekman
Tim Howell wrote:
I figured this one out: CGI needed to be updated.  =)
Yes, the cvs version already handles this test gracefully.

__
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] make test fails nearly all tests...

2003-06-12 Thread Stas Bekman
Tim Howell wrote:
Stas (and others)--

Following your suggestion I built/tested as a normal user.  This time
only one test fails (one of the CGI tests).  Below is the output from
make test.
Great. However if you don't mind to help others, I'd like you to help me to 
resolve your original problem, it shouldn't be a problem to run tests as root. 
So if you can answer my questions from the original reply to you, that will 
help a lot

Thanks for your help.  I've only been using unix/linux for a few months,
but I've learned an enormous amount from lists like this.  I really
appreciate it.
We all have been helped while being newbies and try to help others in the same 
positions we once were. It's a win-win vicious circle ;)

Just in case you don't have the original reply, here is what I wanted to know 
(that's when you return to run the build and tests as root, not a normal user, 
which we now know that works):

--

Looks like you encounter permission problems. Since you  have 
/root/mod_perl-1.99_09/t/hooks in the path. I'm pretty sure that if you 
build/test as a normal user and only su to install, everything will work just 
fine.

We try to provide a workaround for testing with root and what we do is chown 
the files to the uid/gid the server is configured to run with. This is because 
the server can't be run as root for security reasons. Can you do:

grep User t/conf/httpd.conf

it tries to pick the 'httpd' or 'nobody' user to run the tests with. If you 
don't have such user on your machine this may explain the problem you are having.

Also, I'd like to see the output of 'make test', since it tells me when it 
chowns the files and to which uid/gid.

__
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


[mp2] make test fails nearly all tests...

2003-06-11 Thread Tim Howell
Title: [mp2] make test fails nearly all tests...






I've searched the list archives for relevant postings, and I found a couple of messages with similar problems, but no answers. I think I've included all relevant details. Please let me know if there is something else I should add.

I'm working with a fresh install of RedHat 7.3. Perl is v5.8.0 compiled from source. I built it with support for ithreads. Apache is 2.0.46. To install Apache I did:

tar -xvzf httpd-2.0.46.tar.gz

cd httpd-2.0.46

./configure --prefix=/usr/local/apache2

make

make install


I then tested httpd and it is serving pages correctly.


mod_perl is 1.99_09. I did:


tar -xvzf mod_perl-2.0-current.tar.gz

cd mod_perl-1.99_09

perl Makefile.PL MP_AP_PREFIX=/usr/local/apache2

make

make test


Everything up through make seems to have gone fine.


I was logged in as root for everything.


Below I've pasted the contents of t/REPORT and error_log.


-8-- Start Bug Report 8--

1. Problem Description:


 See above


2. Used Components and their Configuration:


*** using lib/Apache/BuildConfig.pm

*** Makefile.PL options:

 MP_AP_PREFIX = /usr/local/apache2

 MP_COMPAT_1X = 1

 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.46

Server built: Jun 10 2003 11:22:58

Server's Module Magic Number: 20020903:3

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 (IPv4-mapped addresses enabled)

-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/local/bin/perl -V

Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:

 Platform:

 osname=linux, osvers=2.4.18-3smp, archname=i686-linux-thread-multi

 uname='linux uss-nimitz.fefcful.org 2.4.18-3smp #1 smp thu apr 18 07:27:31 edt 2002 i686 unknown '

 config_args=''

 hint=recommended, useposix=true, d_sigaction=define

 usethreads=define use5005threads=undef useithreads=define usemultiplicity=define

 useperlio=define d_sfio=undef uselargefiles=define usesocks=undef

 use64bitint=undef use64bitall=undef uselongdouble=undef

 usemymalloc=n, bincompat5005=undef

 Compiler:

 cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',

 optimize='-O2',

 cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -I/usr/local/include -I/usr/include/gdbm'

 ccversion='', gccversion='2.96 2731 (Red Hat Linux 7.3 2.96-110)', gccosandvers=''

 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=8

 alignbytes=4, prototype=define

 Linker and Libraries:

 ld='cc', ldflags =' -L/usr/local/lib'

 libpth=/usr/local/lib /lib /usr/lib

 libs=-lnsl -lndbm -lgdbm -ldl -lm -lpthread -lc -lcrypt -lutil

 perllibs=-lnsl -ldl -lm -lpthread -lc -lcrypt -lutil

 libc=/lib/libc-2.2.5.so, so=so, useshrplib=false, libperl=libperl.a

 gnulibc_version='2.2.5'

 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: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT

 Built under linux

 Compiled at Jun 10 2003 10:07:11

 %ENV:

 PERL_LWP_USE_HTTP_10=1

 @INC:

 /usr/local/lib/perl5/5.8.0/i686-linux-thread-multi

 /usr/local/lib/perl5/5.8.0

 /usr/local/lib/perl5/site_perl/5.8.0/i686-linux-thread-multi

 /usr/local/lib/perl5/site_perl/5.8.0

 /usr/local/lib/perl5/site_perl

 .



3. This is the core dump trace: (if you get a core dump):


 [CORE TRACE COMES HERE]


This report was generated by t/REPORT on Wed Jun 11 15:52:57 2003 GMT.


-8-- End Bug Report --8--


***Error log

END in modperl_extra.pl, pid=32338

[Tue Jun 10 12:16:19 2003] [notice] Apache/2.0.46 (Unix) mod_perl/1.99_09 Perl/v5.8.0 configured -- resuming normal operations

[Tue Jun 10 12:16:19 2003] [info] Server built: Jun 10 2003 11:22:58

[Tue Jun 10 12:16:19 2003] [debug] prefork.c(1039): AcceptMutex: sysvsem (default: sysvsem)

[Tue Jun 10 12:16:19 2003] [error] failed to resolve handler `TestHooks::trans'

[Tue Jun 10 12:16:19 2003] [error] [client 127.0.0.1] Can't locate TestHooks/trans.pm in @INC (@INC contains

Re: [mp2] make test fails nearly all tests...

2003-06-11 Thread Stas Bekman
Tim Howell wrote:
I've searched the list archives for relevant postings, and I found a 
couple of messages with similar problems, but no answers.  I think I've 
included all relevant details.  Please let me know if there is something 
else I should add.

I'm working with a  fresh install of RedHat 7.3.  Perl is v5.8.0 
compiled from source.  I built it with support for ithreads.  Apache is 
2.0.46.  To install Apache I did:
[...]

Thanks for the detailed report Tim.

[Tue Jun 10 12:16:19 2003] [error] failed to resolve handler 
`TestHooks::trans'
[Tue Jun 10 12:16:19 2003] [error] [client 127.0.0.1] Can't locate 
TestHooks/trans.pm in @INC (@INC contains: Apache-Test/lib 
/root/mod_perl-1.99_09/Apache-Test/lib /root/mod_perl-1.99_09/lib 
/root/mod_perl-1.99_09/blib/lib /root/mod_perl-1.99_09/blib/arch 
/root/mod_perl-1.99_09/t/response /root/mod_perl-1.99_09/t/protocol 
/root/mod_perl-1.99_09/t/preconnection /root/mod_perl-1.99_09/t/hooks 
/root/mod_perl-1.99_09/t/filter /root/mod_perl-1.99_09/t 
/root/mod_perl-1.99_09/t/htdocs/testdirective/perlmodule-vh 
/root/mod_perl-1.99_09/t/htdocs/testdirective/main 
/usr/local/lib/perl5/5.8.0/i686-linux-thread-multi 
/usr/local/lib/perl5/5.8.0 
/usr/local/lib/perl5/site_perl/5.8.0/i686-linux-thread-multi 
/usr/local/lib/perl5/site_perl/5.8.0 /usr/local/lib/perl5/site_perl 
/root/mod_perl-1.99_09/t/ /root/mod_perl-1.99_09/t/lib/perl) at (eval 
51) line 3.
Looks like you encounter permission problems. Since you  have 
/root/mod_perl-1.99_09/t/hooks in the path. I'm pretty sure that if you 
build/test as a normal user and only su to install, everything will work just 
fine.

We try to provide a workaround for testing with root and what we do is chown 
the files to the uid/gid the server is configured to run with. This is because 
the server can't be run as root for security reasons. Can you do:

grep User t/conf/httpd.conf

it tries to pick the 'httpd' or 'nobody' user to run the tests with. If you 
don't have such user on your machine this may explain the problem you are having.

Also, I'd like to see the output of 'make test', since it tells me when it 
chowns the files and to which uid/gid.

__
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