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


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