[mp2] netbsd 1.6.2, perl 5.8.4, apache 2.0.50, mod_perl 1.99_14 make test fails

2004-07-22 Thread MGorbunov
Hi everybody,

NetBSD-1.6.2, Apache-2.0.50, perl-5.8.4, mod_perl-1.99_14, standard istall 
from pkgsrc:

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

k714% sudo make test TEST_VERBOSE=1 TEST_FILES="filter/both_str_con_add.t 
protocol/echo_block.t protocol/echo_filter.t"


===> *** No /usr/pkgsrc/distfiles/pkg-vulnerabilities file found,
===> *** skipping vulnerability checks. To fix, install
===> *** the pkgsrc/security/audit-packages package and run
===> *** '/usr/pkg/sbin/download-vulnerability-list'.
===> Testing for ap2-perl-1.99.14
cd "src/modules/perl" && /usr/bin/make -f Makefile.modperl
/usr/pkg/bin/perl -Iblib/arch -Iblib/lib  t/TEST -clean
APACHE_TEST_GROUP= APACHE_TEST_HTTPD= APACHE_TEST_PORT= APACHE_TEST_USER= 
APACHE_TEST_APXS=  /usr/pkg/bin/perl -Iblib/arch -Iblib/lib  t/TEST 
-bugreport -verbose=1 filter/both_str_con_add.t protocol/echo_block.t 
protocol/echo_filter.t
[warning] root mode: changing the files ownership to 'nobody' (32767:39)
[warning] testing whether 'nobody' is able to -rwx 
/usr/pkgsrc/www/ap2-perl/work/mod_perl-1.99_14/t
"/usr/pkg/bin/perl" 
-Mlib=/usr/pkgsrc/www/ap2-perl/work/mod_perl-1.99_14/Apache-Test/lib 
-MApache::TestRun -e 'eval { Apache::TestRun::run_root_fs_test(32767, 39, 
q[/usr/pkgsrc/www/ap2-perl/work/mod_perl-1.99_14/t]) }';


[warning] result: OK
[warning] the client side drops 'root' permissions and becomes 'nobody'
/usr/pkg/sbin/httpd -d /usr/pkgsrc/www/ap2-perl/work/mod_perl-1.99_14/t -f 
/usr/pkgsrc/www/ap2-perl/work/mod_perl-1.99_14/t/conf/httpd.conf -D 
APACHE2 
using Apache/2.0.50 (prefork MPM)

waiting 120 seconds for server to start: ..[Wed Jul 21 14:06:17 2004] 
[info] 28 Apache:: modules loaded
[Wed Jul 21 14:06:17 2004] [info] 5 APR:: modules loaded
[Wed Jul 21 14:06:17 2004] [info] base server + 17 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::merge)
server localhost:8531 listening (TestModperl::perl_options)
server localhost:8532 listening (TestModperl::setupenv)
server localhost:8533 listening (TestVhost::config)
server localhost:8534 listening (TestProtocol::echo_filter)
server localhost:8535 listening (TestProtocol::echo_timeout)
server localhost:8536 listening (TestProtocol::echo_block)
server localhost:8537 listening (TestPreConnection::note)
server localhost:8538 listening (TestHooks::stacked_handlers2)
server localhost:8539 listening (TestHooks::startup)
server localhost:8540 listening (TestFilter::in_bbs_inject_header)
server localhost:8541 listening (TestFilter::in_str_msg)
server localhost:8542 listening (TestFilter::both_str_con_add)
server localhost:8543 listening (TestFilter::in_bbs_msg)
server localhost:8544 listening (TestDirective::perlmodule)
server localhost:8545 listening (TestDirective::perlrequire)
server localhost:8546 listening (TestPerl::ithreads)
server localhost:8547 listening (TestDirective::perlloadmodule4)
server localhost:8548 listening (TestDirective::perlloadmodule5)
server localhost:8549 listening (TestDirective::perlloadmodule3)
server localhost:8550 listening (TestDirective::perlloadmodule6)
t/filter/both_str_con_add1..4
# Running under perl version 5.008004 for netbsd
# Current time local: Wed Jul 21 14:06:24 2004
# Current time GMT:   Wed Jul 21 10:06:24 2004
# Using Test.pm version 1.24
ok 1
# expected: mod_perl
# received: mod_perl
ok 2
# expected: 2.0
# received: 
not ok 3
# Failed test 3 in t/filter/both_str_con_add.t at line 22 fail #2
#  t/filter/both_str_con_add.t line 22 is: ok t_cmp($str, $reply);
# expected: rules
# received: 
not ok 4
# Failed test 4 in t/filter/both_str_con_add.t at line 22 fail #3
FAILED tests 3-4
Failed 2/4 tests, 50.00% okay
t/protocol/echo_block1..3
# Running under perl version 5.008004 for netbsd
# Current time local: Wed Jul 21 14:06:25 2004
# Current time GMT:   Wed Jul 21 10:06:25 2004
# Using Test.pm version 1.24
ok 1
# expected: hello
# received: 
not ok 2
# Failed test 2 in t/protocol/echo_block.t at line 19
#  t/protocol/echo_block.t line 19 is: ok t_cmp($_, $reply);
# expected: world
# received: 
not ok 3
# Failed test 3 in t/protocol/echo_block.t at line 19 fail #2
FAILED tests 2-3
Failed 2/3 tests, 33.33% okay
t/protocol/echo_filter...1..3
# Running under perl version 5.008004 for netbsd
# Current time local: Wed Jul 21 14:06:26 2004
# Current time GMT:   Wed Jul 21 10:06:26 2004
# Using Test.pm version 1.24
ok 1
# expected: hello
# received: 
not ok 2
# Failed test 2 in t/protocol/echo_filter.t at line 19
#  t/protocol/echo_filter.t line 19 is: ok t_cmp($_, $reply);
# expected: world
# received: 
not ok 3

[mp2] NetBSD-1.6.2 modperl snapshot build error

2004-07-27 Thread MGorbunov
Hi,

NetBSD 1.6.2
gcc version 2.95.3 20010315 (release) (NetBSD nb3)
perl-5.8.4

trying to build snapshots:

apr-iconv_20040726101238.tar.gz 
apr-util_20040726101244.tar.gz 
apr_20040726101233.tar.gz 
httpd-2.0_20040726101830.tar.gz
modperl-2.0_20040727043018.tar.gz

Apache builds and runs OK, but modperl doesn't:

cd httpd-2.0
./configure --prefix=$HOME/httpd-2.1
make
make install

cd ../modper-2.0
perl Makefile.PL MP_AP_PREFIX=$HOME/httpd-2.1 MP_INST_APACHE2=1
make
...
LD_RUN_PATH="" gcc  --whole-archive -shared  -Wl,-R/usr/pkg/lib 
-L/usr/pkg/lib PerlIO.o modperl_apr_perlio.o -Wl,-R/usr/pkg/lib 
-L/usr/pkg/lib -o ../../../blib/arch/Apache2/auto/APR/PerlIO/PerlIO.so 
-L/usr/pkg/lib/perl5/5.8.4/i386-netbsd/CORE 
-Wl,-R/usr/pkg/lib/perl5/5.8.4/i386-netbsd/CORE 
-Wl,-R/usr/pkg/lib/perl5/5.8.4/i386-netbsd/CORE -lperl
chmod 755 ../../../blib/arch/Apache2/auto/APR/PerlIO/PerlIO.so
cp PerlIO.bs ../../../blib/arch/Apache2/auto/APR/PerlIO/PerlIO.bs
chmod 644 ../../../blib/arch/Apache2/auto/APR/PerlIO/PerlIO.bs
make: don't know how to make dynamic. Stop

make: stopped in /usr/home/mgorb/httpd-test/modperl-2.0/xs/APR/aprext
*** Error code 2

Stop.
make: stopped in /usr/home/mgorb/httpd-test/modperl-2.0/xs/APR
*** Error code 1

Stop.
make: stopped in /usr/home/mgorb/httpd-test/modperl-2.0/xs
*** Error code 1

Stop.
make: stopped in /home/mgorb/httpd-test/modperl-2.0

Mikhail Gorbunov

-- 
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 snapshot build error

2004-07-28 Thread MGorbunov
Stas Bekman <[EMAIL PROTECTED]> wrote on 07/27/2004 08:08:42 PM:


> Are you familiar with NetBSD's compiler/linker, Mikhail? 

Unfortunately not :(

The only thing I can add is that I've tried to build mod_perl-1.99-14 in 
the same circumstances, i.e. not using NetBSD pkgsrc system and with 
httpd-2.0_20040726101830 snapshot. It builds OK, but some tests fail:

Failed Test Stat Wstat Total Fail  Failed  List of Failed
---
t/apr-ext/uuid.t 255 65280 36 200.00%  1-3
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
14 tests skipped.
Failed 4/178 test scripts, 97.75% okay. 10/1027 subtests failed, 99.03% 
okay.

Regards,

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 snapshot build error

2004-07-29 Thread MGorbunov
> Yes, thank you, we know that. Those test are fixed in the current cvs. 
> Could please you try that?
> http://perl.apache.org/download/source.
> html#Development_mod_perl_2_0_Source_Distribution
> 
1. Tried modperl-2.0_20040729042917.tar.gz. the build stops again :

make: don't know how to make dynamic. Stop

make: stopped in /usr/home/mgorb/httpd-test/modperl-2.0/xs/APR/aprext
*** Error code 2

2. changed to that directory, tried make :

make: don't know how to make static. Stop

make: stopped in /usr/home/mgorb/httpd-test/modperl-2.0/xs/APR/aprext

3. grepped through the Makefile, maybe the problem is with:

.PHONY: all config static dynamic test linkext manifest

There is no targets for static, dynamic here and no includes for other 
files.

-- 
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 snapshot build error

2004-07-29 Thread MGorbunov
> 
> The xs/APR/aprext/ stuff is only needed on certain platforms
> (Win32, perhaps AIX) for which the way the APR::* modules
> are built by default doesn't work (this is related to having
> APR::* usable outside a mod_perl environment). I'm not sure
> why it's trying to build something here - on linux, for
> example, it just goes into that directory, sees there's
> nothing to do, and then moves on. That'll have to be fixed;
> in the meantime, in the Makefile.PL of xs/APR/aprext/
> there's a couple of lines:
>my @skip = qw(dynamic test};
>push @skip, q{static} unless Apache::Build::WIN32;
> Could you try commenting these out to see if that helps?

commented out the above lines and line # 27 as well:

#SKIP  =>  [ @skip ] ,

as well, now modperl build OK, but tests give the errors below.

snapshots used:
---
apr-iconv_20040729101255.tar.gz httpd-2.0_20040729101922.tar.gz
apr-util_20040729101259.tar.gz  modperl-2.0_20040729042917.tar.gz
apr_20040729101246.tar.gz 

errors:
---
Failed Test Stat Wstat Total Fail  Failed  List of Failed
---
t/api/custom_response.t41  25.00%  4
t/apr-ext/base64.t   255 65280??   ??   %  ??
t/apr-ext/bucket.t   255 65280??   ??   %  ??
t/apr-ext/date.t 255 65280??   ??   %  ??
t/apr-ext/finfo.t255 65280??   ??   %  ??
t/apr-ext/perlio.t   255 65280??   ??   %  ??
t/apr-ext/pool.t 255 65280??   ??   %  ??
t/apr-ext/string.t   255 65280??   ??   %  ??
t/apr-ext/table.t255 65280??   ??   %  ??
t/apr-ext/threadmutex.t  255 65280??   ??   %  ??
t/apr-ext/uri.t  255 65280??   ??   %  ??
t/apr-ext/util.t 255 65280??   ??   %  ??
t/apr-ext/uuid.t 255 65280??   ??   %  ??
t/apr/constants.t255 65280??   ??   %  ??
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
16 tests skipped.
Failed 18/202 test scripts, 91.09% okay. 17/1167 subtests failed, 98.54% 
okay.

...

-- 
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 snapshot build error

2004-08-06 Thread MGorbunov
> So Mikhail, please use 
> cvs as explained here:
> http://perl.apache.org/download/source.
> html#Development_mod_perl_2_0_Source_Distribution
> 

Stas, sorry about some mess with cvs. Here are the results of today's 
snapshots builds.

cvs commands used:

% cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic login
% cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic co modperl-2.0
% cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic co -r 
APACHE_2_0_BRANCH -d httpd-2.0 httpd-2.0
% cd httpd-2.0/srclib
% cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic co -r 
APR_0_9_BRANCH -d apr apr
% cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic co -r 
APU_0_9_BRANCH -d apr-util apr-util
% cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic co -r 
APU_0_9_BRANCH -d apr-iconv apr-iconv

apache builds and runs OK. 

after commenting out some lines in xs/APR/aprext/Makefile.PL (shown 
below):

#my @skip = qw(dynamic test);
#push @skip, q{static}
#unless (Apache::Build::BUILD_APREXT);
...
#SKIP  =>  [ @skip ] ,

modperl builds OK. But make test fails.

Failed Test Stat Wstat Total Fail  Failed  List of Failed
---
t/apr-ext/threadmutex.t2   512 36 200.00%  1-3
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   01313   22 169.23%  2-13
17 tests skipped.
Failed 5/204 test scripts, 97.55% okay. 22/1416 subtests failed, 98.45% 
okay.

%
%
% make test TEST_VERBOSE=1 \
TEST_FILES="t/apr-ext/threadmutex.t t/filter/both_str_con_add.t 
t/protocol/echo_block.t t/protocol/echo_filter.t t/protocol/pseudo_http.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 
t/filter/both_str_con_add.t t/protocol/echo_block.t 
t/protocol/echo_filter.t t/protocol/pseudo_http.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 Aug 
06 15:41:33 2004] [info] 27 Apache:: modules loaded
[Fri Aug 06 15:41:33 2004] [info] 9 APR:: modules loaded
[Fri Aug 06 15:41:33 2004] [info] base server + 21 vhosts ready to run 
tests
...
waiting 120 seconds for server to start: ok (waited 26 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 (TestProtocol::echo_bbs)
server localhost:8535 listening (TestProtocol::echo_bbs2)
server localhost:8536 listening (TestProtocol::echo_block)
server localhost:8537 listening (TestProtocol::echo_filter)
server localhost:8538 listening (TestProtocol::echo_timeout)
server localhost:8539 listening (TestProtocol::eliza)
server localhost:8540 listening (TestProtocol::pseudo_http)
server localhost:8541 listening (TestPreConnection::note)
server localhost:8542 listening (TestHooks::stacked_handlers2)
server localhost:8543 listening (TestHooks::startup)
server localhost:8544 listening (TestFilter::both_str_con_add)
server localhost:8545 listening (TestFilter::in_bbs_inject_header)
server localhost:8546 listening (TestFilter::in_bbs_msg)
server localhost:8547 listening (TestFilter::in_str_msg)
server localhost:8548 listening (TestDirective::perlmodule)
server localhost:8549 listening (TestDirective::perlrequire)
server localhost:8550 listening (TestPerl::ithreads)
server localhost:8551 listening (TestDirective::perlloadmodule3)
server localhost:8552 listening (TestDirective::perlloadmodule4)
server localhost:8553 listening (TestDirective::perlloadmodule5)
server localhost:8554 listening (TestDirective::perlloadmodule6)
t/apr-ext/threadmutex1..3
# Running under perl version 5.008004 for netbsd
# Current time local: Fri Aug  6 15:41:37 2004
# Current time GMT:   Fri Aug  6 11:41:37 2004
# Using Test.pm version 1.24
# Using Apache/Test.pm version 1.13
Can't locate APR/ThreadMutex.pm in @INC (@INC contains: 
/usr/home/mgorb/mp-test/modperl-2.0/Apache-Test 
/usr/home/mgorb/mp-test/modperl-2.0/blib/lib 
/usr/home/mgorb/mp-test/modperl-2.0/blib/arch 
/usr/home/mgorb/mp-test/modperl-2.0/blib/lib/Apache2 
/usr/home/mgorb/mp-test/modperl-2.0/blib/arch/Apache2 
/usr/home/mgorb/mp-test/modperl-2.0/lib 
/usr/home/mgorb/mp-test/modperl-2.0/Apache-Test/lib 
/usr/home/mgorb/mp-test/modperl-2.0/t/lib bli

Re: [mp2] NetBSD-1.6.2 modperl snapshot build error

2004-08-08 Thread MGorbunov
> > [Fri Aug 06 15:41:40 2004] [error] APR::Socket::recv: (35) Resource 
> > temporarily unavailable at 
> > 
/usr/home/mgorb/mp-test/modperl-2.0/t/protocol/TestProtocol/echo_block.pm 
> > line 34
> > Out of memory!
> > Callback called exit.
> > Callback called exit.
> 
> Hmm, out of memory? Do you have issues with RAM? Are you heavily 
swapping?
> 
k714% top

load averages:  0.21,  0.20,  0.17 09:11:19
30 processes:  29 sleeping, 1 on processor
CPU states:  0.0% user,  0.0% nice,  0.0% system,  0.0% interrupt,  100% 
idle
Memory: 27M Act, 4K Inact, 1760K Wired, 7480K Exec, 13M File, 412M Free
Swap: 500M Total, 500M Free

k714% sudo /sbin/swapctl -l

Device  512-blocks UsedAvail Capacity  Priority
/dev/wd0b  10241280  1024128 0%0

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



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

2004-09-06 Thread MGorbunov
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

% 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"
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/filter/both_str_con_add.t t/protocol/echo_block.t 
t/protocol/echo_filter.t t/protocol/pseudo_http.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: ..[Mon Sep 06 
13:53:32 2004] [info] 27 Apache:: modules loaded
[Mon Sep 06 13:53:32 2004] [info] 7 APR:: modules loaded
[Mon Sep 06 13:53:32 2004] [info] base server + 20 vhosts ready to run 
tests
...
waiting 120 seconds for server to start: ok (waited 16 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/filter/both_str_con_add1..4
# Running under perl version 5.008004 for netbsd
# Current time local: Mon Sep  6 13:53:37 2004
# Current time GMT:   Mon Sep  6 09:53:37 2004
# Using Test.pm version 1.24
ok 1
# expected: mod_perl
# received:
not ok 2
# Failed test 2 in t/filter/both_str_con_add.t at line 22
#  t/filter/both_str_con_add.t line 22 is: ok t_cmp($reply, $str);
# expected: 2.0
# received:
not ok 3
# Failed test 3 in t/filter/both_str_con_add.t at line 22 fail #2
# expected: rules
# received:
not ok 4
# Failed test 4 in t/filter/both_str_con_add.t at line 22 fail #3
FAILED tests 2-4
Failed 3/4 tests, 25.00% okay
t/protocol/echo_block1..3
# Running under perl version 5.008004 for netbsd
# Current time local: Mon Sep  6 13:53:42 2004
# Current time GMT:   Mon Sep  6 09:53:42 2004
# Using Test.pm version 1.24
ok 1
# expected: hello
# received:
not ok 2
# Failed test 2 in t/protocol/echo_block.t at line 19
#  t/protocol/echo_block.t line 19 is: ok t_cmp($reply, $_);
# expected: world
# received:
not ok 3
# Failed test 3 in t/protocol/echo_block.t at line 19 fail #2
FAILED tests 2-3
Failed 2/3 tests, 33.33% okay
t/protocol/echo_filter...1..3
# Running under perl version 5.008004 for netbsd
# Current time local: Mon Sep  6 13:53:46 2004
# Current time GMT:   Mon Sep  6 09:53:46 2004
# Using Test.pm version 1.24
ok 1
# expected: HELLO
# Failed test 2 in t/protocol/echo_filter.t at line 19
# received:
not ok 2
#  t/protocol/echo_filter.t line 19 is: ok t_cmp($reply, uc($_));
# expected: WORLD
# Failed test 3 in t/protocol/echo_filter.t at line 19 fail #2
# received:
not ok 3
FAILED tests 2-3
Failed 2/3 tests, 33.33% okay
t/protocol/pseudo_http...# connecting to localhost:8534
1..13
# Running under perl version 5.008004 for netbsd
# Current time local: Mon Sep  6 13:55:55 2004
# Current time GMT:   Mon Sep  6 09:55:55 2004
# U

Re: [mp2] Known problem with mod_perl 1.99_16 on FreeBSD 5 ?

2004-09-06 Thread MGorbunov
gmake 3.80 has no problem with this on NetBSD-1.6.2 also.


Mikhail Gorbunov 

-- 
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] Known problem with mod_perl 1.99_16 on FreeBSD 5 ?

2004-09-07 Thread MGorbunov
> This *BSD issue is now documented at:
> 
> 
http://perl.apache.org/docs/2.0/user/troubleshooting/troubleshooting.html#make__don_t_know_how_to_make_dynamic__Stop
> -- 

-my @skip = qw(dynamic test);
+my @skip = qw(test);
push @skip, q{static}
   unless (Apache::Build::BUILD_APREXT);

shouldn't this be applied to xs/APR/aprext/Makefile.PL ? At least this 
helped on my system (netbsd). And I can't find these lines in 
src/modules/perl/Makefile.modperl.

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



[mp2] NetBSD-2.0_RC1 httpd-2.0.52 modperl-1.99_17-dev configure error

2004-09-29 Thread MGorbunov
NetBSD-2.0_RC1 + perl-5.8.5 + httpd-2.0.52 :

all the above builds and runs OK, but

when trying to configure source of modperl-1.99_17-dev I get the 
following:

$ perl Makefile.PL MP_AP_PREFIX=$HOME/mp-test/httpd-2.0
Reading Makefile.PL args from @ARGV
   MP_AP_PREFIX = /home/mgorb/mp-test/httpd-2.0
[  error] invalid MP_AP_PREFIX: include/ directory not found in 
/home/mgorb/mp-test/httpd-2.0

$ ls /home/mgorb/mp-test/httpd-2.0
bin cgi-bin error   icons   lib man modules
build   confhtdocs  include logsmanual

$ uname -a
NetBSD K133 2.0_RC1 NetBSD 2.0_RC1 (GENERIC) #0: Mon Sep 27 11:29:30 UTC 
2004 
[EMAIL 
PROTECTED]:/autobuild/netbsd-2-0/i386/OBJ/autobuild/netbsd-2-0/src/sys/arch/i386/compile/GENERIC
 
i386

$ perl -V
Summary of my perl5 (revision 5 version 8 subversion 5) configuration:
  Platform:
osname=netbsd, osvers=2.0_rc1, archname=i386-netbsd
uname='netbsd k133 2.0_rc1 netbsd 2.0_rc1 (generic) #0: mon sep 27 
11:29:30 utc 2004 
[EMAIL 
PROTECTED]:autobuildnetbsd-2-0i386objautobuildnetbsd-2-0srcsysarchi386compilegeneric 
i386 '
config_args='-Dprefix=/home/mgorb/mp-test/perl 
-Doptimize=-mcpu=pentium2 -march=pentium2 -O2 -des'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef 
usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=y, bincompat5005=undef
  Compiler:
cc='cc', ccflags ='-fno-strict-aliasing -pipe',
optimize='-mcpu=pentium2 -march=pentium2 -O2',
cppflags='-fno-strict-aliasing -pipe'
ccversion='', gccversion='3.3.3 (NetBSD nb3 20040520)', 
gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', 
lseeksize=8
alignbytes=4, prototype=define
  Linker and Libraries:
ld='cc', ldflags =' -Wl,-rpath,/usr/pkg/lib -Wl,-rpath,/usr/local/lib'
libpth=/lib /usr/lib
libs=-lm -lcrypt -lutil -lc -lposix
perllibs=-lm -lcrypt -lutil -lc -lposix
libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version=''
  Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E '
cccdlflags='-DPIC -fPIC ', lddlflags='--whole-archive -shared '


Characteristics of this binary (from libperl):
  Compile-time options: USE_LARGE_FILES
  Built under netbsd
  Compiled at Sep 29 2004 14:36:57
  @INC:
/home/mgorb/mp-test/perl/lib/5.8.5/i386-netbsd
/home/mgorb/mp-test/perl/lib/5.8.5
/home/mgorb/mp-test/perl/lib/site_perl/5.8.5/i386-netbsd
/home/mgorb/mp-test/perl/lib/site_perl/5.8.5
/home/mgorb/mp-test/perl/lib/site_perl
.
$

httpd's configure string: --prefix=$HOME/mp-test/httpd-2.0

-- 
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-2.0_RC1 httpd-2.0.52 modperl-1.99_17-dev configure error

2004-10-01 Thread MGorbunov
Stas Bekman <[EMAIL PROTECTED]> wrote on 01.10.2004 06:08:34: 
> I can't reproduce that. Could you please try to debug that code? It's 
just 
> perl in Makefile.PL.

tried that with perl -d Makefile.PL MP_AP_PREFIX=$HOME/mp-test/httpd-2.0

looks like it stops here:

171:unless ($val) {
  DB<129> s
Apache::Build::apxs(lib/Apache/Build.pm:173):
173:my $error = qx($apxs @_ 2>&1);
  DB<131> s
Can't exec "/home/mgorb/mp-test/httpd-2.0/bin/apxs": No such file or 
directory at lib/Apache/Build.pm line 173.
 at lib/Apache/Build.pm line 173
Apache::Build::apxs('Apache::Build=HASH(0x8d7fcb8)', '-q', 
'INCLUDEDIR') called at lib/Apache/Build.pm line 82
Apache::Build::ap_prefix_invalid('Apache::Build=HASH(0x8d7fcb8)') 
called at Makefile.PL line 206
main::configure() called at Makefile.PL line 52

...

looking into /home/mgorb/mp-test/httpd-2.0/bin/apxs ( which appeared to be 
a perl script :) ) showed "#!/replace/with/path/to/perl/interpreter -w" at 
the first line. Replaced it with "/usr/local/bin/perl". After that "perl 
Makefile.PL" worked and mp2 was built OK, but some tests failed:

Failed Test Stat Wstat Total Fail  Failed  List of Failed
---
t/apr-ext/base64.t   255 65280??   ??   %  ??
t/apr-ext/bucket.t   255 65280??   ??   %  ??
t/apr-ext/date.t 255 65280??   ??   %  ??
t/apr-ext/finfo.t255 65280??   ??   %  ??
t/apr-ext/perlio.t   255 65280??   ??   %  ??
t/apr-ext/pool.t 255 65280??   ??   %  ??
t/apr-ext/string.t   255 65280??   ??   %  ??
t/apr-ext/table.t255 65280??   ??   %  ??
t/apr-ext/threadmutex.t  255 65280??   ??   %  ??
t/apr-ext/uri.t  255 65280??   ??   %  ??
t/apr-ext/util.t 255 65280??   ??   %  ??
t/apr-ext/uuid.t 255 65280??   ??   %  ??
t/apr/constants.t255 65280??   ??   %  ??

% make test TEST_VERBOSE=1 TEST_FILES="t/apr-ext/base64.t 
t/apr-ext/bucket.t t/apr-ext/date.t t/apr-ext/finfo.t t/apr-ext/perlio.t 
t/apr-ext/pool.t t/apr-ext/string.t t/apr-ext/table.t 
t/apr-ext/threadmutex.t t/apr-ext/uri.t t/apr-ext/util.t t/apr-ext/uuid.t 
t/apr/constants.t"
cd "src/modules/perl" && make
/usr/local/bin/perl -Iblib/arch -Iblib/lib  t/TEST -clean
APACHE_TEST_GROUP= APACHE_TEST_HTTPD= APACHE_TEST_PORT= APACHE_TEST_USER= 
APACHE_TEST_APXS=  /usr/local/bin/perl -Iblib/arch -Iblib/lib  t/TEST 
-bugreport -verbose=1 t/apr-ext/base64.t t/apr-ext/bucket.t 
t/apr-ext/date.t t/apr-ext/finfo.t t/apr-ext/perlio.t t/apr-ext/pool.t 
t/apr-ext/string.t t/apr-ext/table.t t/apr-ext/threadmutex.t 
t/apr-ext/uri.t t/apr-ext/util.t t/apr-ext/uuid.t t/apr/constants.t
/home/mgorb/mp-test/httpd-2.0/bin/httpd  -d 
/usr/home/mgorb/mp-test/src/modperl-2.0/t -f 
/usr/home/mgorb/mp-test/src/modperl-2.0/t/conf/httpd.conf -D APACHE2 
using Apache/2.0.52 (prefork MPM)

...

t/apr-ext/base64.Can't load 
'/usr/home/mgorb/mp-test/src/modperl-2.0/blib/arch/auto/APR/APR.so' for 
module APR: Shared object "libapr-0.so.9" not found at 
/home/mgorb/mp-test/perl/lib/5.8.5/i386-netbsd/DynaLoader.pm line 230.
 at /usr/home/mgorb/mp-test/src/modperl-2.0/blib/lib/APR/Base64.pm line 23
Compilation failed in require at 
/usr/home/mgorb/mp-test/src/modperl-2.0/blib/lib/APR/Base64.pm line 23.
BEGIN failed--compilation aborted at 
/usr/home/mgorb/mp-test/src/modperl-2.0/blib/lib/APR/Base64.pm line 23.
Compilation failed in require at 
/usr/home/mgorb/mp-test/src/modperl-2.0/t/lib/TestAPRlib/base64.pm line 
11.
BEGIN failed--compilation aborted at 
/usr/home/mgorb/mp-test/src/modperl-2.0/t/lib/TestAPRlib/base64.pm line 
11.
Compilation failed in require at t/apr-ext/base64.t line 5.
BEGIN failed--compilation aborted at t/apr-ext/base64.t line 5.
dubious
Test returned status 255 (wstat 65280, 0xff00)
t/apr-ext/bucket.Can't load 
'/usr/home/mgorb/mp-test/src/modperl-2.0/blib/arch/auto/APR/APR.so' for 
module APR: Shared object "libapr-0.so.9" not found at 
/home/mgorb/mp-test/perl/lib/5.8.5/i386-netbsd/DynaLoader.pm line 230.
 at /usr/home/mgorb/mp-test/src/modperl-2.0/blib/lib/APR/Bucket.pm line 23
Compilation failed in require at 
/usr/home/mgorb/mp-test/src/modperl-2.0/blib/lib/APR/Bucket.pm line 23.
BEGIN failed--compilation aborted at 
/usr/home/mgorb/mp-test/src/modperl-2.0/blib/lib/APR/Bucket.pm line 23.
Compilation failed in require at 
/usr/home/mgorb/mp-test/src/modperl-2.0/t/lib/TestAPRlib/bucket.pm line 
11.
BEGIN failed--compilation aborted at 
/usr/home/mgorb/mp-test/src/modperl-2.0/t/lib/TestAPRlib/bucket.pm line 
11.
Compilation failed in require at t/apr-ext/bucket.t line 5.
BEGIN failed--compilation aborted at t/apr-ext/bucket.t line 5.
dubious
Test returned status 255 (wstat 65280, 0xff00)
t/apr-ext/date...Can't load 
'/usr/home/mgorb/mp-test/src/modperl-2.0/blib/arch/auto/A

Re: [mp2] NetBSD-2.0_RC1 httpd-2.0.52 modperl-1.99_17-dev configure error

2004-10-04 Thread MGorbunov
Stas Bekman <[EMAIL PROTECTED]> wrote on 01.10.2004 18:20:50:

> [EMAIL PROTECTED] wrote:
> > Stas Bekman <[EMAIL PROTECTED]> wrote on 01.10.2004 06:08:34: 
> > 
> >>I can't reproduce that. Could you please try to debug that code? It's 
> > 
> > just 
> > 
> >>perl in Makefile.PL.
> > 
> > 
> > tried that with perl -d Makefile.PL 
MP_AP_PREFIX=$HOME/mp-test/httpd-2.0
> > 
> > looks like it stops here:
> > 
> > 171:unless ($val) {
> >   DB<129> s
> > Apache::Build::apxs(lib/Apache/Build.pm:173):
> > 173:my $error = qx($apxs @_ 2>&1);
> >   DB<131> s
> > Can't exec "/home/mgorb/mp-test/httpd-2.0/bin/apxs": No such file or 
> > directory at lib/Apache/Build.pm line 173.
> >  at lib/Apache/Build.pm line 173
> > Apache::Build::apxs('Apache::Build=HASH(0x8d7fcb8)', '-q', 
> > 'INCLUDEDIR') called at lib/Apache/Build.pm line 82
> > Apache::Build::ap_prefix_invalid('Apache::Build=HASH(0x8d7fcb8)') 
> > called at Makefile.PL line 206
> > main::configure() called at Makefile.PL line 52
> 
> Why doesn't it print out the error then?
> 
>  unless ($val) {
>  # do we have an error or is it just an empty value?
>  my $error = qx($apxs @_ 2>&1);
>  chomp $error if defined $error;
>  if ($error) {
>  error "'$apxs @_' failed:";
>  error $error;
>  }
>  else {
>  $val = '';
>  }
>  }
> 
> does anything go into $error? Please try to fix that code so that it 
> clearly point out what the problem is, as soon as it happens.

changed the code above like that:

unless ($val) {
# do we have an error or is it just an empty value?
#my $error = qx($apxs @_ 2>&1);
my $error = qx($apxs @_);
chomp $error if defined $error;
if ($error) {
error "'$apxs @_' failed:";
error $error;

now it prints the error out:

$ perl Makefile.PL MP_AP_PREFIX=$HOME/mp-test/httpd-2.0
Reading Makefile.PL args from @ARGV
   MP_AP_PREFIX = /home/mgorb/mp-test/httpd-2.0
Can't exec "/home/mgorb/mp-test/httpd-2.0/bin/apxs": No such file or 
directory at lib/Apache/Build.pm line 174.
[  error] invalid MP_AP_PREFIX: include/ directory not found in 
/home/mgorb/mp-test/httpd-2.0


> I think that I have an idea why does it try to use apxs (it should not, 
> since there should be no bin/apxs in the fresh source tree). Try running 

> 'make clean' in the /home/mgorb/mp-test/httpd-2.0 tree and try again.

This does not help...
> > ...
> > 
> > looking into /home/mgorb/mp-test/httpd-2.0/bin/apxs ( which appeared 
to be 
> > a perl script :) ) showed "#!/replace/with/path/to/perl/interpreter 
-w" at 
> > the first line. Replaced it with "/usr/local/bin/perl". After that 
"perl 
> > Makefile.PL" worked and mp2 was built OK, but some tests failed:
> 
> > % make test TEST_VERBOSE=1 TEST_FILES="t/apr-ext/base64.t 
> [...]
> > t/apr-ext/base64.Can't load 
> > '/usr/home/mgorb/mp-test/src/modperl-2.0/blib/arch/auto/APR/APR.so' 
for 
> > module APR: Shared object "libapr-0.so.9" not found at 
> 
> Philippe, APR.so needs the same treatment as mod_perl.so wrt to finding 
> the not-yet installed library when doing the static build. I suppose we 
> didn't see the problem since we had libapr installed system-wide (svn, 
> etc). I think we may need to add to release procedures a step where the 
RM 
> (re)moves any global libs that may affect the build.
> 
> -- 
> __
> 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
> 


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