libapreq2 2.12 with mod_perl 2.0.4 on Mac OS X 10.6.4
am 19.07.2010 11:13:34 von Matthias SchmittHello,
since a few days I am trying to get the following combination to work on =
Mac OS X 10.6.4
- Apache 2.2.15
- Perl 5.10.1
- mod_perl 2.0.4
- libapreq2 2.12
The tests of libapreq2 always fail.
I tried nearly everything, so I am desperate enough to call this list =
for help after three days banging my head against the keyboard.
Here is what I do
1. Installing Perl
export CFLAGS=3D"-fPIC"
export CPPFLAGS=3D"-fPIC"
export LDFLAGS=3D"-fPIC"
../Configure -des -Dprefix=3D/Somewhere/perl5 -Dusethreads -Duseshrplib
make
make test
make install
I am getting these warnings while testing:
=
ext/List-Util/t/p_refaddr................................... ..Hexadecimal =
number > 0xffffffff non-portable at ../lib/Scalar/Util/PP.pm line 44.
lib/locale.................................................. ..FAILED at =
test 99
I am ignoring these as Perl is running fine and I know the locale test =
is failing by a known character set problem in Mac OS X.
2. Installing several Perl modules via CPAN required by the Apache HTTP =
Request library.
All tests finish successfully.
3. Installing Apache
../configure --prefix=3D/Somewhere/httpd --enable-mods-shared=3Dall =
--enable-dav --enable-rewrite --enable-ssl --enable-proxy =
--enable-proxy_http --enable-auth-digest --with-mpm=3Dworker =
--with-included-apr
make
make install
I am running several tests and Apache is working fine.
4. Installing mod_perl
perl Makefile.PL MP_AP_PREFIX=3D/Somewhere/httpd
make
make test
make install
I am getting there errors
t/hooks/authen_basic...........ok 1/4# Failed test 4 in =
t/hooks/authen_basic.t at line 26
t/hooks/authen_basic...........FAILED test 4
Failed 1/4 tests, 75.00% okay
t/hooks/authen_digest..........ok =20
t/hooks/authz..................ok 1/4# Failed test 4 in t/hooks/authz.t =
at line 19
t/hooks/authz..................FAILED test 4
As I do not intend to use these handlers for now, I ignore the problem =
and continue.=20
I am running several of my own test programs and Apache with mod_perl is =
always working fine.
5. Installing libapreq2
../configure --prefix=3D/Somewhere/libapreq2 =
--with-apache2-apxs=3D/Somewhere/httpd/bin/apxs --with-expat=3Dbuiltin =
--enable-perl-glue=20
The following tests fails with a loooong timeout:
------------
/Somewhere/httpd/bin/httpd -d /Somewhere/libapreq2-2.12/glue/perl/t -f =
/Somewhere/libapreq2-2.12/glue/perl/t/conf/httpd.conf -D APACHE2 -D =
PERL_USEITHREADS
using Apache/2.2.15 (worker MPM)
waiting 60 seconds for server to start: .[Fri Jul 16 17:25:00 2010] =
[warn] PassEnv variable PERL5LIB was undefined
..
waiting 60 seconds for server to start: ok (waited 1 secs)
server localhost:8529 started
t/api/cookie.t ....... request has failed (the response code was: 500)
see t/logs/error_log for more details
t/api/cookie.t ....... Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run =20
t/api/error.t ........ request has failed (the response code was: 500)
see t/logs/error_log for more details
t/api/error.t ........ Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run=20
t/api/module.t .......=20
------------
I am aborting here manually via ^c as there is obviously a major =
problem. While waiting for the single tests to finish the https process =
uses a lot of CPU power, so there is something happening, which looks to =
me like an indefinite loop.
When I am looking into t/logs/error_log I can see errors like:
[Mon Jul 19 09:50:15 2010] [debug] mod_apreq_access_test.c(93): [client =
127.0.0.1] (20014)Internal error: test not found: paring error detected =
(no param table)
[Mon Jul 19 09:50:15 2010] [debug] mod_apreq2.c(521): [client 127.0.0.1] =
(70008)Partial results are valid but processing is incomplete: cannot =
steal context: bad filter status
Here some more information from Apache:
Server version: Apache/2.2.15 (Unix)
Server built: Jul 19 2010 09:26:27
Server's Module Magic Number: 20051115:24
Server loaded: APR 1.4.2, APR-Util 1.3.9
Compiled using: APR 1.4.2, APR-Util 1.3.9
Architecture: 64-bit
Server MPM: Worker
threaded: yes (fixed thread count)
forked: yes (variable process count)
Server compiled with....
-D APACHE_MPM_DIR=3D"server/mpm/worker"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_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=3D128
-D HTTPD_ROOT=3D"/Somewhere/applications/httpd"
-D SUEXEC_BIN=3D"/Somewhere/applications/httpd/bin/suexec"
-D DEFAULT_SCOREBOARD=3D"logs/apache_runtime_status"
-D DEFAULT_ERRORLOG=3D"logs/error_log"
-D AP_TYPES_CONFIG_FILE=3D"conf/mime.types"
-D SERVER_CONFIG_FILE=3D"conf/httpd.conf"
Any idea how to trace this problem?
Thank you.
Best regards
Matthias Schmitt
magic moving pixel s.a.
23, Avenue Grande-Duchesse Charlotte
L-3441 Dudelange
Luxembourg
Phone: +352 54 75 75 - 0
http://www.mmp.lu