Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-29 Thread MGorbunov
Stas Bekman <[EMAIL PROTECTED]> wrote on 29.09.2004 16:27:50:

> 
> Thanks, but these particular 4 tests, were they passed or skipped? I 
> suppose passed, since the rule is to skip only for < 2.0.52.
> 
k714% make test TEST_VERBOSE=1 \
> TEST_FILES="t/filter/both_str_con_add.t t/protocol/echo_block.t 
t/protocol/echo_filter.t t/protocol/pseudo_http.t"

...

t/filter/both_str_con_add1..4
# Running under perl version 5.008004 for netbsd
# Current time local: Wed Sep 29 16:31:19 2004
# Current time GMT:   Wed Sep 29 12:31:19 2004
# Using Test.pm version 1.24
# Using Apache/Test.pm version 1.14
ok 1
# expected: mod_perl
# received: mod_perl
ok 2
# expected: 2.0
# received: 2.0
ok 3
# expected: rules
# received: rules
ok 4
ok
t/protocol/echo_block1..3
# Running under perl version 5.008004 for netbsd
# Current time local: Wed Sep 29 16:31:20 2004
# Current time GMT:   Wed Sep 29 12:31:20 2004
# Using Test.pm version 1.24
# Using Apache/Test.pm version 1.14
ok 1
# expected: hello
# received: hello
ok 2
# expected: world
# received: world
ok 3
ok
t/protocol/echo_filter...1..3
# Running under perl version 5.008004 for netbsd
# Current time local: Wed Sep 29 16:31:22 2004
# Current time GMT:   Wed Sep 29 12:31:22 2004
# Using Test.pm version 1.24
# Using Apache/Test.pm version 1.14
ok 1
# expected: HELLO
# received: HELLO
ok 2
# expected: WORLD
# received: WORLD
ok 3
ok
t/protocol/pseudo_http...# connecting to localhost:8544
1..13
# Running under perl version 5.008004 for netbsd
# Current time local: Wed Sep 29 16:31:23 2004
# Current time GMT:   Wed Sep 29 12:31:23 2004
# Using Test.pm version 1.24
# Using Apache/Test.pm version 1.14
ok 1
# testing : greeting
# expected: HELO
# received: HELO
ok 2
# send: HELO
# testing : login
# expected: Login:
# received: Login:
ok 3
# send: stas
# testing : good password
# expected: Password:
# received: Password:
ok 4
# send: foobar
# testing : banner
# expected: Welcome to TestProtocol::pseudo_http
# received: Welcome to TestProtocol::pseudo_http
ok 5
# testing : date
# expected: Available commands: date quit
# received: Available commands: date quit
ok 6
# send: date
# testing : quit
# expected: (?-xism:The time is:)
# received: The time is: Wed Sep 29 16:31:24 2004
ok 7
# send: quit
# testing : end of transmission
# expected: Goodbye
# received: Goodbye
ok 8
ok 9
# testing : greeting
# expected: HELO
# received: HELO
ok 10
# send: HELO
# testing : login
# expected: Login:
# received: Login:
ok 11
# send: stas
# testing : wrong password
# expected: Password:
# received: Password:
ok 12
# send: foObaR
# testing : end of transmission
# expected: Access Denied
# received: Access Denied
ok 13
ok
All tests successful.
Files=4, Tests=23,  5 wallclock secs ( 4.56 cusr +  0.65 csys =  5.21 CPU)
[warning] server localhost:8529 shutdown

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-29 Thread Stas Bekman
[EMAIL PROTECTED] wrote:
Stas Bekman <[EMAIL PROTECTED]> wrote on 29.09.2004 02:51:13:

OK, Apache 2.0.52 is out, could you please report that these tests pass 
with that version (unpatched!) and the current modperl-2.0 cvs?

t/filter/both_str_con_add.t t/protocol/echo_block.t 
t/protocol/echo_filter.t t/protocol/pseudo_http.t


NetBSD-1.6.2, perl-5.8.4, httpd-2.0.52, current modperl-2.0 cvs:
% make test
...
All tests successful, 19 tests skipped.
Files=218, Tests=3891, 341 wallclock secs (263.19 cusr + 38.04 csys = 
301.23 CPU)
Thanks, but these particular 4 tests, were they passed or skipped? I 
suppose passed, since the rule is to skip only for < 2.0.52.

--
__
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
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-29 Thread MGorbunov
Stas Bekman <[EMAIL PROTECTED]> wrote on 29.09.2004 02:51:13:

> OK, Apache 2.0.52 is out, could you please report that these tests pass 
> with that version (unpatched!) and the current modperl-2.0 cvs?
> 
> t/filter/both_str_con_add.t t/protocol/echo_block.t 
> t/protocol/echo_filter.t t/protocol/pseudo_http.t
> 

NetBSD-1.6.2, perl-5.8.4, httpd-2.0.52, current modperl-2.0 cvs:

% make test

...

All tests successful, 19 tests skipped.
Files=218, Tests=3891, 341 wallclock secs (263.19 cusr + 38.04 csys = 
301.23 CPU)

...

cd ModPerl-Registry && make test

...

All tests successful, 2 tests skipped.
Files=14, Tests=70, 20 wallclock secs (15.80 cusr +  2.49 csys = 18.29 
CPU)

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-28 Thread Stas Bekman
OK, Apache 2.0.52 is out, could you please report that these tests pass 
with that version (unpatched!) and the current modperl-2.0 cvs?

t/filter/both_str_con_add.t t/protocol/echo_block.t 
t/protocol/echo_filter.t t/protocol/pseudo_http.t

Please send one report on NetBSD and one more on OpenBSD (and if you have 
an access to other BSDs so much better :).

Thank you.
--
__
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
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-23 Thread Joe Orton
On Wed, Sep 22, 2004 at 10:17:34PM -0400, Stas Bekman wrote:
> Joe, as 2.0.52 is about to be released. Can that fix for NetBSD applied to 
> the 0.9 trunch (and head) if it does the trick? Thanks.

It's been in both branches for a while so hopefully it will get picked
up, yep.

joe

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-22 Thread Stas Bekman
Joe Orton wrote:
On Fri, Sep 17, 2004 at 04:15:23PM -0400, Stas Bekman wrote:
So is that the right skip rule (hoping that 2.0.52 will fix NetBSD:
my $should_skip =
   ($^0 eq /^OpenBSD$/i && !need_min_apache_version('2.0.51')) ||
   ($^0 eq /^NetBSD$/i  && !need_min_apache_version('2.0.52'));

That logic is correct w.r.t the APR issue, yes.
Joe, as 2.0.52 is about to be released. Can that fix for NetBSD applied to 
the 0.9 trunch (and head) if it does the trick? Thanks.

--
__
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
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-17 Thread Ken Simpson
Sorry -- the APR patch for OpenBSD _did_ make it into the APR that is
tagged for release with 2.0.51.

http://cvs.apache.org/viewcvs.cgi/apr/build/apr_hints.m4?rev=1.53.2.9&only_with_tag=APACHE_2_0_51&view=auto:

 ...
 *-openbsd*)
 APR_ADDTO(CPPFLAGS, [-D_POSIX_THREADS])
 # binding to an ephemeral port fails on OpenBSD so override
 # the test for O_NONBLOCK inheritance across accept().
 APR_SETIFNULL(ac_cv_o_nonblock_inherited, [yes])
 ...

I don't know about NetBSD or OSX.

TTUL
Ken

Stas Bekman [17/09/04 18:35 -0400]:
> Ken Simpson wrote:
> >>So is that the right skip rule (hoping that 2.0.52 will fix NetBSD:
> >>
> >>my $should_skip =
> >>   ($^0 eq /^OpenBSD$/i && !need_min_apache_version('2.0.51')) ||
> >>   ($^0 eq /^NetBSD$/i  && !need_min_apache_version('2.0.52'));
> >>
> >>and the tests that need to be skipped are:
> >>
> >>t/filter/both_str_con_add.t
> >>t/protocol/echo_block.t
> >>t/protocol/echo_filter.t
> >>t/protocol/pseudo_httpt
> >
> >
> >Yes, these tests break unless you have the APR patch. I don't know of
> >any others that also break.
> 
> You mean they still break OpenBSD with 2.0.51? I thought you said the 
> patch was applied and entered 2.0.51. I'm at loss here. Should this just be:
> 
>   my $should_skip = $^0 eq /^(Open|Net)BSD$/i;
> 
> for now?
> 
> p.s. 2.0.51 was just released, not sure if you had a chance to test 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
> 
> Sent by MailChannels: http://www.mailchannels.com

-- 
MailChannels: Imagine no more spam

--
http://www.mailchannels.com
MailChannels Corporation
Suite 1600, 1188 West Georgia St.
Vancouver, BC, Canada

Ken Simpson, CEO
+1-604-729-1741

Sent by MailChannels: http://www.mailchannels.com

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-17 Thread Ken Simpson
> So is that the right skip rule (hoping that 2.0.52 will fix NetBSD:
> 
> my $should_skip =
> ($^0 eq /^OpenBSD$/i && !need_min_apache_version('2.0.51')) ||
> ($^0 eq /^NetBSD$/i  && !need_min_apache_version('2.0.52'));
> 
> and the tests that need to be skipped are:
> 
> t/filter/both_str_con_add.t
> t/protocol/echo_block.t
> t/protocol/echo_filter.t
> t/protocol/pseudo_http.t

Yes, these tests break unless you have the APR patch. I don't know of
any others that also break.

TTUL
Ken

-- 
MailChannels: Imagine no more spam

--
http://www.mailchannels.com
MailChannels Corporation
Suite 1600, 1188 West Georgia St.
Vancouver, BC, Canada

Ken Simpson, CEO
+1-604-729-1741

Sent by MailChannels: http://www.mailchannels.com

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-17 Thread Stas Bekman
Ken Simpson wrote:
Sorry -- the APR patch for OpenBSD _did_ make it into the APR that is
tagged for release with 2.0.51.
http://cvs.apache.org/viewcvs.cgi/apr/build/apr_hints.m4?rev=1.53.2.9&only_with_tag=APACHE_2_0_51&view=auto:
 ...
 *-openbsd*)
 APR_ADDTO(CPPFLAGS, [-D_POSIX_THREADS])
 # binding to an ephemeral port fails on OpenBSD so override
 # the test for O_NONBLOCK inheritance across accept().
 APR_SETIFNULL(ac_cv_o_nonblock_inherited, [yes])
 ...
2.0.51 has been released. Could you please download/install it and test 
that it now works? thanks.

I don't know about NetBSD or OSX.
OS X? does the problem exist on Mac OS X too?
--
__
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
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-17 Thread Stas Bekman
Joe Orton wrote:
On Fri, Sep 17, 2004 at 04:15:23PM -0400, Stas Bekman wrote:
So is that the right skip rule (hoping that 2.0.52 will fix NetBSD:
my $should_skip =
   ($^0 eq /^OpenBSD$/i && !need_min_apache_version('2.0.51')) ||
   ($^0 eq /^NetBSD$/i  && !need_min_apache_version('2.0.52'));
of course that's =~ instead of eq ;)
--
__
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
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-17 Thread Joe Orton
On Fri, Sep 17, 2004 at 04:15:23PM -0400, Stas Bekman wrote:
> So is that the right skip rule (hoping that 2.0.52 will fix NetBSD:
> 
> my $should_skip =
> ($^0 eq /^OpenBSD$/i && !need_min_apache_version('2.0.51')) ||
> ($^0 eq /^NetBSD$/i  && !need_min_apache_version('2.0.52'));

That logic is correct w.r.t the APR issue, yes.


-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-17 Thread Stas Bekman
Ken Simpson wrote:
So is that the right skip rule (hoping that 2.0.52 will fix NetBSD:
my $should_skip =
   ($^0 eq /^OpenBSD$/i && !need_min_apache_version('2.0.51')) ||
   ($^0 eq /^NetBSD$/i  && !need_min_apache_version('2.0.52'));
and the tests that need to be skipped are:
t/filter/both_str_con_add.t
t/protocol/echo_block.t
t/protocol/echo_filter.t
t/protocol/pseudo_http.t

Yes, these tests break unless you have the APR patch. I don't know of
any others that also break.
You mean they still break OpenBSD with 2.0.51? I thought you said the 
patch was applied and entered 2.0.51. I'm at loss here. Should this just be:

  my $should_skip = $^0 eq /^(Open|Net)BSD$/i;
for now?
p.s. 2.0.51 was just released, not sure if you had a chance to test 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
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-17 Thread Stas Bekman
Joe Orton wrote:
I can try and debug this, I've found a NetBSD machine and reproduced the
failure.  ./t/TEST -start-httpd doesn't work from the mod_perl test
suite, is there a way to get that working?
I guess it will take a while to resolve these BSD issues. Meanwhile we 
want to release 1.99_17 so we need to skip the failing, due to the apr 
bug, tests. 2.0.51 is out. I understand that OpenBSD is fixed in that 
release but, NetBSD is not.

So is that the right skip rule (hoping that 2.0.52 will fix NetBSD:
my $should_skip =
($^0 eq /^OpenBSD$/i && !need_min_apache_version('2.0.51')) ||
($^0 eq /^NetBSD$/i  && !need_min_apache_version('2.0.52'));
and the tests that need to be skipped are:
t/filter/both_str_con_add.t
t/protocol/echo_block.t
t/protocol/echo_filter.t
t/protocol/pseudo_http.t
--
__
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
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-15 Thread Stas Bekman
[EMAIL PROTECTED] wrote:
Stas Bekman <[EMAIL PROTECTED]> wrote on 15.09.2004 18:03:35:


Warning: You do not have permissions to install into 
/usr/pkg/lib/perl5/site_perl/5.8.4/i386-netbsd at 
/usr/pkg/lib/perl5/5.8.4/ExtUtils/Install.pm line 114.
mkdir /usr/pkg/lib/perl5/site_perl/5.8.4/i386-netbsd/Apache2: 
Permission 

denied at /usr/pkg/lib/perl5/5.8.4/ExtUtils/Install.pm line 176
*** Error code 255
Stop.
make: stopped in /home/mgorb/mp-test/modperl-2.0
k714%
modperl was built with  MP_INST_APACHE2=1. Does it still has to 
install 

something into /usr/pkg/lib/perl5/site_perl/5.8.4/i386-netbsd ?
Of course. You have to be root to install things into the common area. 
Unless you told it to use a different PREFIX (e.g. to install under you 
$HOME), in which case it's a bug. But you need to show your 'perl 
Makefile.PL' line then.

 I thought configuring it with MP_INST_APACHE2=1 tells it to install 
everything under httpd PREFIX directory.
IMP_INST_APACHE2=1 has nothing to do with it. Please read:
http://perl.apache.org/docs/2.0/user/install/install.html#MP_INST_APACHE2
I guess I should make it more clear, saying:
Install all the *.pm modules relative to the Apache2/ directory, under the 
perl modules tree.

--
__
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
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-15 Thread MGorbunov
Stas Bekman <[EMAIL PROTECTED]> wrote on 15.09.2004 18:03:35:

> 
> 
> > Warning: You do not have permissions to install into 
> > /usr/pkg/lib/perl5/site_perl/5.8.4/i386-netbsd at 
> > /usr/pkg/lib/perl5/5.8.4/ExtUtils/Install.pm line 114.
> > mkdir /usr/pkg/lib/perl5/site_perl/5.8.4/i386-netbsd/Apache2: 
Permission 
> > denied at /usr/pkg/lib/perl5/5.8.4/ExtUtils/Install.pm line 176
> > *** Error code 255
> > 
> > Stop.
> > make: stopped in /home/mgorb/mp-test/modperl-2.0
> > k714%
> > 
> > modperl was built with  MP_INST_APACHE2=1. Does it still has to 
install 
> > something into /usr/pkg/lib/perl5/site_perl/5.8.4/i386-netbsd ?
> 
> Of course. You have to be root to install things into the common area. 
> Unless you told it to use a different PREFIX (e.g. to install under you 
> $HOME), in which case it's a bug. But you need to show your 'perl 
> Makefile.PL' line then.
> 
 I thought configuring it with MP_INST_APACHE2=1 tells it to install 
everything under httpd PREFIX directory.

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-15 Thread Stas Bekman

Warning: You do not have permissions to install into 
/usr/pkg/lib/perl5/site_perl/5.8.4/i386-netbsd at 
/usr/pkg/lib/perl5/5.8.4/ExtUtils/Install.pm line 114.
mkdir /usr/pkg/lib/perl5/site_perl/5.8.4/i386-netbsd/Apache2: Permission 
denied at /usr/pkg/lib/perl5/5.8.4/ExtUtils/Install.pm line 176
*** Error code 255

Stop.
make: stopped in /home/mgorb/mp-test/modperl-2.0
k714%
modperl was built with  MP_INST_APACHE2=1. Does it still has to install 
something into /usr/pkg/lib/perl5/site_perl/5.8.4/i386-netbsd ?
Of course. You have to be root to install things into the common area. 
Unless you told it to use a different PREFIX (e.g. to install under you 
$HOME), in which case it's a bug. But you need to show your 'perl 
Makefile.PL' line then.

--
__
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
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-15 Thread MGorbunov
> Stas Bekman <[EMAIL PROTECTED]> wrote on 14.09.2004 04:36:59:
> 
> > Mea culpa, not sure why it did work for me. I guess my emulation of 
apr 
> > not having threads didn't work completely. Please try this patch:
> > 
> > Index: lib/ModPerl/BuildMM.pm
> > ===
> > RCS file: /home/cvs/modperl-2.0/lib/ModPerl/BuildMM.pm,v
> > retrieving revision 1.21
> > diff -u -r1.21 BuildMM.pm
> > --- lib/ModPerl/BuildMM.pm  8 Sep 2004 04:10:09 -   1.21
> > +++ lib/ModPerl/BuildMM.pm  14 Sep 2004 00:36:00 -
> > @@ -274,9 +274,7 @@
> >   # it's possible that the .pm file is not existing
> >   # (e.g. ThreadMutex.pm is not created on unless
> >   # $apr_config->{HAS_THREADS})
> > -return unless -e $pm;
> > -
> > -die "glue_pod: can't find $dst" unless -e $dst;
> > +return unless -e $pm && -e $dst;
> > 
> >   # have we already glued the doc?
> >   exit 0 unless -s $pm == -s $dst;
> > 
> >
> tried this fix with the latest cvs:
Sorry, didn't put it quite clear.  make && make test are OK, but make 
install ends up with this: 

>  /usr/home/mgorb/mp-test/modperl-2.0/docs/api/Apache/Status.pod 
> blib/lib/Apache2/Apache/Status.pm
> /usr/pkg/bin/perl -MExtUtils::Install -e  "-e qq{.mypacklist} && 
> uninstall(qq{.mypacklist}, 1, 0)"
> unlink .mypacklist
> cp xs/modperl_xs_sv_convert.h  xs/modperl_xs_typedefs.h 
> xs/modperl_xs_util.h  xs/APR/PerlIO/modperl_apr_perlio.h 
> /home/mgorb/httpd-2.0/include
> cd "src/modules/perl" && make -f Makefile.modperl install
> test -f mod_perl.so &&  cp mod_perl.so /home/mgorb/httpd-2.0/modules
> cp mod_perl.h modperl_interp.h modperl_tipool.h modperl_log.h 
> modperl_config.h modperl_cmd.h modperl_options.h modperl_callback.h 
> modperl_handler.h modperl_gtop.h modperl_util.h modperl_io.h 
> modperl_io_apache.h modperl_filter.h modperl_bucket.h modperl_mgv.h 
> modperl_pcw.h modperl_global.h modperl_env.h modperl_cgi.h 
modperl_perl.h 
> modperl_perl_global.h modperl_perl_pp.h modperl_sys.h modperl_module.h 
> modperl_svptr_table.h modperl_const.h modperl_constants.h 
> modperl_apache_compat.h modperl_error.h modperl_debug.h 
> modperl_common_util.h modperl_common_log.h modperl_perl_unembed.h 
> modperl_types.h modperl_time.h modperl_apache_includes.h 
> modperl_perl_includes.h modperl_apr_includes.h modperl_common_includes.h 

> modperl_common_types.h modperl_hooks.h modperl_directives.h 
> modperl_flags.h modperl_trace.h modperl_largefiles.h 
> /home/mgorb/httpd-2.0/include
> Warning: You do not have permissions to install into 
> /usr/pkg/lib/perl5/site_perl/5.8.4/i386-netbsd at 
> /usr/pkg/lib/perl5/5.8.4/ExtUtils/Install.pm line 114.
> mkdir /usr/pkg/lib/perl5/site_perl/5.8.4/i386-netbsd/Apache2: Permission 

> denied at /usr/pkg/lib/perl5/5.8.4/ExtUtils/Install.pm line 176
> *** Error code 255
> 
> Stop.
> make: stopped in /home/mgorb/mp-test/modperl-2.0
> k714%
> 
> modperl was built with  MP_INST_APACHE2=1. Does it still has to install 
> something into /usr/pkg/lib/perl5/site_perl/5.8.4/i386-netbsd ?
> 
> -- 
> Report problems: http://perl.apache.org/bugs/
> Mail list info: http://perl.apache.org/maillist/modperl.html
> List etiquette: http://perl.apache.org/maillist/email-etiquette.html
> 


-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-15 Thread MGorbunov
Stas Bekman <[EMAIL PROTECTED]> wrote on 14.09.2004 04:36:59:

> Mea culpa, not sure why it did work for me. I guess my emulation of apr 
> not having threads didn't work completely. Please try this patch:
> 
> Index: lib/ModPerl/BuildMM.pm
> ===
> RCS file: /home/cvs/modperl-2.0/lib/ModPerl/BuildMM.pm,v
> retrieving revision 1.21
> diff -u -r1.21 BuildMM.pm
> --- lib/ModPerl/BuildMM.pm  8 Sep 2004 04:10:09 -   1.21
> +++ lib/ModPerl/BuildMM.pm  14 Sep 2004 00:36:00 -
> @@ -274,9 +274,7 @@
>   # it's possible that the .pm file is not existing
>   # (e.g. ThreadMutex.pm is not created on unless
>   # $apr_config->{HAS_THREADS})
> -return unless -e $pm;
> -
> -die "glue_pod: can't find $dst" unless -e $dst;
> +return unless -e $pm && -e $dst;
> 
>   # have we already glued the doc?
>   exit 0 unless -s $pm == -s $dst;
> 
> 
tried this fix with the latest cvs:

 /usr/home/mgorb/mp-test/modperl-2.0/docs/api/Apache/Status.pod 
blib/lib/Apache2/Apache/Status.pm
/usr/pkg/bin/perl -MExtUtils::Install -e  "-e qq{.mypacklist} && 
uninstall(qq{.mypacklist}, 1, 0)"
unlink .mypacklist
cp xs/modperl_xs_sv_convert.h  xs/modperl_xs_typedefs.h 
xs/modperl_xs_util.h  xs/APR/PerlIO/modperl_apr_perlio.h 
/home/mgorb/httpd-2.0/include
cd "src/modules/perl" && make -f Makefile.modperl install
test -f mod_perl.so &&  cp mod_perl.so /home/mgorb/httpd-2.0/modules
cp mod_perl.h modperl_interp.h modperl_tipool.h modperl_log.h 
modperl_config.h modperl_cmd.h modperl_options.h modperl_callback.h 
modperl_handler.h modperl_gtop.h modperl_util.h modperl_io.h 
modperl_io_apache.h modperl_filter.h modperl_bucket.h modperl_mgv.h 
modperl_pcw.h modperl_global.h modperl_env.h modperl_cgi.h modperl_perl.h 
modperl_perl_global.h modperl_perl_pp.h modperl_sys.h modperl_module.h 
modperl_svptr_table.h modperl_const.h modperl_constants.h 
modperl_apache_compat.h modperl_error.h modperl_debug.h 
modperl_common_util.h modperl_common_log.h modperl_perl_unembed.h 
modperl_types.h modperl_time.h modperl_apache_includes.h 
modperl_perl_includes.h modperl_apr_includes.h modperl_common_includes.h 
modperl_common_types.h modperl_hooks.h modperl_directives.h 
modperl_flags.h modperl_trace.h modperl_largefiles.h 
/home/mgorb/httpd-2.0/include
Warning: You do not have permissions to install into 
/usr/pkg/lib/perl5/site_perl/5.8.4/i386-netbsd at 
/usr/pkg/lib/perl5/5.8.4/ExtUtils/Install.pm line 114.
mkdir /usr/pkg/lib/perl5/site_perl/5.8.4/i386-netbsd/Apache2: Permission 
denied at /usr/pkg/lib/perl5/5.8.4/ExtUtils/Install.pm line 176
*** Error code 255

Stop.
make: stopped in /home/mgorb/mp-test/modperl-2.0
k714%

modperl was built with  MP_INST_APACHE2=1. Does it still has to install 
something into /usr/pkg/lib/perl5/site_perl/5.8.4/i386-netbsd ?

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-15 Thread Joe Orton
On Wed, Sep 15, 2004 at 05:15:05PM +1000, Carl Brewer wrote:
> Joe Orton wrote:
> 
> >Oh well, having found a NetBSD box to testd this myself, the NetBSD
> >fcntl() is being economical with the truth.  It doesn't return
> >O_NONBLOCK yet the socket really is non-blocking. I'll put in the
> >suggested apr_hints.m4 change.  fun fun
> 
> This may be worth bringing to the attention of the NetBSD core team,
> as there's a 2.0 release coming up pretty soon, it may be a
> bugfix worth including.

yah, http://www.netbsd.org/cgi-bin/query-pr-single.pl?number=26950

joe

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-15 Thread Carl Brewer
Joe Orton wrote:
Oh well, having found a NetBSD box to testd this myself, the NetBSD
fcntl() is being economical with the truth.  It doesn't return
O_NONBLOCK yet the socket really is non-blocking. I'll put in the
suggested apr_hints.m4 change.  fun fun
This may be worth bringing to the attention of the NetBSD core team,
as there's a 2.0 release coming up pretty soon, it may be a
bugfix worth including.
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-14 Thread Stas Bekman
Joe Orton wrote:
On Thu, Sep 09, 2004 at 05:40:48PM +0400, [EMAIL PROTECTED] wrote:
k714% ./nonblock
found port: 52984
O_NONBLOCK is not set in the child.
This is rather confusing, since it means that apparently the test is
working OK, and O_NONBLOCK is *not* inherited across accept() on NetBSD,
which contradicts the behaviour you are seeing.
same on netbsd-1.6.1
k133% ./nonblock
found port: 65534
O_NONBLOCK is not set in the child.
k133%

Oh well, having found a NetBSD box to testd this myself, the NetBSD
fcntl() is being economical with the truth.  It doesn't return
O_NONBLOCK yet the socket really is non-blocking. I'll put in the
suggested apr_hints.m4 change.  fun fun
Excellent. Thanks Joe!
So what Apache version will this fix feature in, so we can properly skip 
it in the tests?

--
__
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
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-14 Thread Joe Orton
On Thu, Sep 09, 2004 at 05:40:48PM +0400, [EMAIL PROTECTED] wrote:
> > > 
> > > k714% ./nonblock
> > > found port: 52984
> > > O_NONBLOCK is not set in the child.
> > 
> > This is rather confusing, since it means that apparently the test is
> > working OK, and O_NONBLOCK is *not* inherited across accept() on NetBSD,
> > which contradicts the behaviour you are seeing.
> > 
> same on netbsd-1.6.1
> 
> k133% ./nonblock
> found port: 65534
> O_NONBLOCK is not set in the child.
> k133%

Oh well, having found a NetBSD box to testd this myself, the NetBSD
fcntl() is being economical with the truth.  It doesn't return
O_NONBLOCK yet the socket really is non-blocking. I'll put in the
suggested apr_hints.m4 change.  fun fun

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-14 Thread Stas Bekman
bad wrapping:
/tmp/jorton12/mod_perl-1.99_16/t/lib 
/tmp/jorton12/mod_perl-1.99_16/Apache-Test/lib 
It should be here:   ^^^
/tmp/jorton12/mod_perl-1.99_16/Apache-Test/lib
--
__
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
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-14 Thread Stas Bekman
Joe Orton wrote:
I can try and debug this, I've found a NetBSD machine and reproduced the
failure.  ./t/TEST -start-httpd doesn't work from the mod_perl test
suite, is there a way to get that working?
bash-2.05b$ ./t/TEST -start-httpd
/tmp/jorton12/root/bin/httpd -d /tmp/jorton12/mod_perl-1.99_16/t -f 
/tmp/jorton12/mod_perl-1.99_16/t/conf/httpd.conf -D APACHE2
using Apache/2.0.51-dev (prefork MPM)
 
waiting 120 seconds for server to start: .[Tue Sep 14 15:53:52 2004] 
[info] 27 Apache:: modules loaded
[Tue Sep 14 15:53:52 2004] [info] 7 APR:: modules loaded
[Tue Sep 14 15:53:52 2004] [info] base server + 20 vhosts ready to run 
tests
[Tue Sep 14 15:53:53 2004] [error] Can't locate 
ApacheTest/PerlModuleTest.pm in @INC (@INC contains: 
/tmp/jorton12/mod_perl-1.99_16/t/lib 
/tmp/jorton12/mod_perl-1.99_16/Apache-Test/lib 
It should be here:   ^^^
[Tue Sep 14 15:53:53 2004] [error] Can't load Perl module 
ApacheTest::PerlModuleTest for server localhost:8549, exiting...
You probably have a problem with a low limit on the number of files that 
can be opened by a single process
http://perl.apache.org/docs/2.0/user/troubleshooting/troubleshooting.html#Can_t_locate_F_TestFilter_in_str_consume_pm__in_C__INC

--
__
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
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-14 Thread Joe Orton
I can try and debug this, I've found a NetBSD machine and reproduced the
failure.  ./t/TEST -start-httpd doesn't work from the mod_perl test
suite, is there a way to get that working?

bash-2.05b$ ./t/TEST -start-httpd
/tmp/jorton12/root/bin/httpd -d /tmp/jorton12/mod_perl-1.99_16/t -f 
/tmp/jorton12/mod_perl-1.99_16/t/conf/httpd.conf -D APACHE2
using Apache/2.0.51-dev (prefork MPM)
 
waiting 120 seconds for server to start: .[Tue Sep 14 15:53:52 2004] 
[info] 27 Apache:: modules loaded
[Tue Sep 14 15:53:52 2004] [info] 7 APR:: modules loaded
[Tue Sep 14 15:53:52 2004] [info] base server + 20 vhosts ready to run 
tests
[Tue Sep 14 15:53:53 2004] [error] Can't locate 
ApacheTest/PerlModuleTest.pm in @INC (@INC contains: 
/tmp/jorton12/mod_perl-1.99_16/t/lib 
/tmp/jorton12/mod_perl-1.99_16/Apache-Test/lib 
/tmp/jorton12/mod_perl-1.99_16/t/response 
/tmp/jorton12/mod_perl-1.99_16/t/protocol 
/tmp/jorton12/mod_perl-1.99_16/t/preconnection 
/tmp/jorton12/mod_perl-1.99_16/t/hooks 
/tmp/jorton12/mod_perl-1.99_16/t/filter /tmp/jorton12/mod_perl-1.99_16/t 
/tmp/jorton12/mod_perl-1.99_16/t/htdocs/testdirective/main 
/tmp/jorton12/mod_perl-1.99_16/t/htdocs/testdirective/perlmodule-vh 
/tmp/jorton12/mod_perl-1.99_16/t/ 
/tmp/jorton12/mod_perl-1.99_16/t/lib/perl 
/tmp/jorton12/mod_perl-1.99_16/blib/lib 
/tmp/jorton12/mod_perl-1.99_16/blib/arch 
/usr/pkg/lib/perl5/site_perl/5.8.0/i386-netbsd 
/usr/pkg/lib/perl5/site_perl/5.8.0 /usr/pkg/lib/perl5/site_perl 
/usr/pkg/lib/perl5/5.8.0/i386-netbsd /usr/pkg/lib/perl5/5.8.0) at (eval 
60) line 3.\n
[Tue Sep 14 15:53:53 2004] [error] Can't load Perl module 
ApacheTest::PerlModuleTest for server localhost:8549, exiting...


-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-13 Thread Stas Bekman
Carl Brewer wrote:
Stas Bekman wrote:
Carl Brewer wrote:
[EMAIL PROTECTED] wrote:

but make install for modperl-1.99_16 fails with the following:
/usr/pkg/bin/perl -Iblib/lib/Apache2 
-I/usr/home/mgorb/mp-test/mod_perl-1.99_16/Apache-Test/lib 
-MModPerl::BuildMM -e ModPerl::BuildMM::glue_pod 
WrapXS/APR/ThreadMutex/ThreadMutex.pm 
/usr/home/mgorb/mp-test/mod_perl-1.99_16/docs/api/APR/ThreadMutex.pod 
blib/lib/Apache2/APR/ThreadMutex.pm
glue_pod: can't find blib/lib/Apache2/APR/ThreadMutex.pm at 
blib/lib/Apache2/ModPerl/BuildMM.pm line 275.
*** Error code 2


I see the same problem on my i386 NetBSD 1.6.2 box.

Yes, but I've asked you to use cvs, where this has been fixed. Please 
confirm that it is the case.

Current CVS checked out 10 mins ago :
/usr/bin/perl -Iblib/lib -I/data/src/modperl-2.0/Apache-Test/lib 
-MModPerl::BuildMM -e ModPerl::BuildMM::glue_pod 
WrapXS/APR/ThreadMutex/ThreadMutex.pm 
/data/src/modperl-2.0/docs/api/APR/ThreadMutex.pod 
blib/lib/APR/ThreadMutex.pm
glue_pod: can't find blib/lib/APR/ThreadMutex.pm at 
blib/lib/ModPerl/BuildMM.pm line 279.
gmake: *** [glue_pods] Error 2

Sure enough, there's no ThreadMutex.pm in blib/lib/APR/
Mea culpa, not sure why it did work for me. I guess my emulation of apr 
not having threads didn't work completely. Please try this patch:

Index: lib/ModPerl/BuildMM.pm
===
RCS file: /home/cvs/modperl-2.0/lib/ModPerl/BuildMM.pm,v
retrieving revision 1.21
diff -u -r1.21 BuildMM.pm
--- lib/ModPerl/BuildMM.pm  8 Sep 2004 04:10:09 -   1.21
+++ lib/ModPerl/BuildMM.pm  14 Sep 2004 00:36:00 -
@@ -274,9 +274,7 @@
 # it's possible that the .pm file is not existing
 # (e.g. ThreadMutex.pm is not created on unless
 # $apr_config->{HAS_THREADS})
-return unless -e $pm;
-
-die "glue_pod: can't find $dst" unless -e $dst;
+return unless -e $pm && -e $dst;
 # have we already glued the doc?
 exit 0 unless -s $pm == -s $dst;
--
__
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
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-13 Thread Carl Brewer
Stas Bekman wrote:
Carl Brewer wrote:
[EMAIL PROTECTED] wrote:

but make install for modperl-1.99_16 fails with the following:
/usr/pkg/bin/perl -Iblib/lib/Apache2 
-I/usr/home/mgorb/mp-test/mod_perl-1.99_16/Apache-Test/lib 
-MModPerl::BuildMM -e ModPerl::BuildMM::glue_pod 
WrapXS/APR/ThreadMutex/ThreadMutex.pm 
/usr/home/mgorb/mp-test/mod_perl-1.99_16/docs/api/APR/ThreadMutex.pod 
blib/lib/Apache2/APR/ThreadMutex.pm
glue_pod: can't find blib/lib/Apache2/APR/ThreadMutex.pm at 
blib/lib/Apache2/ModPerl/BuildMM.pm line 275.
*** Error code 2

I see the same problem on my i386 NetBSD 1.6.2 box.

Yes, but I've asked you to use cvs, where this has been fixed. Please 
confirm that it is the case.
Current CVS checked out 10 mins ago :
/usr/bin/perl -Iblib/lib -I/data/src/modperl-2.0/Apache-Test/lib 
-MModPerl::BuildMM -e ModPerl::BuildMM::glue_pod 
WrapXS/APR/ThreadMutex/ThreadMutex.pm 
/data/src/modperl-2.0/docs/api/APR/ThreadMutex.pod 
blib/lib/APR/ThreadMutex.pm
glue_pod: can't find blib/lib/APR/ThreadMutex.pm at 
blib/lib/ModPerl/BuildMM.pm line 279.
gmake: *** [glue_pods] Error 2

Sure enough, there's no ThreadMutex.pm in blib/lib/APR/

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-13 Thread Stas Bekman
Joe Orton wrote:
On Thu, Sep 09, 2004 at 11:38:15AM +0400, [EMAIL PROTECTED] wrote:
I wasn't surprised this fails on OpenBSD but I am surprised it fails on
NetBSD.  Can you compile and run:
http://www.apache.org/~jorton/nonblock.c
and post the output.  (it would be useful if you could do this on
OpenBSD too, Ken, for verification)
sorry for the dealy -- was away from my PC for a day 

k714% ./nonblock
found port: 52984
O_NONBLOCK is not set in the child.

This is rather confusing, since it means that apparently the test is
working OK, and O_NONBLOCK is *not* inherited across accept() on NetBSD,
which contradicts the behaviour you are seeing.
Guys, could you please resolve this issue. It felt between the chairs and 
the new mod_perl release's test suite will still have this problem. The 
bug is in libapr and the sooner you resolve it the better. Could someone 
on the *BSD platform lead this effort and coordinate the resolution?  Thanks.

--
__
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
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-13 Thread Stas Bekman
[EMAIL PROTECTED] wrote:
Stas Bekman <[EMAIL PROTECTED]> wrote on 11.09.2004 04:46:43:

Sorry, it was a different problem. This should fix it. Will commit that 
shortly.

Index: t/apr-ext/threadmutex.t
===
RCS file: /home/cvs/modperl-2.0/t/apr-ext/threadmutex.t,v
retrieving revision 1.1
diff -u -r1.1 threadmutex.t
--- t/apr-ext/threadmutex.t 15 Jul 2004 15:30:24 -  1.1
+++ t/apr-ext/threadmutex.t 11 Sep 2004 00:45:41 -
@@ -4,6 +4,6 @@
 use TestAPRlib::threadmutex;
-plan tests => TestAPRlib::threadmutex::num_of_tests();
+plan tests => TestAPRlib::threadmutex::num_of_tests(), need_threads;
 TestAPRlib::threadmutex::test();

tested this with mod perl 1.99_16. All tests successfull ! 
Excellent.
I only had to increase APACHE_TEST_STARTUP_TIMEOUT in order to run 
ModPerl-Registry tests. On my machine we had to wait for 267 seconds for 
apache to start in ModPerl-Registry tests.
Really? How long does it take to start the main test suite? Any idea why 
does it take so long? Or is that that slow machine that you gave me the 
access to a few months ago?

--
__
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
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-13 Thread Stas Bekman
Carl Brewer wrote:
[EMAIL PROTECTED] wrote:

but make install for modperl-1.99_16 fails with the following:
/usr/pkg/bin/perl -Iblib/lib/Apache2 
-I/usr/home/mgorb/mp-test/mod_perl-1.99_16/Apache-Test/lib 
-MModPerl::BuildMM -e ModPerl::BuildMM::glue_pod 
WrapXS/APR/ThreadMutex/ThreadMutex.pm 
/usr/home/mgorb/mp-test/mod_perl-1.99_16/docs/api/APR/ThreadMutex.pod 
blib/lib/Apache2/APR/ThreadMutex.pm
glue_pod: can't find blib/lib/Apache2/APR/ThreadMutex.pm at 
blib/lib/Apache2/ModPerl/BuildMM.pm line 275.
*** Error code 2

I see the same problem on my i386 NetBSD 1.6.2 box.
Yes, but I've asked you to use cvs, where this has been fixed. Please 
confirm that it is the case.

--
__
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
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-13 Thread Carl Brewer
[EMAIL PROTECTED] wrote:

but make install for modperl-1.99_16 fails with the following:
/usr/pkg/bin/perl -Iblib/lib/Apache2 
-I/usr/home/mgorb/mp-test/mod_perl-1.99_16/Apache-Test/lib 
-MModPerl::BuildMM -e ModPerl::BuildMM::glue_pod 
WrapXS/APR/ThreadMutex/ThreadMutex.pm 
/usr/home/mgorb/mp-test/mod_perl-1.99_16/docs/api/APR/ThreadMutex.pod 
blib/lib/Apache2/APR/ThreadMutex.pm
glue_pod: can't find blib/lib/Apache2/APR/ThreadMutex.pm at 
blib/lib/Apache2/ModPerl/BuildMM.pm line 275.
*** Error code 2
I see the same problem on my i386 NetBSD 1.6.2 box.

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-13 Thread MGorbunov
[EMAIL PROTECTED] wrote on 13.09.2004 11:14:21:

> Stas Bekman <[EMAIL PROTECTED]> wrote on 11.09.2004 04:46:43:
> 
> > Sorry, it was a different problem. This should fix it. Will commit 
that 
> > shortly.
> > 
> > Index: t/apr-ext/threadmutex.t
> > ===
> > RCS file: /home/cvs/modperl-2.0/t/apr-ext/threadmutex.t,v
> > retrieving revision 1.1
> > diff -u -r1.1 threadmutex.t
> > --- t/apr-ext/threadmutex.t 15 Jul 2004 15:30:24 -  1.1
> > +++ t/apr-ext/threadmutex.t 11 Sep 2004 00:45:41 -
> > @@ -4,6 +4,6 @@
> > 
> >   use TestAPRlib::threadmutex;
> > 
> > -plan tests => TestAPRlib::threadmutex::num_of_tests();
> > +plan tests => TestAPRlib::threadmutex::num_of_tests(), need_threads;
> > 
> >   TestAPRlib::threadmutex::test();
> > 
> 
> tested this with mod perl 1.99_16. All tests successfull ! 
> 
> I only had to increase APACHE_TEST_STARTUP_TIMEOUT in order to run 
> ModPerl-Registry tests. On my machine we had to wait for 267 seconds for 

> apache to start in ModPerl-Registry tests.
> 
> Thanks a lot.
> 
> --Mikhail

but make install for modperl-1.99_16 fails with the following:

/usr/pkg/bin/perl -Iblib/lib/Apache2 
-I/usr/home/mgorb/mp-test/mod_perl-1.99_16/Apache-Test/lib 
-MModPerl::BuildMM -e ModPerl::BuildMM::glue_pod 
WrapXS/APR/ThreadMutex/ThreadMutex.pm 
/usr/home/mgorb/mp-test/mod_perl-1.99_16/docs/api/APR/ThreadMutex.pod 
blib/lib/Apache2/APR/ThreadMutex.pm
glue_pod: can't find blib/lib/Apache2/APR/ThreadMutex.pm at 
blib/lib/Apache2/ModPerl/BuildMM.pm line 275.
*** Error code 2

for CVS result is the same:

/usr/pkg/bin/perl -Iblib/lib/Apache2 
-I/usr/home/mgorb/mp-test/modperl-2.0/Apache-Test/lib -MModPerl::BuildMM 
-e ModPerl::BuildMM::glue_pod WrapXS/APR/ThreadMutex/ThreadMutex.pm 
/usr/home/mgorb/mp-test/modperl-2.0/docs/api/APR/ThreadMutex.pod 
blib/lib/Apache2/APR/ThreadMutex.pm
glue_pod: can't find blib/lib/Apache2/APR/ThreadMutex.pm at 
blib/lib/Apache2/ModPerl/BuildMM.pm line 279.
*** Error code 2


-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-13 Thread MGorbunov
Stas Bekman <[EMAIL PROTECTED]> wrote on 11.09.2004 04:46:43:

> Sorry, it was a different problem. This should fix it. Will commit that 
> shortly.
> 
> Index: t/apr-ext/threadmutex.t
> ===
> RCS file: /home/cvs/modperl-2.0/t/apr-ext/threadmutex.t,v
> retrieving revision 1.1
> diff -u -r1.1 threadmutex.t
> --- t/apr-ext/threadmutex.t 15 Jul 2004 15:30:24 -  1.1
> +++ t/apr-ext/threadmutex.t 11 Sep 2004 00:45:41 -
> @@ -4,6 +4,6 @@
> 
>   use TestAPRlib::threadmutex;
> 
> -plan tests => TestAPRlib::threadmutex::num_of_tests();
> +plan tests => TestAPRlib::threadmutex::num_of_tests(), need_threads;
> 
>   TestAPRlib::threadmutex::test();
> 

tested this with mod perl 1.99_16. All tests successfull ! 

I only had to increase APACHE_TEST_STARTUP_TIMEOUT in order to run 
ModPerl-Registry tests. On my machine we had to wait for 267 seconds for 
apache to start in ModPerl-Registry tests.

Thanks a lot.

--Mikhail

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-10 Thread Stas Bekman
Sorry, it was a different problem. This should fix it. Will commit that 
shortly.

Index: t/apr-ext/threadmutex.t
===
RCS file: /home/cvs/modperl-2.0/t/apr-ext/threadmutex.t,v
retrieving revision 1.1
diff -u -r1.1 threadmutex.t
--- t/apr-ext/threadmutex.t 15 Jul 2004 15:30:24 -  1.1
+++ t/apr-ext/threadmutex.t 11 Sep 2004 00:45:41 -
@@ -4,6 +4,6 @@
 use TestAPRlib::threadmutex;
-plan tests => TestAPRlib::threadmutex::num_of_tests();
+plan tests => TestAPRlib::threadmutex::num_of_tests(), need_threads;
 TestAPRlib::threadmutex::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
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-10 Thread MGorbunov
> > k714% cd /home/mgorb/mp-test/mod_perl-1.99_16/
> > find . | grep ThreadMutex
> > k714% find . | grep ThreadMutex
> > ./xs/APR/ThreadMutex
> > ./xs/APR/ThreadMutex/APR__ThreadMutex.h
> > ./docs/api/APR/ThreadMutex.pod
> > ./WrapXS/APR/ThreadMutex
> > ./WrapXS/APR/ThreadMutex/Makefile.PL
> > ./WrapXS/APR/ThreadMutex/ThreadMutex.xs
> > ./WrapXS/APR/ThreadMutex/ThreadMutex.pm
> > k714%
> 
> Mikhail, please try with the current cvs, this issue is now fixed.
> 
> 
Stas, picked up current cvs of modperl this morning, but still have the 
same result (I'm using make with fixed xs/APR/aprext/Makefile.PL ):

k714% make test TEST_FILES="t/apr-ext/threadmutex.t"
cd "src/modules/perl" && make -f Makefile.modperl
Skip blib/lib/Apache2/Apache/PerlSections.pm (unchanged)
Skip blib/lib/Apache2/ModPerl/TestRun.pm (unchanged)
Skip blib/lib/Apache2/Apache/BuildConfig.pm (unchanged)
Skip blib/lib/Apache2/ModPerl/Config.pm (unchanged)
Skip blib/lib/Apache2/ModPerl/FunctionMap.pm (unchanged)
Skip blib/lib/Apache2/ModPerl/Manifest.pm (unchanged)
Skip blib/lib/Apache2/Apache/PerlSections/Dump.pm (unchanged)
Skip blib/lib/Apache2/APR/XSLoader.pm (unchanged)
Skip blib/lib/Bundle/Apache2.pm (unchanged)
Skip blib/lib/Apache2/ModPerl/Code.pm (unchanged)
Skip blib/lib/Apache2/ModPerl/CScan.pm (unchanged)
Skip blib/lib/Apache2/Apache/Reload.pm (unchanged)
Skip blib/lib/Apache2/ModPerl/MM.pm (unchanged)
Skip blib/lib/Apache2/ModPerl/ParseSource.pm (unchanged)
Skip blib/lib/Apache2/Apache/ParseSource.pm (unchanged)
Skip blib/lib/Apache2/Apache/compat.pm (unchanged)
Skip blib/lib/Apache2.pm (unchanged)
Skip blib/lib/Apache2/Apache/SourceTables.pm (unchanged)
Skip blib/lib/Apache2/ModPerl/BuildOptions.pm (unchanged)
Skip blib/arch/Apache2/auto/Apache/typemap (unchanged)
Skip blib/lib/Apache2/ModPerl/MethodLookup.pm (unchanged)
Skip blib/lib/Apache2/ModPerl/WrapXS.pm (unchanged)
Skip blib/lib/Apache2/Apache/porting.pm (unchanged)
Skip blib/lib/Apache2/Apache/Build.pm (unchanged)
Skip blib/lib/Apache2/ModPerl/BuildMM.pm (unchanged)
Skip blib/lib/Apache2/ModPerl/MapUtil.pm (unchanged)
Skip blib/lib/Apache2/ModPerl/TypeMap.pm (unchanged)
Skip blib/lib/Apache2/ModPerl/TestReport.pm (unchanged)
Skip blib/lib/Apache2/mod_perl.pm (unchanged)
Skip blib/lib/Apache2/Apache/XSLoader.pm (unchanged)
Skip blib/lib/Apache2/ModPerl/StructureMap.pm (unchanged)
Skip blib/lib/Apache2/Apache/Status.pm (unchanged)
/usr/pkg/bin/perl -Iblib/arch/Apache2 -Iblib/lib/Apache2  t/TEST -clean
APACHE_TEST_GROUP= APACHE_TEST_HTTPD= APACHE_TEST_PORT= APACHE_TEST_USER= 
APACHE_TEST_APXS=  /usr/pkg/bin/perl -Iblib/arch/Apache2 
-Iblib/lib/Apache2  t/TEST -bugreport -verbose=0 t/apr-ext/threadmutex.t
/home/mgorb/httpd-2.0/bin/httpd -d /usr/home/mgorb/mp-test/modperl-2.0/t 
-f /usr/home/mgorb/mp-test/modperl-2.0/t/conf/httpd.conf -D APACHE2
using Apache/2.0.51-dev (prefork MPM)

waiting 120 seconds for server to start: ...[Fri Sep 
10 10:57:48 2004] [info] 27 Apache:: modules loaded
[Fri Sep 10 10:57:48 2004] [info] 7 APR:: modules loaded
[Fri Sep 10 10:57:48 2004] [info] base server + 24 vhosts ready to run 
tests

waiting 120 seconds for server to start: ok (waited 27 secs)
server localhost:8529 started
server localhost:8530 listening (TestModperl::merge)
server localhost:8531 listening (TestModperl::perl_options)
server localhost:8532 listening (TestModperl::setupenv)
server localhost:8533 listening (TestVhost::config)
server localhost:8534 listening (TestVhost::log)
server localhost:8535 listening (TestProtocol::echo_bbs)
server localhost:8536 listening (TestProtocol::echo_bbs2)
server localhost:8537 listening (TestProtocol::echo_block)
server localhost:8538 listening (TestProtocol::echo_filter)
server localhost:8539 listening (TestProtocol::echo_nonblock)
server localhost:8540 listening (TestProtocol::echo_timeout)
server localhost:8541 listening (TestProtocol::eliza)
server localhost:8542 listening (TestProtocol::pseudo_http)
server localhost:8543 listening (TestPreConnection::note)
server localhost:8544 listening (TestHooks::hookrun)
server localhost:8545 listening (TestHooks::stacked_handlers2)
server localhost:8546 listening (TestHooks::startup)
server localhost:8547 listening (TestFilter::both_str_con_add)
server localhost:8548 listening (TestFilter::in_bbs_inject_header)
server localhost:8549 listening (TestFilter::in_bbs_msg)
server localhost:8550 listening (TestFilter::in_str_msg)
server localhost:8551 listening (TestDirective::perlmodule)
server localhost:8552 listening (TestDirective::perlrequire)
server localhost:8553 listening (TestPerl::ithreads)
server localhost:8554 listening (TestDirective::perlloadmodule3)
server localhost:8555 listening (TestDirective::perlloadmodule4)
server localhost:8556 listening (TestDirective::perlloadmodule5)
server localhost:8557 listening (TestDirective::perlloadmodule6)
t/apr-ext/threadmutexCan't locate APR/ThreadMutex.pm in @INC (@INC 
contains: /usr/home/mgorb/mp-test/modperl-2.0/Apache-Test 
/us

Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-09 Thread Stas Bekman
[EMAIL PROTECTED] wrote:
Failed Test Stat Wstat Total Fail  Failed  List of Failed

---
t/apr-ext/threadmutex.t2   512 36 200.00%  1-3

Can't locate APR/ThreadMutex.pm in @INC (@INC contains: 
/usr/home/mgorb/mp-test/mod_perl-1.99_16/Apache-Test 
/usr/home/mgorb/mp-test/mod_perl-1.99_16/blib/lib 
/usr/home/mgorb/mp-test/mod_perl-1.99_16/blib/arch 
/usr/home/mgorb/mp-test/mod_perl-1.99_16/blib/lib/Apache2 
/usr/home/mgorb/mp-test/mod_perl-1.99_16/blib/arch/Apache2 
/usr/home/mgorb/mp-test/mod_perl-1.99_16/lib 
/usr/home/mgorb/mp-test/mod_perl-1.99_16/Apache-Test/lib 
/usr/home/mgorb/mp-test/mod_perl-1.99_16/t/lib blib/arch/Apache2 
blib/lib/Apache2 /usr/pkg/lib/perl5/site_perl/5.8.4/i386-netbsd 
/usr/pkg/lib/perl5/site_perl/5.8.4/i386-netbsd 
/usr/pkg/lib/perl5/site_perl/5.8.4 
/usr/pkg/lib/perl5/site_perl/5.8.4/i386-netbsd 
/usr/pkg/lib/perl5/site_perl/5.8.4 /usr/pkg/lib/perl5/site_perl 
/usr/pkg/lib/perl5/5.8.4/i386-netbsd 
/usr/pkg/lib/perl5/5.8.4/i386-netbsd 

/usr/pkg/lib/perl5/5.8.4 . 
/usr/pkg/lib/perl5/site_perl/5.8.4/i386-netbsd 

/usr/pkg/lib/perl5/site_perl/5.8.4 /usr/pkg/lib/perl5/site_perl 
/usr/pkg/lib/perl5/5.8.4/i386-netbsd /usr/pkg/lib/perl5/5.8.4 .) at 

/usr/home/mgorb/mp-test/mod_perl-1.99_16/t/lib/TestAPRlib/threadmutex.pm 

line 18.
Please do:
cd /home/mgorb/mp-test/mod_perl-1.99_16/
find . | grep ThreadMutex
and post it here

k714% cd /home/mgorb/mp-test/mod_perl-1.99_16/
find . | grep ThreadMutex
k714% find . | grep ThreadMutex
./xs/APR/ThreadMutex
./xs/APR/ThreadMutex/APR__ThreadMutex.h
./docs/api/APR/ThreadMutex.pod
./WrapXS/APR/ThreadMutex
./WrapXS/APR/ThreadMutex/Makefile.PL
./WrapXS/APR/ThreadMutex/ThreadMutex.xs
./WrapXS/APR/ThreadMutex/ThreadMutex.pm
k714%
Mikhail, please try with the current cvs, this issue is now fixed.
--
__
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
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-09 Thread MGorbunov
> > 
> > k714% ./nonblock
> > found port: 52984
> > O_NONBLOCK is not set in the child.
> 
> This is rather confusing, since it means that apparently the test is
> working OK, and O_NONBLOCK is *not* inherited across accept() on NetBSD,
> which contradicts the behaviour you are seeing.
> 
same on netbsd-1.6.1

k133% ./nonblock
found port: 65534
O_NONBLOCK is not set in the child.
k133%


-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



RE: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-09 Thread Fisher, James L.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 09, 2004 3:38 AM
To: Joe Orton
Cc: [EMAIL PROTECTED]; Ken Simpson; [EMAIL PROTECTED]; Stas
Bekman
Subject: Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make
test errors

> I wasn't surprised this fails on OpenBSD but I am surprised it fails
on
> NetBSD.  Can you compile and run:
> 
> http://www.apache.org/~jorton/nonblock.c
> 
> and post the output.  (it would be useful if you could do this on
> OpenBSD too, Ken, for verification)
> 

FWIW, on OpenBSD 3.{1,3,4,5}-stable, the output of the above program is:
found port: #
connect: Invalid argument
where # is a non-repeating random port number.  (Same for OpenBSD
2.8.)


--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-09 Thread Joe Orton
On Thu, Sep 09, 2004 at 11:38:15AM +0400, [EMAIL PROTECTED] wrote:
> > I wasn't surprised this fails on OpenBSD but I am surprised it fails on
> > NetBSD.  Can you compile and run:
> > 
> > http://www.apache.org/~jorton/nonblock.c
> > 
> > and post the output.  (it would be useful if you could do this on
> > OpenBSD too, Ken, for verification)
> > 
> sorry for the dealy -- was away from my PC for a day 
> 
> k714% ./nonblock
> found port: 52984
> O_NONBLOCK is not set in the child.

This is rather confusing, since it means that apparently the test is
working OK, and O_NONBLOCK is *not* inherited across accept() on NetBSD,
which contradicts the behaviour you are seeing.


-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-09 Thread Joe Orton
On Tue, Sep 07, 2004 at 08:25:03AM -0700, Ken Simpson wrote:
> > I wasn't surprised this fails on OpenBSD but I am surprised it fails on
> > NetBSD.  Can you compile and run:
> > 
> > http://www.apache.org/~jorton/nonblock.c
> > 
> > and post the output.  (it would be useful if you could do this on
> > OpenBSD too, Ken, for verification)
> 
> -bash-2.05b$ ./nonblock
> connect: Invalid argument

Thanks, I had not remembered the issue correctly...  The problem is that
getsockname() does not return the real port number for a socket bound to
an ephemeral port on OpenBSD.  So the apr_hints.m4 change is correct for
this issue since the autoconf test can't work.

joe

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-09 Thread MGorbunov
> I wasn't surprised this fails on OpenBSD but I am surprised it fails on
> NetBSD.  Can you compile and run:
> 
> http://www.apache.org/~jorton/nonblock.c
> 
> and post the output.  (it would be useful if you could do this on
> OpenBSD too, Ken, for verification)
> 
sorry for the dealy -- was away from my PC for a day 

k714% ./nonblock
found port: 52984
O_NONBLOCK is not set in the child.
k714%

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-09 Thread MGorbunov
> 
> > Failed Test Stat Wstat Total Fail  Failed  List of Failed
> > 
> 
---
> > t/apr-ext/threadmutex.t2   512 36 200.00%  1-3
> 
> > Can't locate APR/ThreadMutex.pm in @INC (@INC contains: 
> > /usr/home/mgorb/mp-test/mod_perl-1.99_16/Apache-Test 
> > /usr/home/mgorb/mp-test/mod_perl-1.99_16/blib/lib 
> > /usr/home/mgorb/mp-test/mod_perl-1.99_16/blib/arch 
> > /usr/home/mgorb/mp-test/mod_perl-1.99_16/blib/lib/Apache2 
> > /usr/home/mgorb/mp-test/mod_perl-1.99_16/blib/arch/Apache2 
> > /usr/home/mgorb/mp-test/mod_perl-1.99_16/lib 
> > /usr/home/mgorb/mp-test/mod_perl-1.99_16/Apache-Test/lib 
> > /usr/home/mgorb/mp-test/mod_perl-1.99_16/t/lib blib/arch/Apache2 
> > blib/lib/Apache2 /usr/pkg/lib/perl5/site_perl/5.8.4/i386-netbsd 
> > /usr/pkg/lib/perl5/site_perl/5.8.4/i386-netbsd 
> > /usr/pkg/lib/perl5/site_perl/5.8.4 
> > /usr/pkg/lib/perl5/site_perl/5.8.4/i386-netbsd 
> > /usr/pkg/lib/perl5/site_perl/5.8.4 /usr/pkg/lib/perl5/site_perl 
> > /usr/pkg/lib/perl5/5.8.4/i386-netbsd 
/usr/pkg/lib/perl5/5.8.4/i386-netbsd 
> > /usr/pkg/lib/perl5/5.8.4 . 
/usr/pkg/lib/perl5/site_perl/5.8.4/i386-netbsd 
> > /usr/pkg/lib/perl5/site_perl/5.8.4 /usr/pkg/lib/perl5/site_perl 
> > /usr/pkg/lib/perl5/5.8.4/i386-netbsd /usr/pkg/lib/perl5/5.8.4 .) at 
> > 
/usr/home/mgorb/mp-test/mod_perl-1.99_16/t/lib/TestAPRlib/threadmutex.pm 
> > line 18.
> 
> Please do:
> 
> cd /home/mgorb/mp-test/mod_perl-1.99_16/
> find . | grep ThreadMutex
> 
> and post it here
> 

k714% cd /home/mgorb/mp-test/mod_perl-1.99_16/
find . | grep ThreadMutex
k714% find . | grep ThreadMutex
./xs/APR/ThreadMutex
./xs/APR/ThreadMutex/APR__ThreadMutex.h
./docs/api/APR/ThreadMutex.pod
./WrapXS/APR/ThreadMutex
./WrapXS/APR/ThreadMutex/Makefile.PL
./WrapXS/APR/ThreadMutex/ThreadMutex.xs
./WrapXS/APR/ThreadMutex/ThreadMutex.pm
k714%

--Mikhail

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-07 Thread Joe Orton
On Tue, Sep 07, 2004 at 03:49:59PM -0400, Stas Bekman wrote:
> Ken Simpson wrote:
> >>>Ken, Stas, done as advised. The only test which is failing now (and was 
> >>>failing before) is:
> >>
> >>Mikhail, Ken, please submit that patch to dev /at/ apr.apache.org
> >>http://apr.apache.org/. Hopefully it'll get into 2.0.51 release. Or may 
> >>be it's too late.
> >
> >
> >The patch has already gone into APR CVS.
> 
> I thought that patch was only for OpenBSD. Is that not the case?

That's correct, this is currently fixed only for OpenBSD, and I'd prefer
to see the output of the test case on NetBSD to see why it fails there
before proceeding to use the same fix for that platform.

joe

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-07 Thread Stas Bekman
Ken Simpson wrote:
Ken, Stas, done as advised. The only test which is failing now (and was 
failing before) is:
Mikhail, Ken, please submit that patch to dev /at/ apr.apache.org
http://apr.apache.org/. Hopefully it'll get into 2.0.51 release. Or may be 
it's too late.

The patch has already gone into APR CVS.
I thought that patch was only for OpenBSD. Is that not the case?
--
__
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
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-07 Thread Ken Simpson
> >Ken, Stas, done as advised. The only test which is failing now (and was 
> >failing before) is:
> 
> Mikhail, Ken, please submit that patch to dev /at/ apr.apache.org
> http://apr.apache.org/. Hopefully it'll get into 2.0.51 release. Or may be 
> it's too late.

The patch has already gone into APR CVS.

TTUL
Ken

-- 
MailChannels: Imagine no more spam

--
http://www.mailchannels.com
MailChannels Corporation
Suite 1600, 1188 West Georgia St.
Vancouver, BC, Canada

Ken Simpson, CEO
+1-604-729-1741

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-07 Thread Ken Simpson
> I wasn't surprised this fails on OpenBSD but I am surprised it fails on
> NetBSD.  Can you compile and run:
> 
> http://www.apache.org/~jorton/nonblock.c
> 
> and post the output.  (it would be useful if you could do this on
> OpenBSD too, Ken, for verification)

-bash-2.05b$ ./nonblock
connect: Invalid argument

-- 
MailChannels: Imagine no more spam

--
http://www.mailchannels.com
MailChannels Corporation
Suite 1600, 1188 West Georgia St.
Vancouver, BC, Canada

Ken Simpson, CEO
+1-604-729-1741

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-07 Thread Joe Orton
On Tue, Sep 07, 2004 at 08:58:26AM -0400, Stas Bekman wrote:
> [EMAIL PROTECTED] wrote:
> >>I'd put my $5.00 on APR being the cause of this problem. Mikhail, you
> >>will probably need to patch APR when you build Apache. Try this patch,
> >>which I am guessing will work on NetBSD:

I wasn't surprised this fails on OpenBSD but I am surprised it fails on
NetBSD.  Can you compile and run:

http://www.apache.org/~jorton/nonblock.c

and post the output.  (it would be useful if you could do this on
OpenBSD too, Ken, for verification)

joe

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-07 Thread Stas Bekman
[EMAIL PROTECTED] wrote:
I'd put my $5.00 on APR being the cause of this problem. Mikhail, you
will probably need to patch APR when you build Apache. Try this patch,
which I am guessing will work on NetBSD:
Index: build/apr_hints.m4 
===
RCS file: ./srclib/apr/build/apr_hints.m4,v
retrieving revision 1.68
diff -u -r1.68 apr_hints.m4
--- build/apr_hints.m4  12 Aug 2004 13:44:29 -  1.68
+++ build/apr_hints.m4  27 Aug 2004 06:12:04 -
@@  -131,6 +131,8 @@
;;
*-openbsd*)
APR_ADDTO(CPPFLAGS, [-D_POSIX_THREADS])
+APR_SETIFNULL(ac_cv_o_nonblock_inherited, [yes])
;;
*-netbsd*)
APR_ADDTO(CPPFLAGS, [-DNETBSD])
+APR_SETIFNULL(ac_cv_o_nonblock_inherited, [yes])

The problem is that the APR library thinks a socket is blocking by
default -- when in fact the reverse is true on some platforms (on
OpenBSD, for example).
After applying this patch to your Apache, run ./buildconf to rebuild
the configure script. Then run ./configure, make, make install.
Let me know if it works for you and cc the Apache APR dev list.

Ken, Stas, done as advised. The only test which is failing now (and was 
failing before) is:
Mikhail, Ken, please submit that patch to dev /at/ apr.apache.org
http://apr.apache.org/. Hopefully it'll get into 2.0.51 release. Or may be 
it's too late.

Failed Test Stat Wstat Total Fail  Failed  List of Failed
---
t/apr-ext/threadmutex.t2   512 36 200.00%  1-3

Can't locate APR/ThreadMutex.pm in @INC (@INC contains: 
/usr/home/mgorb/mp-test/mod_perl-1.99_16/Apache-Test 
/usr/home/mgorb/mp-test/mod_perl-1.99_16/blib/lib 
/usr/home/mgorb/mp-test/mod_perl-1.99_16/blib/arch 
/usr/home/mgorb/mp-test/mod_perl-1.99_16/blib/lib/Apache2 
/usr/home/mgorb/mp-test/mod_perl-1.99_16/blib/arch/Apache2 
/usr/home/mgorb/mp-test/mod_perl-1.99_16/lib 
/usr/home/mgorb/mp-test/mod_perl-1.99_16/Apache-Test/lib 
/usr/home/mgorb/mp-test/mod_perl-1.99_16/t/lib blib/arch/Apache2 
blib/lib/Apache2 /usr/pkg/lib/perl5/site_perl/5.8.4/i386-netbsd 
/usr/pkg/lib/perl5/site_perl/5.8.4/i386-netbsd 
/usr/pkg/lib/perl5/site_perl/5.8.4 
/usr/pkg/lib/perl5/site_perl/5.8.4/i386-netbsd 
/usr/pkg/lib/perl5/site_perl/5.8.4 /usr/pkg/lib/perl5/site_perl 
/usr/pkg/lib/perl5/5.8.4/i386-netbsd /usr/pkg/lib/perl5/5.8.4/i386-netbsd 
/usr/pkg/lib/perl5/5.8.4 . /usr/pkg/lib/perl5/site_perl/5.8.4/i386-netbsd 
/usr/pkg/lib/perl5/site_perl/5.8.4 /usr/pkg/lib/perl5/site_perl 
/usr/pkg/lib/perl5/5.8.4/i386-netbsd /usr/pkg/lib/perl5/5.8.4 .) at 
/usr/home/mgorb/mp-test/mod_perl-1.99_16/t/lib/TestAPRlib/threadmutex.pm 
line 18.
Please do:
cd /home/mgorb/mp-test/mod_perl-1.99_16/
find . | grep ThreadMutex
and post it here
--
__
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
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-07 Thread MGorbunov
> I'd put my $5.00 on APR being the cause of this problem. Mikhail, you
> will probably need to patch APR when you build Apache. Try this patch,
> which I am guessing will work on NetBSD:
> 
> Index: build/apr_hints.m4 
> ===
> RCS file: ./srclib/apr/build/apr_hints.m4,v
> retrieving revision 1.68
> diff -u -r1.68 apr_hints.m4
> --- build/apr_hints.m4  12 Aug 2004 13:44:29 -  1.68
> +++ build/apr_hints.m4  27 Aug 2004 06:12:04 -
> @@  -131,6 +131,8 @@
>  ;;
>  *-openbsd*)
>  APR_ADDTO(CPPFLAGS, [-D_POSIX_THREADS])
> +APR_SETIFNULL(ac_cv_o_nonblock_inherited, [yes])
>  ;;
>  *-netbsd*)
>  APR_ADDTO(CPPFLAGS, [-DNETBSD])
> +APR_SETIFNULL(ac_cv_o_nonblock_inherited, [yes])
> 
> The problem is that the APR library thinks a socket is blocking by
> default -- when in fact the reverse is true on some platforms (on
> OpenBSD, for example).
> 
> After applying this patch to your Apache, run ./buildconf to rebuild
> the configure script. Then run ./configure, make, make install.
> Let me know if it works for you and cc the Apache APR dev list.

Ken, Stas, done as advised. The only test which is failing now (and was 
failing before) is:

Failed Test Stat Wstat Total Fail  Failed  List of Failed
---
t/apr-ext/threadmutex.t2   512 36 200.00%  1-3
15 tests skipped.
Failed 1/209 test scripts, 99.52% okay. 3/3258 subtests failed, 99.91% 
okay.

k714% make test TEST_VERBOSE=1 TEST_FILES="t/apr-ext/threadmutex.t"
cd "src/modules/perl" && make -f Makefile.modperl
/usr/pkg/bin/perl -Iblib/arch/Apache2 -Iblib/lib/Apache2  t/TEST -clean
APACHE_TEST_GROUP= APACHE_TEST_HTTPD= APACHE_TEST_PORT= APACHE_TEST_USER= 
APACHE_TEST_APXS=  /usr/pkg/bin/perl -Iblib/arch/Apache2 
-Iblib/lib/Apache2  t/TEST -bugreport -verbose=1 t/apr-ext/threadmutex.t
/home/mgorb/httpd-2.0/bin/httpd -d 
/usr/home/mgorb/mp-test/mod_perl-1.99_16/t -f 
/usr/home/mgorb/mp-test/mod_perl-1.99_16/t/conf/httpd.conf -D APACHE2
using Apache/2.0.51-dev (prefork MPM)

waiting 120 seconds for server to start: .[Tue Sep 07 11:21:14 2004] 
[info] 27 Apache:: modules loaded
[Tue Sep 07 11:21:14 2004] [info] 7 APR:: modules loaded
[Tue Sep 07 11:21:14 2004] [info] base server + 20 vhosts ready to run 
tests
...
waiting 120 seconds for server to start: ok (waited 7 secs)
server localhost:8529 started
server localhost:8530 listening (TestModperl::setupenv)
server localhost:8531 listening (TestModperl::merge)
server localhost:8532 listening (TestModperl::perl_options)
server localhost:8533 listening (TestVhost::config)
server localhost:8534 listening (TestProtocol::pseudo_http)
server localhost:8535 listening (TestProtocol::echo_filter)
server localhost:8536 listening (TestProtocol::echo_bbs2)
server localhost:8537 listening (TestProtocol::echo_bbs)
server localhost:8538 listening (TestProtocol::echo_timeout)
server localhost:8539 listening (TestProtocol::echo_block)
server localhost:8540 listening (TestPreConnection::note)
server localhost:8541 listening (TestHooks::startup)
server localhost:8542 listening (TestHooks::stacked_handlers2)
server localhost:8543 listening (TestHooks::hookrun)
server localhost:8544 listening (TestFilter::in_bbs_msg)
server localhost:8545 listening (TestFilter::both_str_con_add)
server localhost:8546 listening (TestFilter::in_bbs_inject_header)
server localhost:8547 listening (TestFilter::in_str_msg)
server localhost:8548 listening (TestDirective::perlrequire)
server localhost:8549 listening (TestDirective::perlmodule)
server localhost:8550 listening (TestDirective::perlloadmodule4)
server localhost:8551 listening (TestDirective::perlloadmodule5)
server localhost:8552 listening (TestDirective::perlloadmodule3)
server localhost:8553 listening (TestDirective::perlloadmodule6)
t/apr-ext/threadmutex1..3
# Running under perl version 5.008004 for netbsd
# Current time local: Tue Sep  7 11:21:17 2004
# Current time GMT:   Tue Sep  7 07:21:17 2004
# Using Test.pm version 1.24
# Using Apache/Test.pm version 1.14
Can't locate APR/ThreadMutex.pm in @INC (@INC contains: 
/usr/home/mgorb/mp-test/mod_perl-1.99_16/Apache-Test 
/usr/home/mgorb/mp-test/mod_perl-1.99_16/blib/lib 
/usr/home/mgorb/mp-test/mod_perl-1.99_16/blib/arch 
/usr/home/mgorb/mp-test/mod_perl-1.99_16/blib/lib/Apache2 
/usr/home/mgorb/mp-test/mod_perl-1.99_16/blib/arch/Apache2 
/usr/home/mgorb/mp-test/mod_perl-1.99_16/lib 
/usr/home/mgorb/mp-test/mod_perl-1.99_16/Apache-Test/lib 
/usr/home/mgorb/mp-test/mod_perl-1.99_16/t/lib blib/arch/Apache2 
blib/lib/Apache2 /usr/pkg/lib/perl5/site_perl/5.8.4/i386-netbsd 
/usr/pkg/lib/perl5/site_perl/5.8.4/i386-netbsd 
/usr/pkg/lib/perl5/site_perl/5.8.4 
/usr/pkg/lib/perl5/site_perl/5.8.4/i386-netbsd 
/usr/pkg/lib/perl5/site_perl/5.8.4 /usr/pkg/lib/perl5/site_perl 
/usr/pkg/lib/perl5/5.8.4/i386-netbsd /usr/pkg/lib/perl5/5.8.4/i386-netbsd 
/

Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-06 Thread Ken Simpson
> Ken, do you think this is somehow related to your recent patch in apr? 
> These tests didn't break before on NetBSD, is that correct, Mikhail?

I'd put my $5.00 on APR being the cause of this problem. Mikhail, you
will probably need to patch APR when you build Apache. Try this patch,
which I am guessing will work on NetBSD:

Index: build/apr_hints.m4   
===
RCS file: ./srclib/apr/build/apr_hints.m4,v
retrieving revision 1.68
diff -u -r1.68 apr_hints.m4
--- build/apr_hints.m4  12 Aug 2004 13:44:29 -  1.68
+++ build/apr_hints.m4  27 Aug 2004 06:12:04 -
@@  -131,6 +131,8 @@
 ;;
 *-openbsd*)
 APR_ADDTO(CPPFLAGS, [-D_POSIX_THREADS])
+APR_SETIFNULL(ac_cv_o_nonblock_inherited, [yes])
 ;;
 *-netbsd*)
 APR_ADDTO(CPPFLAGS, [-DNETBSD])
+APR_SETIFNULL(ac_cv_o_nonblock_inherited, [yes])

The problem is that the APR library thinks a socket is blocking by
default -- when in fact the reverse is true on some platforms (on
OpenBSD, for example).

After applying this patch to your Apache, run ./buildconf to rebuild
the configure script. Then run ./configure, make, make install.
Let me know if it works for you and cc the Apache APR dev list.

TTUL
Ken

-- 
MailChannels: Imagine no more spam

--
http://www.mailchannels.com
MailChannels Corporation
Suite 1600, 1188 West Georgia St.
Vancouver, BC, Canada

Ken Simpson, CEO
+1-604-729-1741

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-06 Thread Stas Bekman
[EMAIL PROTECTED] wrote:
Tried to build mod_perl-1.99_16 on NetBSD-1.6.2 with perl 5.8.4, 
httpd-2.0.51-dev (latest snapshot). 

mod_perl make test fails. here are the details:
Failed Test Stat Wstat Total Fail  Failed  List of Failed
---
t/filter/both_str_con_add.t43  75.00%  2-4
t/protocol/echo_block.t32  66.67%  2-3
t/protocol/echo_filter.t   32  66.67%  2-3
t/protocol/pseudo_http.t  139  69.23%  3-8 11-13

[Mon Sep 06 13:53:45 2004] [error] APR::Socket::recv: (35) Resource 
temporarily unavailable at 
/usr/home/mgorb/mp-test/mod_perl-1.99_16/t/protocol/TestProtocol/echo_block.pm 
line 34
Ken, do you think this is somehow related to your recent patch in apr? 
These tests didn't break before on NetBSD, is that correct, Mikhail?

[Mon Sep 06 13:55:55 2004] [notice] child pid 26182 exit signal 
Segmentation fault (11), possible coredump in 
/usr/home/mgorb/mp-test/mod_perl-1.99_16/t
Mikhail, you've got a segfault. Any chance you can setup your system to 
let the core dumped and get the backtrace? or run with t/TEST -debug and 
get the trace this way?

--
__
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
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html