Discussion:
[RELEASE CANDIDATE]: mod_perl-2.0.9 RC2
(too old to reply)
Steve Hay
2015-05-30 18:20:34 UTC
Permalink
Please download, test, and report back on this release candidate of
the long-awaited mod_perl 2.0.9.

http://people.apache.org/~stevehay/mod_perl-2.0.9-rc2.tar.gz

MD5 = 6dbf61e0724a245f1c015687fb3e4213
SHA1 = faf63c98b338ef0373ccbbe775c52506270ff3b9

Changes since RC1:

Remove PerlInterpScope. This has not been working properly with
threaded MPMs with httpd-2.4.x and the use-case of this directive was
questionable. [Jan Kaluza]

Allow running the test suite with httpd-2.4.x when mod_access_compat
is not loaded. [Steve Hay]
Kevin A. McGrail
2015-05-31 01:12:50 UTC
Permalink
Post by Steve Hay
Please download, test, and report back on this release candidate of
the long-awaited mod_perl 2.0.9.
http://people.apache.org/~stevehay/mod_perl-2.0.9-rc2.tar.gz
MD5 = 6dbf61e0724a245f1c015687fb3e4213
SHA1 = faf63c98b338ef0373ccbbe775c52506270ff3b9
Remove PerlInterpScope. This has not been working properly with
threaded MPMs with httpd-2.4.x and the use-case of this directive was
questionable. [Jan Kaluza]
Allow running the test suite with httpd-2.4.x when mod_access_compat
is not loaded. [Steve Hay]
The test suite finished with one failure against 2.4.12 on my test rig:

Test Summary Report
-------------------
t/api/aplog.t (Wstat: 0 Tests: 36 Failed: 1)
Failed test: 24
Files=245, Tests=4646, 304 wallclock secs ( 3.34 usr 0.49 sys + 227.74
cusr 50.53 csys = 282.10 CPU)
Result: FAIL
Failed 1/245 test programs. 1/4646 subtests failed.
[warning] server localhost.localdomain:8529 shutdown
[warning] port 8529 still in use...
...done
[ error] error running tests (please examine t/logs/error_log)
+--------------------------------------------------------+
| Please file a bug report: http://perl.apache.org/bugs/ |
+--------------------------------------------------------+
Makefile:1112: recipe for target 'run_tests' failed
make: *** [run_tests] Error 1



Repeating with TEST_VERBOSE=1 added... Here's the relevant output:

ok 23
# testing : $s->log_serror(LOG_MARK, LOG_DEBUG, APR::Const::EGENERAL...)
# expected: qr/(?^:Internal error: log_serror test 2)/
# received: '
# *** The following warn entry is expected and harmless ***
# [Sat May 30 21:04:59.085379 2015] [perl:debug] [pid 9642:tid 3076]
aplog.pm(90): (20014)Internal error (specific information not
available): log_serror test 2
# '
not ok 24
# testing : $r->log_rerror(LOG_MARK, LOG_CRIT, APR::Const::ENOTIME...)
# expected: qr/(?^:\[\w*:crit\] \[pid[^]]+\] .*?: \[[^]]+\] log_rerror
test)/
# received: '# Failed test 24 in
/usr/src/mod_perl-2.0.9-rc2/t/response/TestAPI/aplog.pm at line 92
#
# *** The following error entry is expected and harmless ***
# [Sat May 30 21:04:59.086325 2015] [perl:crit] [pid 9642:tid 3076]
(20007)No time was provided and one was required.: [client
127.0.0.1:56778] log_rerror test
# '
ok 25
# testing : $r->log_error(...)
# expected: qr/(?^:\[\w*:error\] \[pid[^]]+\] \$r->log_error test)/
# received: '
# *** The following error entry is expected and harmless ***
# [Sat May 30 21:04:59.087329 2015] [:error] [pid 9642:tid 3076]
$r->log_error test
# '


Anything else I can do/provide to help fix?

regards,
KAM
olli hauer
2015-05-31 09:41:10 UTC
Permalink
Post by Steve Hay
Please download, test, and report back on this release candidate of
the long-awaited mod_perl 2.0.9.
http://people.apache.org/~stevehay/mod_perl-2.0.9-rc2.tar.gz
MD5 = 6dbf61e0724a245f1c015687fb3e4213
SHA1 = faf63c98b338ef0373ccbbe775c52506270ff3b9
Remove PerlInterpScope. This has not been working properly with
threaded MPMs with httpd-2.4.x and the use-case of this directive was
questionable. [Jan Kaluza]
Allow running the test suite with httpd-2.4.x when mod_access_compat
is not loaded. [Steve Hay]
Test system: FreeBSD-10.1 (x64), perl-5.20.2, apr-1.5.2, apr-util-1.5.4


using Apache/2.4.12 (event MPM)
...
Test Summary Report
-------------------
t/api/aplog.t (Wstat: 0 Tests: 36 Failed: 1)
Failed test: 24
Files=245, Tests=2834, 180 wallclock secs ( 1.10 usr 0.38 sys + 128.39 cusr 35.48 csys = 165.36 CPU)
Result: FAIL
Failed 1/245 test programs. 1/2834 subtests failed.


using Apache/2.4.12 (prefork MPM)
...
Test Summary Report
-------------------
t/api/aplog.t (Wstat: 0 Tests: 36 Failed: 1)
Failed test: 24
Files=245, Tests=2850, 184 wallclock secs ( 1.04 usr 0.46 sys + 128.05 cusr 35.77 csys = 165.31 CPU)
Result: FAIL
Failed 1/245 test programs. 1/2850 subtests failed.


using Apache/2.4.12 (worker MPM)
...
Test Summary Report
-------------------
t/api/aplog.t (Wstat: 0 Tests: 36 Failed: 1)
Failed test: 24
Files=245, Tests=2866, 179 wallclock secs ( 1.10 usr 0.41 sys + 127.88 cusr 35.87 csys = 165.26 CPU)
Result: FAIL
Failed 1/245 test programs. 1/2866 subtests failed.


using Apache/2.2.29 (prefork MPM)
...
Test Summary Report
-------------------
t/api/aplog.t (Wstat: 0 Tests: 36 Failed: 1)
Failed test: 24
Files=245, Tests=2695, 225 wallclock secs ( 1.80 usr 0.72 sys + 167.06 cusr 36.84 csys = 206.42 CPU)
Result: FAIL
Failed 1/245 test programs. 1/2695 subtests failed.


using Apache/2.2.29 (event MPM)
...
Test Summary Report
-------------------
t/api/aplog.t (Wstat: 0 Tests: 36 Failed: 1)
Failed test: 24
Files=245, Tests=2667, 220 wallclock secs ( 1.85 usr 0.67 sys + 167.34 cusr 36.51 csys = 206.37 CPU)
Result: FAIL
Failed 1/245 test programs. 1/2667 subtests failed.


using Apache/2.2.29 (worker MPM)
...
Test Summary Report
-------------------
t/api/aplog.t (Wstat: 0 Tests: 36 Failed: 1)
Failed test: 24
Files=245, Tests=2712, 220 wallclock secs ( 1.84 usr 0.70 sys + 167.43 cusr 36.64 csys = 206.60 CPU)
Result: FAIL
Failed 1/245 test programs. 1/2712 subtests failed.
Vincent Veyron
2015-05-31 10:07:19 UTC
Permalink
On Sat, 30 May 2015 19:20:34 +0100
Post by Steve Hay
Please download, test, and report back on this release candidate of
the long-awaited mod_perl 2.0.9.
Hi Steve,

I've been seeing the requests for tests, and meaning to run them for a long while now, but for the life of me, I can't figure out how to install the thing, and it's not for lack of trying.

Is there a place that explains how to install and run the test suite? this page for instance, does not (unless something escapes me totally):

https://perl.apache.org/docs/general/testing/testing.html

The worst is that I'm sure I've done it once years ago...
--
Salutations, Vincent Veyron


https://marica.fr/
Gestion des contentieux, des dossiers de sinistres assurance et des contrats pour le service juridique
Jie Gao
2015-06-01 08:09:36 UTC
Permalink
cat /etc/issue
Red Hat Enterprise Linux Server release 6.6 (Santiago)
Kernel \r on an \m
uname -a
Linux xxx 2.6.32-504.16.2.el6.x86_64 #1 SMP Tue Mar 10 17:01:00 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux
perl -V
Summary of my perl5 (revision 5 version 20 subversion 2) configuration:

Platform:
osname=linux, osvers=2.6.32-504.12.2.el6.x86_64, archname=x86_64-linux-thread-multi
uname='linux xxxxx 2.6.32-504.12.2.el6.x86_64 #1 smp sun feb 1 12:14:02 est 2015 x86_64 x86_64 x86_64 gnulinux '
config_args='-Dcc=gcc -Dusethreads -Dprefix=/usr/local -des -A ccflags=-fPIC'
hint=recommended, useposix=true, d_sigaction=define
useithreads=define, usemultiplicity=define
use64bitint=define, use64bitall=define, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -fPIC -fwrapv -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O2',
cppflags='-D_REENTRANT -D_GNU_SOURCE -fPIC -fwrapv -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
ccversion='', gccversion='4.4.7 20120313 (Red Hat 4.4.7-11)', gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='gcc', ldflags =' -fstack-protector -L/usr/local/lib'
libpth=/usr/local/lib /usr/lib /lib/../lib64 /usr/lib/../lib64 /lib /lib64 /usr/lib64 /usr/local/lib64
libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
libc=libc-2.12.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.12'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib -fstack-protector'


Characteristics of this binary (from libperl):
Compile-time options: HAS_TIMES MULTIPLICITY PERLIO_LAYERS
PERL_DONT_CREATE_GVSV
PERL_HASH_FUNC_ONE_AT_A_TIME_HARD
PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP
PERL_NEW_COPY_ON_WRITE PERL_PRESERVE_IVUV
USE_64_BIT_ALL USE_64_BIT_INT USE_ITHREADS
USE_LARGE_FILES USE_LOCALE USE_LOCALE_COLLATE
USE_LOCALE_CTYPE USE_LOCALE_NUMERIC USE_PERLIO
USE_PERL_ATOF USE_REENTRANT_API
Built under linux
Compiled at Mar 27 2015 14:50:02
@INC:
/usr/local/lib/perl5/site_perl/5.20.2/x86_64-linux-thread-multi
/usr/local/lib/perl5/site_perl/5.20.2
/usr/local/lib/perl5/5.20.2/x86_64-linux-thread-multi
/usr/local/lib/perl5/5.20.2
/usr/local/lib/perl5/site_perl/5.18.2
/usr/local/lib/perl5/site_perl/5.18.0
/usr/local/lib/perl5/site_perl

All tests successful for "make test".

No errors loading external modules.



Regards,

Jie

Please think of our environment and only print this e-mail if necessary.
Date: Sat, 30 May 2015 19:20:34 +0100
Subject: [RELEASE CANDIDATE]: mod_perl-2.0.9 RC2
Please download, test, and report back on this release candidate of
the long-awaited mod_perl 2.0.9.
http://people.apache.org/~stevehay/mod_perl-2.0.9-rc2.tar.gz
MD5 = 6dbf61e0724a245f1c015687fb3e4213
SHA1 = faf63c98b338ef0373ccbbe775c52506270ff3b9
Remove PerlInterpScope. This has not been working properly with
threaded MPMs with httpd-2.4.x and the use-case of this directive was
questionable. [Jan Kaluza]
Allow running the test suite with httpd-2.4.x when mod_access_compat
is not loaded. [Steve Hay]
---------------------------------------------------------------------
Steve Hay
2015-06-02 07:38:58 UTC
Permalink
Post by Kevin A. McGrail
ok 23
# testing : $s->log_serror(LOG_MARK, LOG_DEBUG, APR::Const::EGENERAL...)
# expected: qr/(?^:Internal error: log_serror test 2)/
# received: '
# *** The following warn entry is expected and harmless ***
# [Sat May 30 21:04:59.085379 2015] [perl:debug] [pid 9642:tid 3076]
log_serror test 2
# '
not ok 24
# testing : $r->log_rerror(LOG_MARK, LOG_CRIT, APR::Const::ENOTIME...)
# expected: qr/(?^:\[\w*:crit\] \[pid[^]]+\] .*?: \[[^]]+\] log_rerror
test)/
# received: '# Failed test 24 in
/usr/src/mod_perl-2.0.9-rc2/t/response/TestAPI/aplog.pm at line 92
#
# *** The following error entry is expected and harmless ***
# [Sat May 30 21:04:59.086325 2015] [perl:crit] [pid 9642:tid 3076]
(20007)No time was provided and one was required.: [client 127.0.0.1:56778]
log_rerror test
# '
Weird. I don't see this on my system, although I see that many other
people are reporting the same problem.

I really don't know why the test fails given that what it says it
received DOES match what it says it's expecting!?
Steve Hay
2015-06-02 07:41:49 UTC
Permalink
Post by Vincent Veyron
On Sat, 30 May 2015 19:20:34 +0100
Post by Steve Hay
Please download, test, and report back on this release candidate of
the long-awaited mod_perl 2.0.9.
Hi Steve,
I've been seeing the requests for tests, and meaning to run them for a long while now, but for the life of me, I can't figure out how to install the thing, and it's not for lack of trying.
https://perl.apache.org/docs/general/testing/testing.html
Just follow the instructions in INSTALL in the tarball, i.e. something like:

% perl Makefile.PL MP_APXS=/usr/local/apache2/bin/apxs
% make && make test
% make install

(You can skip the last step. It's the results of "make test" that
we're interested in here.)
Vincent Veyron
2015-06-02 14:02:13 UTC
Permalink
geez... forgot to cc the list and then sent twice with wrong id :-(

Begin forwarded message:

Date: Tue, 2 Jun 2015 14:44:27 +0200
From: Vincent Veyron <***@wanadoo.fr>
To: Steve Hay <***@googlemail.com>
Subject: Re: [RELEASE CANDIDATE]: mod_perl-2.0.9 RC2


On Tue, 2 Jun 2015 08:41:49 +0100
Post by Steve Hay
% perl Makefile.PL MP_APXS=/usr/local/apache2/bin/apxs
% make && make test
mmmmhh..... hitting a wall, I'm getting errors (listed below). I tried several things, but can't get 'make test' to work

My system runs Debian Stable ( 8/Jessie ), with this command to install Apache httpd/mod_perl :

apt-get install apache2-mpm-prefork libapache2-request-perl libapache2-modperl2 libapache2-mod-apreq2 apache2.2-common apache2-dev

So presumably, it's running RC1 now (dpkg -l shows : 2.0.9~1624218-2)
Post by Steve Hay
% make install
(You can skip the last step. It's the results of "make test" that
we're interested in here.)
Does this mean that I don't need to remove my current installation of mod_perl to run the tests?


####Steps taken
make :
had to symlink libgdbm.so and libperl.so

make test :
first returns "httpd.conf not found", so I copied it from apache2.conf and modified /etc/apache2/mods-available/perl.load to use mod_perl.so in the test suite with LoadModule perl_module /home/bla/tmp/mod_perl-2.0.9-rc2/src/modules/perl/mod_perl.so.

Result :

t/TEST -clean
[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/bin/perl /home/bla/tmp/mod_perl-2.0.9-rc2/t/TEST -clean
APACHE_TEST_APXS= APACHE_TEST_GROUP= APACHE_TEST_HTTPD= APACHE_TEST_PORT= APACHE_TEST_USER= \
/usr/bin/perl -Iblib/arch -Iblib/lib \
t/TEST -bugreport -verbose=0
[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/bin/perl /home/bla/tmp/mod_perl-2.0.9-rc2/t/TEST -bugreport -verbose=0
[Tue Jun 02 14:42:04.341261 2015] [core:warn] [pid 29185] AH00111: Config variable ${APACHE_LOCK_DIR} is not defined
[Tue Jun 02 14:42:04.341525 2015] [core:warn] [pid 29185] AH00111: Config variable ${APACHE_PID_FILE} is not defined
[Tue Jun 02 14:42:04.341662 2015] [core:warn] [pid 29185] AH00111: Config variable ${APACHE_RUN_USER} is not defined
[Tue Jun 02 14:42:04.341748 2015] [core:warn] [pid 29185] AH00111: Config variable ${APACHE_RUN_GROUP} is not defined
[Tue Jun 02 14:42:04.341869 2015] [core:warn] [pid 29185] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Tue Jun 02 14:42:04.342683 2015] [so:warn] [pid 29185] AH01574: module apreq_module is already loaded, skipping
[Tue Jun 02 14:42:04.358599 2015] [core:warn] [pid 29185] AH00111: Config variable ${APACHE_RUN_DIR} is not defined
[Tue Jun 02 14:42:04.359251 2015] [core:warn] [pid 29185] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Tue Jun 02 14:42:04.359717 2015] [core:warn] [pid 29185] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Tue Jun 02 14:42:04.359823 2015] [core:warn] [pid 29185] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
AH00526: Syntax error on line 74 of /etc/apache2/httpd.conf:
Invalid Mutex directory in argument file:${APACHE_LOCK_DIR}
APXS (/usr/bin/apxs) query for PREFIX failed
/usr/sbin/apache2 -d /home/bla/tmp/mod_perl-2.0.9-rc2/t -f /home/bla/tmp/mod_perl-2.0.9-rc2/t/conf/httpd.conf -D APACHE2 -D APACHE2_4 -D PERL_USEITHREADS
using Apache/2.4.10

waiting 300 seconds for server to start: .AH00534: apache2: Configuration error: No MPM loaded.
[ error]
server has died with status 255 (t/logs/error_log wasn't created, start the server in the debug mode)
Terminated
Makefile:1106: recipe for target 'run_tests' failed
make: *** [run_tests] Error 143
--
Salutations, Vincent Veyron

https://marica.fr/
Gestion des contentieux, des dossiers de sinistres assurance et des contrats pour le service juridique
Vincent Veyron
2015-06-02 13:22:21 UTC
Permalink
On Tue, 2 Jun 2015 08:41:49 +0100
Post by Steve Hay
% perl Makefile.PL MP_APXS=/usr/local/apache2/bin/apxs
% make && make test
mmmmhh..... hitting a wall, I'm getting errors (listed below). I tried several things, but can't get 'make test' to work

My system runs Debian Stable ( 8/Jessie ), with this command to install Apache httpd/mod_perl :

apt-get install apache2-mpm-prefork libapache2-request-perl libapache2-modperl2 libapache2-mod-apreq2 apache2.2-common apache2-dev

So presumably, it's running RC1 now (dpkg -l shows : 2.0.9~1624218-2)
Post by Steve Hay
% make install
(You can skip the last step. It's the results of "make test" that
we're interested in here.)
Does this mean that I don't need to remove my current installation of mod_perl to run the tests?


####Steps taken
make :
had to symlink libgdbm.so and libperl.so

make test :
first returns "httpd.conf not found", so I copied it from apache2.conf and modified /etc/apache2/mods-available/perl.load to use mod_perl.so in the test suite with LoadModule perl_module /home/bla/tmp/mod_perl-2.0.9-rc2/src/modules/perl/mod_perl.so.

Result :

t/TEST -clean
[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/bin/perl /home/bla/tmp/mod_perl-2.0.9-rc2/t/TEST -clean
APACHE_TEST_APXS= APACHE_TEST_GROUP= APACHE_TEST_HTTPD= APACHE_TEST_PORT= APACHE_TEST_USER= \
/usr/bin/perl -Iblib/arch -Iblib/lib \
t/TEST -bugreport -verbose=0
[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/bin/perl /home/bla/tmp/mod_perl-2.0.9-rc2/t/TEST -bugreport -verbose=0
[Tue Jun 02 14:42:04.341261 2015] [core:warn] [pid 29185] AH00111: Config variable ${APACHE_LOCK_DIR} is not defined
[Tue Jun 02 14:42:04.341525 2015] [core:warn] [pid 29185] AH00111: Config variable ${APACHE_PID_FILE} is not defined
[Tue Jun 02 14:42:04.341662 2015] [core:warn] [pid 29185] AH00111: Config variable ${APACHE_RUN_USER} is not defined
[Tue Jun 02 14:42:04.341748 2015] [core:warn] [pid 29185] AH00111: Config variable ${APACHE_RUN_GROUP} is not defined
[Tue Jun 02 14:42:04.341869 2015] [core:warn] [pid 29185] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Tue Jun 02 14:42:04.342683 2015] [so:warn] [pid 29185] AH01574: module apreq_module is already loaded, skipping
[Tue Jun 02 14:42:04.358599 2015] [core:warn] [pid 29185] AH00111: Config variable ${APACHE_RUN_DIR} is not defined
[Tue Jun 02 14:42:04.359251 2015] [core:warn] [pid 29185] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Tue Jun 02 14:42:04.359717 2015] [core:warn] [pid 29185] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Tue Jun 02 14:42:04.359823 2015] [core:warn] [pid 29185] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
AH00526: Syntax error on line 74 of /etc/apache2/httpd.conf:
Invalid Mutex directory in argument file:${APACHE_LOCK_DIR}
APXS (/usr/bin/apxs) query for PREFIX failed
/usr/sbin/apache2 -d /home/bla/tmp/mod_perl-2.0.9-rc2/t -f /home/bla/tmp/mod_perl-2.0.9-rc2/t/conf/httpd.conf -D APACHE2 -D APACHE2_4 -D PERL_USEITHREADS
using Apache/2.4.10

waiting 300 seconds for server to start: .AH00534: apache2: Configuration error: No MPM loaded.
[ error]
server has died with status 255 (t/logs/error_log wasn't created, start the server in the debug mode)
Terminated
Makefile:1106: recipe for target 'run_tests' failed
make: *** [run_tests] Error 143
--
Salutations, Vincent Veyron

https://marica.fr/
Gestion des contentieux, des dossiers de sinistres assurance et des contrats pour le service juridique
--
Salutations, Vincent Veyron

http://vincentveyron.com
Vincent Veyron
2015-06-02 13:59:57 UTC
Permalink
(forgot to cc the list)

Begin forwarded message:

Date: Tue, 2 Jun 2015 14:44:27 +0200
From: Vincent Veyron <***@wanadoo.fr>
To: Steve Hay <***@googlemail.com>
Subject: Re: [RELEASE CANDIDATE]: mod_perl-2.0.9 RC2


On Tue, 2 Jun 2015 08:41:49 +0100
Post by Steve Hay
% perl Makefile.PL MP_APXS=/usr/local/apache2/bin/apxs
% make && make test
mmmmhh..... hitting a wall, I'm getting errors (listed below). I tried several things, but can't get 'make test' to work

My system runs Debian Stable ( 8/Jessie ), with this command to install Apache httpd/mod_perl :

apt-get install apache2-mpm-prefork libapache2-request-perl libapache2-modperl2 libapache2-mod-apreq2 apache2.2-common apache2-dev

So presumably, it's running RC1 now (dpkg -l shows : 2.0.9~1624218-2)
Post by Steve Hay
% make install
(You can skip the last step. It's the results of "make test" that
we're interested in here.)
Does this mean that I don't need to remove my current installation of mod_perl to run the tests?


####Steps taken
make :
had to symlink libgdbm.so and libperl.so

make test :
first returns "httpd.conf not found", so I copied it from apache2.conf and modified /etc/apache2/mods-available/perl.load to use mod_perl.so in the test suite with LoadModule perl_module /home/bla/tmp/mod_perl-2.0.9-rc2/src/modules/perl/mod_perl.so.

Result :

t/TEST -clean
[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/bin/perl /home/bla/tmp/mod_perl-2.0.9-rc2/t/TEST -clean
APACHE_TEST_APXS= APACHE_TEST_GROUP= APACHE_TEST_HTTPD= APACHE_TEST_PORT= APACHE_TEST_USER= \
/usr/bin/perl -Iblib/arch -Iblib/lib \
t/TEST -bugreport -verbose=0
[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/bin/perl /home/bla/tmp/mod_perl-2.0.9-rc2/t/TEST -bugreport -verbose=0
[Tue Jun 02 14:42:04.341261 2015] [core:warn] [pid 29185] AH00111: Config variable ${APACHE_LOCK_DIR} is not defined
[Tue Jun 02 14:42:04.341525 2015] [core:warn] [pid 29185] AH00111: Config variable ${APACHE_PID_FILE} is not defined
[Tue Jun 02 14:42:04.341662 2015] [core:warn] [pid 29185] AH00111: Config variable ${APACHE_RUN_USER} is not defined
[Tue Jun 02 14:42:04.341748 2015] [core:warn] [pid 29185] AH00111: Config variable ${APACHE_RUN_GROUP} is not defined
[Tue Jun 02 14:42:04.341869 2015] [core:warn] [pid 29185] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Tue Jun 02 14:42:04.342683 2015] [so:warn] [pid 29185] AH01574: module apreq_module is already loaded, skipping
[Tue Jun 02 14:42:04.358599 2015] [core:warn] [pid 29185] AH00111: Config variable ${APACHE_RUN_DIR} is not defined
[Tue Jun 02 14:42:04.359251 2015] [core:warn] [pid 29185] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Tue Jun 02 14:42:04.359717 2015] [core:warn] [pid 29185] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Tue Jun 02 14:42:04.359823 2015] [core:warn] [pid 29185] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
AH00526: Syntax error on line 74 of /etc/apache2/httpd.conf:
Invalid Mutex directory in argument file:${APACHE_LOCK_DIR}
APXS (/usr/bin/apxs) query for PREFIX failed
/usr/sbin/apache2 -d /home/bla/tmp/mod_perl-2.0.9-rc2/t -f /home/bla/tmp/mod_perl-2.0.9-rc2/t/conf/httpd.conf -D APACHE2 -D APACHE2_4 -D PERL_USEITHREADS
using Apache/2.4.10

waiting 300 seconds for server to start: .AH00534: apache2: Configuration error: No MPM loaded.
[ error]
server has died with status 255 (t/logs/error_log wasn't created, start the server in the debug mode)
Terminated
Makefile:1106: recipe for target 'run_tests' failed
make: *** [run_tests] Error 143
--
Salutations, Vincent Veyron

https://marica.fr/
Gestion des contentieux, des dossiers de sinistres assurance et des contrats pour le service juridique
--
Salutations, Vincent Veyron

http://vincentveyron.com
Dominic Hargreaves
2015-06-02 16:18:04 UTC
Permalink
Post by Vincent Veyron
On Tue, 2 Jun 2015 08:41:49 +0100
Post by Steve Hay
% perl Makefile.PL MP_APXS=/usr/local/apache2/bin/apxs
% make && make test
mmmmhh..... hitting a wall, I'm getting errors (listed below). I tried several things, but can't get 'make test' to work
apt-get install apache2-mpm-prefork libapache2-request-perl libapache2-modperl2 libapache2-mod-apreq2 apache2.2-common apache2-dev
So presumably, it's running RC1 now (dpkg -l shows : 2.0.9~1624218-2)
This is actually an svn snapshot from a while ago, so not RC1.

If your main concern is whether RC2's test suite works within Debian,
then the answer is yes:

https://buildd.debian.org/status/fetch.php?pkg=libapache2-mod-perl2&arch=amd64&ver=2.0.9~rc2-1&stamp=1433186697

(at least except with perl 5.22, as I posted about separately).

Cheers,
Dominic.
Steve Hay
2015-06-02 17:45:16 UTC
Permalink
Post by Dominic Hargreaves
Post by Vincent Veyron
On Tue, 2 Jun 2015 08:41:49 +0100
Post by Steve Hay
% perl Makefile.PL MP_APXS=/usr/local/apache2/bin/apxs
% make && make test
mmmmhh..... hitting a wall, I'm getting errors (listed below). I tried several things, but can't get 'make test' to work
apt-get install apache2-mpm-prefork libapache2-request-perl libapache2-modperl2 libapache2-mod-apreq2 apache2.2-common apache2-dev
So presumably, it's running RC1 now (dpkg -l shows : 2.0.9~1624218-2)
This is actually an svn snapshot from a while ago, so not RC1.
If your main concern is whether RC2's test suite works within Debian,
https://buildd.debian.org/status/fetch.php?pkg=libapache2-mod-perl2&arch=amd64&ver=2.0.9~rc2-1&stamp=1433186697
(at least except with perl 5.22, as I posted about separately).
What's the problem with 5.22? I don't see a separate post, except from
David Wheeler, reporting a problem with 5.22. I also found a problem
late in the 5.21 development cycle that I knew would cause a problem
for 5.22: https://rt.cpan.org/Ticket/Display.html?id=101962

Is the problem anything to do with that?

I'm inclinced to just add a note to README about 5.22 woes for now so
that we can get a 2.0.9 out there that works with the latest httpd,
and then work on supporting this latest perl for 2.0.10.
John D Groenveld
2015-06-03 00:47:13 UTC
Permalink
Post by Steve Hay
Please download, test, and report back on this release candidate of
the long-awaited mod_perl 2.0.9.
Not good.

$ cat /etc/release
OmniOS v11 r151014
Copyright 2015 OmniTI Computer Consulting, Inc. All rights reserved.
Use is subject to license terms.


$ perl -V
Summary of my perl5 (revision 5 version 20 subversion 2) configuration:

Platform:
osname=solaris, osvers=2.11, archname=i86pc-solaris-64
uname='sunos bernice 5.11 omnios-10b9c79 i86pc i386 i86pc '
config_args='-Dprefix=/opt/apache2/perl-5.20.2 -Dcc=gcc -Duseshrplib -Uusemymalc -Duselargefiles -Ubincompat5005 -Doptimize=-O3 -Duse64bitall'
hint=recommended, useposix=true, d_sigaction=define
useithreads=undef, usemultiplicity=undef
use64bitint=define, use64bitall=define, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc', ccflags ='-m64 -fwrapv -fno-strict-aliasing -pipe -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV',
optimize='-O3',
cppflags='-m64 -fwrapv -fno-strict-aliasing -pipe -fstack-protector'
ccversion='', gccversion='4.8.1', gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='gcc', ldflags =' -m64 -fstack-protector -L/usr/gnu/lib '
libpth=/opt/gcc-4.8.1/lib /opt/gcc-4.8.1/lib/gcc/i386-pc-solaris2.11/4.8.1/include-fixed /usr/lib /usr/gnu/lib /usr/ccs/lib
libs=-lsocket -lnsl -ldl -lm -lc
perllibs=-lsocket -lnsl -ldl -lm -lc
libc=/lib/libc.so, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' -R /opt/apache2/perl-5.20.2/lib/5.20.2/i86pc-solaris-64/CORE'
cccdlflags='-fPIC', lddlflags=' -shared -m64 -L/usr/gnu/lib -fstack-protector'


Characteristics of this binary (from libperl):
Compile-time options: HAS_TIMES PERLIO_LAYERS PERL_DONT_CREATE_GVSV
PERL_HASH_FUNC_ONE_AT_A_TIME_HARD PERL_MALLOC_WRAP
PERL_NEW_COPY_ON_WRITE PERL_PRESERVE_IVUV
PERL_USE_SAFE_PUTENV USE_64_BIT_ALL USE_64_BIT_INT
USE_LARGE_FILES USE_LOCALE USE_LOCALE_COLLATE
USE_LOCALE_CTYPE USE_LOCALE_NUMERIC USE_PERLIO
USE_PERL_ATOF
Built under solaris
Compiled at Mar 27 2015 17:54:42
@INC:
/opt/apache2/perl-5.20.2/lib/site_perl/5.20.2/i86pc-solaris-64
/opt/apache2/perl-5.20.2/lib/site_perl/5.20.2
/opt/apache2/perl-5.20.2/lib/5.20.2/i86pc-solaris-64
/opt/apache2/perl-5.20.2/lib/5.20.2
.


$ /opt/apache2/bin/httpd -V
Server version: Apache/2.2.29 (Unix)
Server built: Dec 14 2014 18:03:56
Server's Module Magic Number: 20051115:36
Server loaded: APR 1.5.1, APR-Util 1.5.3
Compiled using: APR 1.5.1, APR-Util 1.5.3
Architecture: 64-bit
Server MPM: Prefork
threaded: no
forked: yes (variable process count)
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_PROC_PTHREAD_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT="/opt/apache2"
-D SUEXEC_BIN="/opt/apache2/bin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="logs/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"


$ env PATH=/opt/apache2/perl-5.20.2/bin:/usr/bin:/usr/sbin:/usr/ccs/bin:/opt/gcc-4.8.1/bin:/usr/sfw/bin:/usr/gnu/bin gmake
Go
cd "src/modules/perl" && gmake
gmake[1]: Entering directory `/home/john/mod_perl-2.0.9-rc2/src/modules/perl'
gcc -I/home/john/mod_perl-2.0.9-rc2/src/modules/perl -I/home/john/mod_perl-2.0.9-rc2/xs -I/opt/apache2/include -I/opt/apache2/include -I/usr/sfw/include -I/opt/apache2/include -m64 -fwrapv -fno-strict-aliasing -pipe -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -I/opt/apache2/perl-5.20.2/lib/5.20.2/i86pc-solaris-64/CORE -DMOD_PERL -DMP_COMPAT_1X -DSOLARIS2=11 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -O3 -fPIC \
-c modperl_filter.c && mv modperl_filter.o modperl_filter.lo
In file included from mod_perl.h:32:0,
from modperl_filter.c:17:
modperl_filter.c: In function 'modperl_run_filter':
modperl_error.h:42:9: error: unknown type name 'modperl_interp_t'
modperl_interp_t *interp = modperl_thx_interp_get(aTHX); \
^
modperl_error.h:50:9: note: in expansion of macro 'MP_PUTBACK_IF_USED'
MP_PUTBACK_IF_USED(); \
^
modperl_filter.c:538:17: note: in expansion of macro 'MP_CROAK_PUTBACK'
MP_CROAK_PUTBACK(MODPERL_FILTER_ERROR,
^
modperl_error.h:42:36: warning: initialization makes pointer from integer without a cast [enabled by default]
modperl_interp_t *interp = modperl_thx_interp_get(aTHX); \
^
modperl_error.h:50:9: note: in expansion of macro 'MP_PUTBACK_IF_USED'
MP_PUTBACK_IF_USED(); \
^
modperl_filter.c:538:17: note: in expansion of macro 'MP_CROAK_PUTBACK'
MP_CROAK_PUTBACK(MODPERL_FILTER_ERROR,
^
Steve Hay
2015-06-03 07:47:17 UTC
Permalink
Post by John D Groenveld
Post by Steve Hay
Please download, test, and report back on this release candidate of
the long-awaited mod_perl 2.0.9.
Not good.
$ cat /etc/release
OmniOS v11 r151014
Copyright 2015 OmniTI Computer Consulting, Inc. All rights reserved.
Use is subject to license terms.
$ perl -V
osname=solaris, osvers=2.11, archname=i86pc-solaris-64
uname='sunos bernice 5.11 omnios-10b9c79 i86pc i386 i86pc '
config_args='-Dprefix=/opt/apache2/perl-5.20.2 -Dcc=gcc -Duseshrplib -Uusemymalc -Duselargefiles -Ubincompat5005 -Doptimize=-O3 -Duse64bitall'
hint=recommended, useposix=true, d_sigaction=define
useithreads=undef, usemultiplicity=undef
use64bitint=define, use64bitall=define, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
cc='gcc', ccflags ='-m64 -fwrapv -fno-strict-aliasing -pipe -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV',
optimize='-O3',
cppflags='-m64 -fwrapv -fno-strict-aliasing -pipe -fstack-protector'
ccversion='', gccversion='4.8.1', gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
ld='gcc', ldflags =' -m64 -fstack-protector -L/usr/gnu/lib '
libpth=/opt/gcc-4.8.1/lib /opt/gcc-4.8.1/lib/gcc/i386-pc-solaris2.11/4.8.1/include-fixed /usr/lib /usr/gnu/lib /usr/ccs/lib
libs=-lsocket -lnsl -ldl -lm -lc
perllibs=-lsocket -lnsl -ldl -lm -lc
libc=/lib/libc.so, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version=''
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' -R /opt/apache2/perl-5.20.2/lib/5.20.2/i86pc-solaris-64/CORE'
cccdlflags='-fPIC', lddlflags=' -shared -m64 -L/usr/gnu/lib -fstack-protector'
Compile-time options: HAS_TIMES PERLIO_LAYERS PERL_DONT_CREATE_GVSV
PERL_HASH_FUNC_ONE_AT_A_TIME_HARD PERL_MALLOC_WRAP
PERL_NEW_COPY_ON_WRITE PERL_PRESERVE_IVUV
PERL_USE_SAFE_PUTENV USE_64_BIT_ALL USE_64_BIT_INT
USE_LARGE_FILES USE_LOCALE USE_LOCALE_COLLATE
USE_LOCALE_CTYPE USE_LOCALE_NUMERIC USE_PERLIO
USE_PERL_ATOF
Built under solaris
Compiled at Mar 27 2015 17:54:42
/opt/apache2/perl-5.20.2/lib/site_perl/5.20.2/i86pc-solaris-64
/opt/apache2/perl-5.20.2/lib/site_perl/5.20.2
/opt/apache2/perl-5.20.2/lib/5.20.2/i86pc-solaris-64
/opt/apache2/perl-5.20.2/lib/5.20.2
.
$ /opt/apache2/bin/httpd -V
Server version: Apache/2.2.29 (Unix)
Server built: Dec 14 2014 18:03:56
Server's Module Magic Number: 20051115:36
Server loaded: APR 1.5.1, APR-Util 1.5.3
Compiled using: APR 1.5.1, APR-Util 1.5.3
Architecture: 64-bit
Server MPM: Prefork
threaded: no
forked: yes (variable process count)
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_PROC_PTHREAD_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT="/opt/apache2"
-D SUEXEC_BIN="/opt/apache2/bin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="logs/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
$ env PATH=/opt/apache2/perl-5.20.2/bin:/usr/bin:/usr/sbin:/usr/ccs/bin:/opt/gcc-4.8.1/bin:/usr/sfw/bin:/usr/gnu/bin gmake
Go
cd "src/modules/perl" && gmake
gmake[1]: Entering directory `/home/john/mod_perl-2.0.9-rc2/src/modules/perl'
gcc -I/home/john/mod_perl-2.0.9-rc2/src/modules/perl -I/home/john/mod_perl-2.0.9-rc2/xs -I/opt/apache2/include -I/opt/apache2/include -I/usr/sfw/include -I/opt/apache2/include -m64 -fwrapv -fno-strict-aliasing -pipe -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -I/opt/apache2/perl-5.20.2/lib/5.20.2/i86pc-solaris-64/CORE -DMOD_PERL -DMP_COMPAT_1X -DSOLARIS2=11 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -O3 -fPIC \
-c modperl_filter.c && mv modperl_filter.o modperl_filter.lo
In file included from mod_perl.h:32:0,
modperl_error.h:42:9: error: unknown type name 'modperl_interp_t'
modperl_interp_t *interp = modperl_thx_interp_get(aTHX); \
^
modperl_error.h:50:9: note: in expansion of macro 'MP_PUTBACK_IF_USED'
MP_PUTBACK_IF_USED(); \
^
modperl_filter.c:538:17: note: in expansion of macro 'MP_CROAK_PUTBACK'
MP_CROAK_PUTBACK(MODPERL_FILTER_ERROR,
^
modperl_error.h:42:36: warning: initialization makes pointer from integer without a cast [enabled by default]
modperl_interp_t *interp = modperl_thx_interp_get(aTHX); \
^
modperl_error.h:50:9: note: in expansion of macro 'MP_PUTBACK_IF_USED'
MP_PUTBACK_IF_USED(); \
^
modperl_filter.c:538:17: note: in expansion of macro 'MP_CROAK_PUTBACK'
MP_CROAK_PUTBACK(MODPERL_FILTER_ERROR,
^
This looks like the same failure reported here with an unthreaded perl:

https://rt.cpan.org/Ticket/Display.html?id=102930#txn-1502924

Unfortunately, I can't reproduce that on Windows since the WinNT MPM
is threaded and hence requires a threaded perl to build with. However,
I think it's a failure introduced by r1682366, and (shooting in the
dark) I wonder if the patch below (also attached, although the patch
might have some Windows style EOLs) would fix it?

Index: src/modules/perl/modperl_error.h
===================================================================
--- src/modules/perl/modperl_error.h (revision 1683243)
+++ src/modules/perl/modperl_error.h (working copy)
@@ -37,6 +37,7 @@

void modperl_croak(pTHX_ apr_status_t rc, const char* func);

+#ifdef USE_ITHREADS
#define MP_PUTBACK_IF_USED() STMT_START \
{ \
modperl_interp_t *interp = modperl_thx_interp_get(aTHX); \
@@ -44,6 +45,9 @@
modperl_interp_unselect(interp); \
} \
} STMT_END
+#else
+#define MP_PUTBACK_IF_USED() NOOP
+#endif

#define MP_CROAK_PUTBACK(rc, func) STMT_START \
{ \
Dominic Hargreaves
2015-06-03 08:44:15 UTC
Permalink
Post by Steve Hay
Post by Dominic Hargreaves
If your main concern is whether RC2's test suite works within Debian,
https://buildd.debian.org/status/fetch.php?pkg=libapache2-mod-perl2&arch=amd64&ver=2.0.9~rc2-1&stamp=1433186697
(at least except with perl 5.22, as I posted about separately).
What's the problem with 5.22? I don't see a separate post, except from
David Wheeler, reporting a problem with 5.22. I also found a problem
late in the 5.21 development cycle that I knew would cause a problem
for 5.22: https://rt.cpan.org/Ticket/Display.html?id=101962
I posted to ***@perl.apache.org at 12:05 +0100 yesterday, message-id
<***@urchin.earth.li> but it doesn't seem to have
made it through.
Post by Steve Hay
Is the problem anything to do with that?
Yes, it does seem to be the same issue. The Debian report is
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=787493
Post by Steve Hay
I'm inclinced to just add a note to README about 5.22 woes for now so
that we can get a 2.0.9 out there that works with the latest httpd,
and then work on supporting this latest perl for 2.0.10.
Sure, that seems reasonable.

Cheers,
Dominic.
Vincent Veyron
2015-06-03 09:22:57 UTC
Permalink
On Sat, 30 May 2015 19:20:34 +0100
Post by Steve Hay
Please download, test, and report back on this release candidate of
the long-awaited mod_perl 2.0.9.
Results on Debian Jessie :

Test Summary Report
-------------------
t/apache/util.t (Wstat: 0 Tests: 8 Failed: 4)
Failed tests: 1-4
t/filter/in_str_declined.t (Wstat: 0 Tests: 0 Failed: 0)
Parse errors: Bad plan. You planned 2 tests but ran 0.
Files=245, Tests=2481, 248 wallclock secs ( 1.61 usr 0.42 sys + 157.02 cusr 28.37 csys = 187.42 CPU)
Result: FAIL
Failed 2/245 test programs. 4/2481 subtests failed.
[warning] server localhost:8529 shutdown
[warning] port 8529 still in use...
...done
[ error] error running tests (please examine t/logs/error_log)
+--------------------------------------------------------+
| Please file a bug report: http://perl.apache.org/bugs/ |
+--------------------------------------------------------+
Makefile:1106: recipe for target 'run_tests' failed
make: *** [run_tests] Error 1


httpd -v
Server version: Apache/2.4.12 (Unix)
Server built: Jun 2 2015 21:56:05

perl -V
Summary of my perl5 (revision 5 version 20 subversion 2) configuration:

Platform:
osname=linux, osvers=3.2.0-4-amd64, archname=i586-linux-gnu-thread-multi-64int
uname='linux binet 3.2.0-4-amd64 #1 smp debian 3.2.65-1+deb7u2 i686 gnulinux '
config_args='-Dusethreads -Duselargefiles -Dccflags=-DDEBIAN -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Dldflags= -Wl,-z,relro -Dlddlflags=-shared -Wl,-z,relro -Dcccdlflags=-fPIC -Darchname=i586-linux-gnu -Dprefix=/usr -Dprivlib=/usr/share/perl/5.20 -Darchlib=/usr/lib/i386-linux-gnu/perl/5.20 -Dvendorprefix=/usr -Dvendorlib=/usr/share/perl5 -Dvendorarch=/usr/lib/i386-linux-gnu/perl5/5.20 -Dsiteprefix=/usr/local -Dsitelib=/usr/local/share/perl/5.20.2 -Dsitearch=/usr/local/lib/i386-linux-gnu/perl/5.20.2 -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3 -Dsiteman1dir=/usr/local/man/man1 -Dsiteman3dir=/usr/local/man/man3 -Duse64bitint -Dman1ext=1 -Dman3ext=3perl -Dpager=/usr/bin/sensible-pager -Uafs -Ud_csh -Ud_ualarm -Uusesfio -Uusenm -Ui_libutil -Uversiononly -DDEBUGGING=-g -Doptimize=-O2 -Duseshrplib -Dlibperl=libperl.so.5.20.2 -des'
hint=recommended, useposix=true, d_sigaction=define
useithreads=define, usemultiplicity=define
use64bitint=define, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O2 -g',
cppflags='-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include'
ccversion='', gccversion='4.9.2', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -fstack-protector -L/usr/local/lib'
libpth=/usr/local/lib /usr/lib/gcc/i586-linux-gnu/4.9/include-fixed /usr/include/i386-linux-gnu /usr/lib /lib/i386-linux-gnu /lib/../lib /usr/lib/i386-linux-gnu /usr/lib/../lib /lib
libs=-lgdbm -lgdbm_compat -ldb -ldl -lm -lpthread -lc -lcrypt
perllibs=-ldl -lm -lpthread -lc -lcrypt
libc=libc-2.19.so, so=so, useshrplib=true, libperl=libperl.so.5.20
gnulibc_version='2.19'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib -fstack-protector'


Characteristics of this binary (from libperl):
Compile-time options: HAS_TIMES MULTIPLICITY PERLIO_LAYERS
PERL_DONT_CREATE_GVSV
PERL_HASH_FUNC_ONE_AT_A_TIME_HARD
PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP
PERL_NEW_COPY_ON_WRITE PERL_PRESERVE_IVUV
USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES
USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE
USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF
USE_REENTRANT_API
Locally applied patches:
DEBPKG:debian/cpan_definstalldirs - Provide a sensible INSTALLDIRS default for modules installed from CPAN.
DEBPKG:debian/db_file_ver - http://bugs.debian.org/340047 Remove overly restrictive DB_File version check.
DEBPKG:debian/doc_info - Replace generic man(1) instructions with Debian-specific information.
DEBPKG:debian/enc2xs_inc - http://bugs.debian.org/290336 Tweak enc2xs to follow symlinks and ignore missing @INC directories.
DEBPKG:debian/errno_ver - http://bugs.debian.org/343351 Remove Errno version check due to upgrade problems with long-running processes.
DEBPKG:debian/libperl_embed_doc - http://bugs.debian.org/186778 Note that libperl-dev package is required for embedded linking
DEBPKG:fixes/respect_umask - Respect umask during installation
DEBPKG:debian/writable_site_dirs - Set umask approproately for site install directories
DEBPKG:debian/extutils_set_libperl_path - EU:MM: set location of libperl.a under /usr/lib
DEBPKG:debian/no_packlist_perllocal - Don't install .packlist or perllocal.pod for perl or vendor
DEBPKG:debian/prefix_changes - Fiddle with *PREFIX and variables written to the makefile
DEBPKG:debian/fakeroot - Postpone LD_LIBRARY_PATH evaluation to the binary targets.
DEBPKG:debian/instmodsh_doc - Debian policy doesn't install .packlist files for core or vendor.
DEBPKG:debian/ld_run_path - Remove standard libs from LD_RUN_PATH as per Debian policy.
DEBPKG:debian/libnet_config_path - Set location of libnet.cfg to /etc/perl/Net as /usr may not be writable.
DEBPKG:debian/mod_paths - Tweak @INC ordering for Debian
DEBPKG:debian/module_build_man_extensions - http://bugs.debian.org/479460 Adjust Module::Build manual page extensions for the Debian Perl policy
DEBPKG:debian/prune_libs - http://bugs.debian.org/128355 Prune the list of libraries wanted to what we actually need.
DEBPKG:fixes/net_smtp_docs - [rt.cpan.org #36038] http://bugs.debian.org/100195 Document the Net::SMTP 'Port' option
DEBPKG:debian/perlivp - http://bugs.debian.org/510895 Make perlivp skip include directories in /usr/local
DEBPKG:debian/deprecate-with-apt - http://bugs.debian.org/747628 Point users to Debian packages of deprecated core modules
DEBPKG:debian/squelch-locale-warnings - http://bugs.debian.org/508764 Squelch locale warnings in Debian package maintainer scripts
DEBPKG:debian/skip-upstream-git-tests - Skip tests specific to the upstream Git repository
DEBPKG:debian/patchlevel - http://bugs.debian.org/567489 List packaged patches for 5.20.2-3 in patchlevel.h
DEBPKG:debian/skip-kfreebsd-crash - http://bugs.debian.org/628493 [perl #96272] Skip a crashing test case in t/op/threads.t on GNU/kFreeBSD
DEBPKG:fixes/document_makemaker_ccflags - http://bugs.debian.org/628522 [rt.cpan.org #68613] Document that CCFLAGS should include $Config{ccflags}
DEBPKG:debian/find_html2text - http://bugs.debian.org/640479 Configure CPAN::Distribution with correct name of html2text
DEBPKG:debian/perl5db-x-terminal-emulator.patch - http://bugs.debian.org/668490 Invoke x-terminal-emulator rather than xterm in perl5db.pl
DEBPKG:debian/cpan-missing-site-dirs - http://bugs.debian.org/688842 Fix CPAN::FirstTime defaults with nonexisting site dirs if a parent is writable
DEBPKG:fixes/memoize_storable_nstore - [rt.cpan.org #77790] http://bugs.debian.org/587650 Memoize::Storable: respect 'nstore' option not respected
DEBPKG:debian/regen-skip - Skip a regeneration check in unrelated git repositories
DEBPKG:fixes/regcomp-mips-optim - [perl #122817] http://bugs.debian.org/754054 Downgrade the optimization of regcomp.c on mips and mipsel due to a gcc-4.9 bug
DEBPKG:debian/makemaker-pasthru - http://bugs.debian.org/758471 Pass LD settings through to subdirectories
DEBPKG:fixes/perldoc-less-R - [rt.cpan.org #98636] http://bugs.debian.org/758689 Tell the 'less' pager to allow terminal escape sequences
DEBPKG:fixes/pod_man_reproducible_date - http://bugs.debian.org/759405 Support POD_MAN_DATE in Pod::Man for the left-hand footer
DEBPKG:fixes/io_uncompress_gunzip_inmemory - http://bugs.debian.org/747363 [rt.cpan.org #95494] Fix gunzip to in-memory file handle
DEBPKG:fixes/socket_test_recv_fix - http://bugs.debian.org/758718 [perl #122657] Compare recv return value to peername in socket test
DEBPKG:fixes/hurd_socket_recv_todo - http://bugs.debian.org/758718 [perl #122657] TODO checking the result of recv() on hurd
DEBPKG:fixes/regexp-performance - [0fa70a0] http://bugs.debian.org/777556 [perl #123743] simpify and speed up /.*.../ handling
DEBPKG:fixes/failed_require_diagnostics - http://bugs.debian.org/781120 [perl #123270] Report inaccesible file on failed require
Built under linux
Compiled at Mar 29 2015 23:30:09
@INC:
/etc/perl
/usr/local/lib/i386-linux-gnu/perl/5.20.2
/usr/local/share/perl/5.20.2
/usr/lib/i386-linux-gnu/perl5/5.20
/usr/share/perl5
/usr/lib/i386-linux-gnu/perl/5.20
/usr/share/perl/5.20
/usr/local/lib/site_perl
.
--
Salutations, Vincent Veyron

https://marica.fr/
Gestion des contentieux, des dossiers de sinistres assurance et des contrats pour le service juridique
John D Groenveld
2015-06-03 11:46:01 UTC
Permalink
https://rt.cpan.org/Ticket/Display.html?id=3D102930#txn-1502924
Unfortunately, I can't reproduce that on Windows since the WinNT MPM
is threaded and hence requires a threaded perl to build with. However,
I think it's a failure introduced by r1682366, and (shooting in the
dark) I wonder if the patch below (also attached, although the patch
might have some Windows style EOLs) would fix it?
Fixed. Thank you!

John
***@acm.org
John D Groenveld
2015-06-03 13:45:58 UTC
Permalink
Post by Steve Hay
https://rt.cpan.org/Ticket/Display.html?id=102930#txn-1502924
With the patch, 2.0.9RC2 also builds with unthreaded
httpd-2.4.12 and perl-5.22.0, but test hits familiar
errors.

With perl-5.20.2, it test clean.


BTW I also have to kludge t/conf/httpd.conf by disabling
mod_proxy_balancer but I think that's an Illumos/Solaris
issue with Apache 2.4 thats not MP specific.

Thanks,
John
***@acm.org

Test Summary Report
-------------------
t/api/uri.t (Wstat: 0 Tests: 12 Failed: 0)
Parse errors: Bad plan. You planned 24 tests but ran 12.
t/apr-ext/uri.t (Wstat: 65280 Tests: 12 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 36 tests but ran 12.
t/apr/uri.t (Wstat: 0 Tests: 12 Failed: 0)
Parse errors: Bad plan. You planned 36 tests but ran 12.
t/directive/perlloadmodule3.t (Wstat: 0 Tests: 3 Failed: 3)
Failed tests: 1-3
t/modperl/print.t (Wstat: 0 Tests: 5 Failed: 0)
Parse errors: Bad plan. You planned 6 tests but ran 5.
t/modperl/printf.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: No plan found in TAP output
Files=245, Tests=3085, 338 wallclock secs ( 2.30 usr 2.22 sys + 200.19 cusr 106.02 csys = 310.73 CPU)
Result: FAIL
Failed 6/245 test programs. 3/3085 subtests failed.


$ /opt/apache24/bin/httpd -V
Server version: Apache/2.4.12 (Unix)
Server built: Jun 3 2015 08:47:59
Server's Module Magic Number: 20120211:41
Server loaded: APR 1.5.1, APR-UTIL 1.5.4
Compiled using: APR 1.5.1, APR-UTIL 1.5.4
Architecture: 64-bit
Server MPM: prefork
threaded: no
forked: yes (variable process count)
Server compiled with....
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_PROC_PTHREAD_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=256
-D HTTPD_ROOT="/opt/apache24"
-D SUEXEC_BIN="/opt/apache24/bin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"

$ perl -V
Summary of my perl5 (revision 5 version 22 subversion 0) configuration:

Platform:
osname=solaris, osvers=2.11, archname=i86pc-solaris-64
uname='sunos bernice 5.11 omnios-170cea2 i86pc i386 i86pc '
config_args='-Dprefix=/opt/apache24/perl-5.22.0 -Dcc=gcc -Duseshrplib -Uusemymalc -Duselargefiles -Ubincompat5005 -Doptimize=-O3 -Duse64bitall'
hint=recommended, useposix=true, d_sigaction=define
useithreads=undef, usemultiplicity=undef
use64bitint=define, use64bitall=define, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc', ccflags ='-m64 -fwrapv -fno-strict-aliasing -pipe -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DPERL_USE_SAFE_PUTENV',
optimize='-O3',
cppflags='-m64 -fwrapv -fno-strict-aliasing -pipe -fstack-protector'
ccversion='', gccversion='4.8.1', gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678, doublekind=3
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16, longdblkind=3
ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='gcc', ldflags =' -m64 -fstack-protector -L/usr/gnu/lib '
libpth=/opt/gcc-4.8.1/lib /opt/gcc-4.8.1/lib/gcc/i386-pc-solaris2.11/4.8.1/include-fixed /usr/lib /usr/gnu/lib /usr/ccs/lib
libs=-lpthread -lsocket -lnsl -ldl -lm -lc
perllibs=-lpthread -lsocket -lnsl -ldl -lm -lc
libc=/lib/libc.so, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' -R /opt/apache24/perl-5.22.0/lib/5.22.0/i86pc-solaris-64/CORE'
cccdlflags='-fPIC', lddlflags=' -shared -m64 -L/usr/gnu/lib -fstack-protector'


Characteristics of this binary (from libperl):
Compile-time options: HAS_TIMES PERLIO_LAYERS PERL_DONT_CREATE_GVSV
PERL_HASH_FUNC_ONE_AT_A_TIME_HARD PERL_MALLOC_WRAP
PERL_NEW_COPY_ON_WRITE PERL_PRESERVE_IVUV
PERL_USE_SAFE_PUTENV USE_64_BIT_ALL USE_64_BIT_INT
USE_LARGE_FILES USE_LOCALE USE_LOCALE_COLLATE
USE_LOCALE_CTYPE USE_LOCALE_NUMERIC USE_LOCALE_TIME
USE_PERLIO USE_PERL_ATOF
Built under solaris
Compiled at Jun 3 2015 08:06:39
@INC:
/opt/apache24/perl-5.22.0/lib/site_perl/5.22.0/i86pc-solaris-64
/opt/apache24/perl-5.22.0/lib/site_perl/5.22.0
/opt/apache24/perl-5.22.0/lib/5.22.0/i86pc-solaris-64
/opt/apache24/perl-5.22.0/lib/5.22.0
.

Loading...