RE: [mp2] the make test problem saga continues...

2002-12-03 Thread Beau E. Cox
THIS THREAD IS OFFICIALLY RETIRED

Yes, everthing works (although I still miss being King).

Thank you for your time and effort. I hope others will
benefit from what we went through.

Aloha => Beau.

-Original Message-
From: Stas Bekman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 5:33 AM
To: Beau E. Cox
Cc: Modperl
Subject: Re: [mp2] the make test problem saga continues...



>C. same Apache/Const.pm not found:
>
>   Can't locate Apache/Const.pm in @INC (@INC contains:
[...]
>D. same tests failed:
>
>   apache/subprocessFAILED tests 1-4
>   Failed 4/4 tests, 0.00% okay

OK, here is the patch that will 100% :) fix these two problems (apply
manually or just use the cvs version):

Index: Apache-Test/lib/Apache/TestConfigPerl.pm
===
RCS file:
/home/cvs/httpd-test/perl-framework/Apache-Test/lib/Apache/TestConfigPerl.pm
,v
retrieving revision 1.53
diff -u -r1.53 TestConfigPerl.pm
--- Apache-Test/lib/Apache/TestConfigPerl.pm1 Jul 2002 07:57:15
-  1.53
+++ Apache-Test/lib/Apache/TestConfigPerl.pm3 Dec 2002 15:27:17 -
@@ -282,6 +282,13 @@
  sub configure_pm_tests {
  my $self = shift;

+# since server wasn't started yet, the modules in blib under
+# Apache2 can't be seen. So we must load Apache2.pm, without which
+# run_apache_test_config might fail to require modules
+if ($mod_perl::VERSION > 1.99) {
+require Apache2;
+}
+
  for my $subdir (qw(Response Protocol Hooks Filter)) {
  my $dir = catfile $self->{vars}->{t_dir}, lc $subdir;
  next unless -d $dir;


--

I hope that now you get a clean make test.

__
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] the make test problem saga continues...

2002-12-03 Thread Beau E. Cox
Ok Mr. 100%... ;-)

I'll get cvs again.

Aloha => Beau.

-Original Message-
From: Stas Bekman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 5:33 AM
To: Beau E. Cox
Cc: Modperl
Subject: Re: [mp2] the make test problem saga continues...



>C. same Apache/Const.pm not found:
>
>   Can't locate Apache/Const.pm in @INC (@INC contains:
[...]
>D. same tests failed:
>
>   apache/subprocessFAILED tests 1-4
>   Failed 4/4 tests, 0.00% okay

OK, here is the patch that will 100% :) fix these two problems (apply
manually or just use the cvs version):

Index: Apache-Test/lib/Apache/TestConfigPerl.pm
===
RCS file:
/home/cvs/httpd-test/perl-framework/Apache-Test/lib/Apache/TestConfigPerl.pm
,v
retrieving revision 1.53
diff -u -r1.53 TestConfigPerl.pm
--- Apache-Test/lib/Apache/TestConfigPerl.pm1 Jul 2002 07:57:15
-  1.53
+++ Apache-Test/lib/Apache/TestConfigPerl.pm3 Dec 2002 15:27:17 -
@@ -282,6 +282,13 @@
  sub configure_pm_tests {
  my $self = shift;

+# since server wasn't started yet, the modules in blib under
+# Apache2 can't be seen. So we must load Apache2.pm, without which
+# run_apache_test_config might fail to require modules
+if ($mod_perl::VERSION > 1.99) {
+require Apache2;
+}
+
  for my $subdir (qw(Response Protocol Hooks Filter)) {
  my $dir = catfile $self->{vars}->{t_dir}, lc $subdir;
  next unless -d $dir;


--

I hope that now you get a clean make test.

__
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] the make test problem saga continues...

2002-12-03 Thread Stas Bekman


   C. same Apache/Const.pm not found:

  Can't locate Apache/Const.pm in @INC (@INC contains:

[...]

   D. same tests failed:

  apache/subprocessFAILED tests 1-4
	Failed 4/4 tests, 0.00% okay


OK, here is the patch that will 100% :) fix these two problems (apply 
manually or just use the cvs version):

Index: Apache-Test/lib/Apache/TestConfigPerl.pm
===
RCS file: 
/home/cvs/httpd-test/perl-framework/Apache-Test/lib/Apache/TestConfigPerl.pm,v
retrieving revision 1.53
diff -u -r1.53 TestConfigPerl.pm
--- Apache-Test/lib/Apache/TestConfigPerl.pm1 Jul 2002 07:57:15 
-  1.53
+++ Apache-Test/lib/Apache/TestConfigPerl.pm3 Dec 2002 15:27:17 -
@@ -282,6 +282,13 @@
 sub configure_pm_tests {
 my $self = shift;

+# since server wasn't started yet, the modules in blib under
+# Apache2 can't be seen. So we must load Apache2.pm, without which
+# run_apache_test_config might fail to require modules
+if ($mod_perl::VERSION > 1.99) {
+require Apache2;
+}
+
 for my $subdir (qw(Response Protocol Hooks Filter)) {
 my $dir = catfile $self->{vars}->{t_dir}, lc $subdir;
 next unless -d $dir;


--

I hope that now you get a clean make test.

__
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] the make test problem saga continues...

2002-12-03 Thread Beau E. Cox
Sir:

You are correct; after changing owner:group settings to 
my normal user, apr/perlio worked fine under that user!

Const.pm && apache/subprocess fail in the same way as
under root.

progress...ain't it great! :)

Aloha => Beau.

PS: boy, you are brave; over the years I've learned not to say:
"I'm 100% sure that..."
but, yes, it worked.
I seem to get burned almost every time I let that one slip! :)

-Original Message-
From: Stas Bekman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 4:14 AM
To: Beau E. Cox
Cc: Modperl
Subject: Re: [mp2] the make test problem saga continues...


>   apache/subprocessFAILED tests 1-4
>   Failed 4/4 tests, 0.00% okay
> 
>   apr/perlio...FAILED tests 1-11
>   Failed 11/11 tests, 0.00% okay

OK, finally I've figured what's different in your environment from mine: 
You run the test suite as root!

I was able to reproduce the problem with apr/perlio.

The problem is that when you run the test suite as root, Apache::Test 
runs the server under User: nobody, which explains the failure. The dir 
t/htdocs doesn't have a+wx perms.

For now, please switch to your user, instead of root. And try again:

I'm 100% sure that apr/perlio will work for you now.

Does apache/subprocess now work for you?

re: Apache::Const not found, I'm still trying to guess what could be the 
problem, since I can't reproduce it.

__
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] the make test problem saga continues...

2002-12-03 Thread Beau E. Cox

-8<-- Start Bug Report 8<--
1. Problem Description:

   A. Reinstalled apache 2.0.43 w/o my crazy SuSE layout, just:
  ./configure --with-mpm=worker

  Apache AOK.

   B. Pulled CVS source for mp2 as per web site instructions.

  perl Makefile.PL MP_AP_PREFIX=/usr/local/apache2 MP_INST_APACHE2=1
  make
  make test

   C. same Apache/Const.pm not found:

  Can't locate Apache/Const.pm in @INC (@INC contains:
Apache-Test/lib /usr/local/addons/modperl-2.0/Apache-Test/lib
/usr/local/addons/modperl-2.0/lib
/usr/local/addons/modperl-2.0/blib/lib
/usr/local/addons/modperl-2.0/blib/arch
/usr/local/addons/modperl-2.0/t/../Apache-Test/lib
/usr/local/addons/modperl-2.0/t/../lib
/usr/local/addons/modperl-2.0/t/../../lib
/usr/lib/perl5/5.8.0/i586-linux-thread-multi
/usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl .) at
/usr/local/addons/modperl-2.0/t/response/TestApache/subprocess.pm line 12.
  BEGIN failed--compilation aborted at
/usr/local/addons/modperl-2.0/t/response/TestApache/subprocess.pm line 12.
  Compilation failed in require at
/usr/local/addons/modperl-2.0/t/../Apache-Test/lib/Apache/TestConfigPerl.pm
line 382.

  I have Const.pm at:

  /usr/local/addons/modperl-2.0/blib/lib/Apache2/Apache

  but that's not in @INC. How can I modify the @INC within
  the ApacheTest environment? I can't find it in the Apache Test
  section of the docs.

   D. same tests failed:

  apache/subprocessFAILED tests 1-4
Failed 4/4 tests, 0.00% okay

  apr/perlio...FAILED tests 1-11
Failed 11/11 tests, 0.00% okay

   E. t/logs/error_log

  END in modperl_extra.pl, pid=18641
  END in modperl_extra.pl, pid=18641
  END in modperl_extra.pl, pid=18641
  END in modperl_extra.pl, pid=18641
  END in modperl_extra.pl, pid=18641
  END in modperl_extra.pl, pid=18641
  END in modperl_extra.pl, pid=18641
  END in modperl_extra.pl, pid=18641
  [Tue Dec 03 02:13:03 2002] [notice] Apache/2.0.43 (Unix)
mod_perl/1.99_08-dev Perl/v5.8.0 configured -- resuming normal operations
  [Tue Dec 03 02:13:03 2002] [info] Server built: Dec  3 2002 00:51:28
  [Tue Dec 03 02:13:03 2002] [debug] worker.c(1736): AcceptMutex:
sysvsem (default: sysvsem)
  [Tue Dec 03 02:13:04 2002] [error] server reached MaxClients setting,
consider raising the MaxClients setting
  # Failed test 1 in
/usr/local/addons/modperl-2.0/t/response/TestApache/subprocess.pm at line 55
  # Failed test 2 in
/usr/local/addons/modperl-2.0/t/response/TestApache/subprocess.pm at line 68
  # Failed test 3 in
/usr/local/addons/modperl-2.0/t/response/TestApache/subprocess.pm at line 82
  # Failed test 4 in
/usr/local/addons/modperl-2.0/t/response/TestApache/subprocess.pm at line 96
  [Tue Dec 03 02:13:09 2002] [info] [client 127.0.0.1] TestAPI::aplog
test in progress
  [Tue Dec 03 02:13:09 2002] [debug]
/usr/local/addons/modperl-2.0/t/response/TestAPI/aplog.pm(43): log_serror
test ok
  [Tue Dec 03 02:13:09 2002] [debug]
/usr/local/addons/modperl-2.0/t/response/TestAPI/aplog.pm(46): (20007)No
time was provided and one was required.: log_serror test 2 ok
  [Tue Dec 03 02:13:09 2002] [debug]
/usr/local/addons/modperl-2.0/t/response/TestAPI/aplog.pm(49): [client
127.0.0.1] (20007)No time was provided and one was required.: log_rerror
test ok
  [Tue Dec 03 02:13:09 2002] [error] $r->log_error test ok
  [Tue Dec 03 02:13:09 2002] [error] $s->log_error test ok
  [Tue Dec 03 02:13:09 2002] [debug]
/usr/local/addons/modperl-2.0/t/response/TestAPI/aplog.pm(63):
TestAPI::aplog test done
  [Tue Dec 03 02:13:09 2002] [warn] ApacheApache->warn test ok
  [Tue Dec 03 02:13:09 2002] [warn] $s->warn test ok
  [Tue Dec 03 02:13:17 2002] [error] [client 127.0.0.1] mkdir
/usr/local/addons/modperl-2.0/t/htdocs/perlio: Permission denied at
/usr/local/addons/modperl-2.0/Apache-Test/lib/Apache/TestUtil.pm line 128

  [Tue Dec 03 02:13:20 2002] [error] Apache::log_error test ok
  [Tue Dec 03 02:13:31 2002] [error] [client 127.0.0.1] File does not
exist: /usr/local/addons/modperl-2.0/t/htdocs/nope
  [Tue Dec 03 02:13:37 2002] [error] [client 127.0.0.1] need AuthName:
/TestModperl::setauth
  [Tue Dec 03 02:13:41 2002] [info] removed PID file
/usr/local/addons/modperl-2.0/t/logs/httpd.pid (pid=18642)
  [Tue Dec 03 02:13:41 2002] [notice] caught SIGTERM, shutting down
  END in modperl_extra.pl, pid=18642
  END in modperl_extra.pl, pid=18642
  END in modperl_extra.pl, pid=18642
  END in modperl_extra.pl, pid=18642
  END in modperl_extra.pl, p