tests failing when installing libapreq under Leopard
am 22.10.2008 18:46:28 von Brian------=_Part_24236_9765489.1224693988865
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hi All. I've googled tons and searched the list and can't seem to find an
answer to my problem.
I am trying to install libapreq 1.33 on OS X Leopard. I have successfully
compiled and installed Apache 1.3 with mod_perl 1.3 statically linked. That
seems to work fine. I can start apache and the log file shows mod_perl to be
installed and everything seems ok at that point.
Next I tried to install Apache::Request by
downloading libapreq-1.33.tar.gz from CPAN but 'make test' is resulting in
errors. 100% of the tests are failing. I should note that I did execute
"export ARCHFLAGS=-arch x86_64" prior to building all packages as suggested
in the past. Here is what i believe to be the relevant error message from
the test script:
[Wed Oct 22 12:08:51 2008] [notice] Apache/1.3.41 (Darwin) mod_perl/1.30
configured -- resuming normal operations
[Wed Oct 22 12:08:51 2008] [info] Server built: Oct 22 2008 11:19:51
[Wed Oct 22 12:08:51 2008] [notice] Accept mutex: flock (Default: flock)
[Wed Oct 22 12:08:53 2008] [error] Can't load
'/usr/local/src/libapreq-1.33/blib/arch/auto/Apache/Cookie/C ookie.bundle'
for module Apache::Cookie:
dlopen(/usr/local/src/libapreq-1.33/blib/arch/auto/Apache/Co okie/Cookie.bundle,
1): Symbol not found: _ap_null_cleanup\n Referenced from:
/usr/local/src/libapreq-1.33/blib/arch/auto/Apache/Cookie/Co okie.bundle\n
Expected in: dynamic lookup\n at
/Library/Perl/5.8.8/darwin-thread-multi-2level/mod_perl.pm line
14\nCompilation failed in require at
/usr/local/src/libapreq-1.33/t/response/TestApReq/big_input. pm line
9.\nBEGIN failed--compilation aborted at
/usr/local/src/libapreq-1.33/t/response/TestApReq/big_input. pm line
9.\nCompilation failed in require at (eval 10) line 3.\n
Unfortunately this error message is a little outside of my understanding.
Here is a copy/paste of my console during the whole installation process:
bartobrians-macbook-pro:src brian$ cd libapreq-1.33
bartobrians-macbook-pro:libapreq-1.33 brian$ perl Makefile.PL -apxs
/usr/local/httpd/sbin/apxs -httpd /usr/local/httpd/sbin/httpd
[ info] generating script t/TEST
Checking if your kit is complete...
Looks good
Writing Makefile for libapreq
mkdir ../blib
mkdir ../blib/arch
mkdir ../blib/arch/auto
mkdir ../blib/arch/auto/libapreq
Writing Makefile for Apache::Request
Writing Makefile for Apache::Cookie
Writing Makefile for libapreq
bartobrians-macbook-pro:libapreq-1.33 brian$ make
cp lib/Apache/libapreq.pm blib/lib/Apache/libapreq.pm
cp libapreq.pod blib/lib/libapreq.pod
cc -c -I/Library/Perl/5.8.8/darwin-thread-multi-2level/auto/Apache /include
-I/Library/Perl/5.8.8/darwin-thread-multi-2level/auto/Apache /include/modules/perl
-I/Library/Perl/5.8.8/darwin-thread-multi-2level/auto/Apache /include/include
-I/Library/Perl/5.8.8/darwin-thread-multi-2level/auto/Apache /include/regex
-I/Library/Perl/5.8.8/darwin-thread-multi-2level/auto/Apache /include/os/unix
-arch x86_64 -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp
-fno-strict-aliasing -Wdeclaration-after-statement -I/usr/local/include -O3
-DVERSION=\"\" -DXS_VERSION=\"\"
"-I/System/Library/Perl/5.8.8/darwin-thread-multi-2level/COR E"
apache_request.c
cc -c -I/Library/Perl/5.8.8/darwin-thread-multi-2level/auto/Apache /include
-I/Library/Perl/5.8.8/darwin-thread-multi-2level/auto/Apache /include/modules/perl
-I/Library/Perl/5.8.8/darwin-thread-multi-2level/auto/Apache /include/include
-I/Library/Perl/5.8.8/darwin-thread-multi-2level/auto/Apache /include/regex
-I/Library/Perl/5.8.8/darwin-thread-multi-2level/auto/Apache /include/os/unix
-arch x86_64 -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp
-fno-strict-aliasing -Wdeclaration-after-statement -I/usr/local/include -O3
-DVERSION=\"\" -DXS_VERSION=\"\"
"-I/System/Library/Perl/5.8.8/darwin-thread-multi-2level/COR E"
apache_cookie.c
cc -c -I/Library/Perl/5.8.8/darwin-thread-multi-2level/auto/Apache /include
-I/Library/Perl/5.8.8/darwin-thread-multi-2level/auto/Apache /include/modules/perl
-I/Library/Perl/5.8.8/darwin-thread-multi-2level/auto/Apache /include/include
-I/Library/Perl/5.8.8/darwin-thread-multi-2level/auto/Apache /include/regex
-I/Library/Perl/5.8.8/darwin-thread-multi-2level/auto/Apache /include/os/unix
-arch x86_64 -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp
-fno-strict-aliasing -Wdeclaration-after-statement -I/usr/local/include -O3
-DVERSION=\"\" -DXS_VERSION=\"\"
"-I/System/Library/Perl/5.8.8/darwin-thread-multi-2level/COR E"
apache_multipart_buffer.c
rm -rf ../blib/arch/auto/libapreq/libapreq.a
/usr/bin/ar cr ../blib/arch/auto/libapreq/libapreq.a apache_request.o
apache_cookie.o apache_multipart_buffer.o && /usr/bin/ar ts
.../blib/arch/auto/libapreq/libapreq.a
__.SYMDEF SORTED
apache_request.o
apache_cookie.o
apache_multipart_buffer.o
chmod 755 ../blib/arch/auto/libapreq/libapreq.a
cp apache_multipart_buffer.h
.../blib/arch/auto/libapreq/include/apache_multipart_buffer. h
cp apache_cookie.h ../blib/arch/auto/libapreq/include/apache_cookie.h
cp apache_request.h ../blib/arch/auto/libapreq/include/apache_request.h
cp Request.pm ../blib/lib/Apache/Request.pm
/usr/bin/perl /System/Library/Perl/5.8.8/ExtUtils/xsubpp -typemap
/System/Library/Perl/5.8.8/ExtUtils/typemap -typemap
/Library/Perl/5.8.8/darwin-thread-multi-2level/auto/Apache/t ypemap
Request.xs > Request.xsc && mv Request.xsc Request.c
cc -c -I../c
-I/Library/Perl/5.8.8/darwin-thread-multi-2level/auto/Apache /include
-I/Library/Perl/5.8.8/darwin-thread-multi-2level/auto/Apache /include/modules/perl
-I/Library/Perl/5.8.8/darwin-thread-multi-2level/auto/Apache /include/include
-I/Library/Perl/5.8.8/darwin-thread-multi-2level/auto/Apache /include/regex
-I/Library/Perl/5.8.8/darwin-thread-multi-2level/auto/Apache /include/os/unix
-arch x86_64 -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp
-fno-strict-aliasing -Wdeclaration-after-statement -I/usr/local/include -O3
-DVERSION=\"1.33\" -DXS_VERSION=\"1.33\"
"-I/System/Library/Perl/5.8.8/darwin-thread-multi-2level/COR E" Request.c
Running Mkbootstrap for Apache::Request ()
chmod 644 Request.bs
rm -f ../blib/arch/auto/Apache/Request/Request.bundle
cc -mmacosx-version-min=10.5.1 -arch x86_64 -bundle -undefined
dynamic_lookup -L/usr/local/lib Request.o
.../blib/arch/auto/libapreq/libapreq.a -o
.../blib/arch/auto/Apache/Request/Request.bundle \
\
chmod 755 ../blib/arch/auto/Apache/Request/Request.bundle
cp Request.bs ../blib/arch/auto/Apache/Request/Request.bs
chmod 644 ../blib/arch/auto/Apache/Request/Request.bs
Manifying ../blib/man3/Apache::Request.3pm
cp Cookie.pm ../blib/lib/Apache/Cookie.pm
/usr/bin/perl /System/Library/Perl/5.8.8/ExtUtils/xsubpp -typemap
/System/Library/Perl/5.8.8/ExtUtils/typemap -typemap
/Library/Perl/5.8.8/darwin-thread-multi-2level/auto/Apache/t ypemap
Cookie.xs > Cookie.xsc && mv Cookie.xsc Cookie.c
cc -c -I../c
-I/Library/Perl/5.8.8/darwin-thread-multi-2level/auto/Apache /include
-I/Library/Perl/5.8.8/darwin-thread-multi-2level/auto/Apache /include/modules/perl
-I/Library/Perl/5.8.8/darwin-thread-multi-2level/auto/Apache /include/include
-I/Library/Perl/5.8.8/darwin-thread-multi-2level/auto/Apache /include/regex
-I/Library/Perl/5.8.8/darwin-thread-multi-2level/auto/Apache /include/os/unix
-arch x86_64 -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp
-fno-strict-aliasing -Wdeclaration-after-statement -I/usr/local/include -O3
-DVERSION=\"1.3\" -DXS_VERSION=\"1.3\"
"-I/System/Library/Perl/5.8.8/darwin-thread-multi-2level/COR E" Cookie.c
Running Mkbootstrap for Apache::Cookie ()
chmod 644 Cookie.bs
rm -f ../blib/arch/auto/Apache/Cookie/Cookie.bundle
cc -mmacosx-version-min=10.5.1 -arch x86_64 -bundle -undefined
dynamic_lookup -L/usr/local/lib Cookie.o
.../blib/arch/auto/libapreq/libapreq.a -o
.../blib/arch/auto/Apache/Cookie/Cookie.bundle \
\
chmod 755 ../blib/arch/auto/Apache/Cookie/Cookie.bundle
cp Cookie.bs ../blib/arch/auto/Apache/Cookie/Cookie.bs
chmod 644 ../blib/arch/auto/Apache/Cookie/Cookie.bs
Manifying ../blib/man3/Apache::Cookie.3pm
Manifying blib/man3/Apache::libapreq.3pm
Manifying blib/man3/libapreq.3pm
bartobrians-macbook-pro:libapreq-1.33 brian$ make test
/usr/bin/perl -Iblib/arch -Iblib/lib \
t/TEST -clean
[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/bin/perl /usr/local/src/libapreq-1.33/t/TEST
-clean
APACHE_TEST_GROUP= APACHE_TEST_HTTPD= APACHE_TEST_PORT= APACHE_TEST_USER=
APACHE_TEST_APXS= \
/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 /usr/local/src/libapreq-1.33/t/TEST
-bugreport -verbose=0
APXS (/usr/local/httpd/sbin/apxs) query for SBINDIR failed
APXS (/usr/local/httpd/sbin/apxs) query for TARGET failed
APXS (/usr/local/httpd/sbin/apxs) query for SYSCONFDIR failed
APXS (/usr/local/httpd/sbin/apxs) query for PREFIX failed
APXS (/usr/local/httpd/sbin/apxs) query for LIBEXECDIR failed
APXS (/usr/local/httpd/sbin/apxs) query for LIBEXECDIR failed
APXS (/usr/local/httpd/sbin/apxs) query for LIBEXECDIR failed
/usr/local/httpd/sbin/httpd -d /usr/local/src/libapreq-1.33/t -f
/usr/local/src/libapreq-1.33/t/conf/httpd.conf -D APACHE1 -D
PERL_USEITHREADS
using Apache/1.3.41
waiting 60 seconds for server to start: .
waiting 60 seconds for server to start: ok (waited 0 secs)
server localhost:8529 started
t/apreq/big_input....APXS (/usr/local/httpd/sbin/apxs) query for SBINDIR
failed
APXS (/usr/local/httpd/sbin/apxs) query for SYSCONFDIR failed
APXS (/usr/local/httpd/sbin/apxs) query for PREFIX failed
# Failed test 1 in t/apreq/big_input.t at line 40
t/apreq/big_input....NOK 1# Failed test 2 in t/apreq/big_input.t at line 40
fail #2
t/apreq/big_input....NOK 2# Failed test 3 in t/apreq/big_input.t at line 40
fail #3
t/apreq/big_input....NOK 3# Failed test 4 in t/apreq/big_input.t at line 40
fail #4
t/apreq/big_input....NOK 4# Failed test 5 in t/apreq/big_input.t at line 40
fail #5
t/apreq/big_input....NOK 5# Failed test 6 in t/apreq/big_input.t at line 40
fail #6
t/apreq/big_input....NOK 6# Failed test 7 in t/apreq/big_input.t at line 40
fail #7
t/apreq/big_input....NOK 7# Failed test 8 in t/apreq/big_input.t at line 40
fail #8
t/apreq/big_input....NOK 8# Failed test 9 in t/apreq/big_input.t at line 40
fail #9
t/apreq/big_input....NOK 9# Failed test 10 in t/apreq/big_input.t at line
63
t/apreq/big_input....NOK 10# Failed test 11 in t/apreq/big_input.t at line
63 fail #2
t/apreq/big_input....NOK 11# Failed test 12 in t/apreq/big_input.t at line
63 fail #3
t/apreq/big_input....NOK 12# Failed test 13 in t/apreq/big_input.t at line
63 fail #4
t/apreq/big_input....NOK 13# Failed test 14 in t/apreq/big_input.t at line
63 fail #5
t/apreq/big_input....NOK 14# Failed test 15 in t/apreq/big_input.t at line
63 fail #6
t/apreq/big_input....NOK 15# Failed test 16 in t/apreq/big_input.t at line
63 fail #7
t/apreq/big_input....NOK 16# Failed test 17 in t/apreq/big_input.t at line
63 fail #8
t/apreq/big_input....NOK 17# Failed test 18 in t/apreq/big_input.t at line
63 fail #9
t/apreq/big_input....NOK 18# Failed test 19 in t/apreq/big_input.t at line
63 fail #10
t/apreq/big_input....NOK 19# Failed test 20 in t/apreq/big_input.t at line
63 fail #11
t/apreq/big_input....NOK 20# Failed test 21 in t/apreq/big_input.t at line
63 fail #12
t/apreq/big_input....FAILED tests 1-21
Failed 21/21 tests, 0.00% okay
t/apreq/cookie.......APXS (/usr/local/httpd/sbin/apxs) query for SBINDIR
failed
APXS (/usr/local/httpd/sbin/apxs) query for SYSCONFDIR failed
APXS (/usr/local/httpd/sbin/apxs) query for PREFIX failed
# Failed test 1 in t/apreq/cookie.t at line 21
t/apreq/cookie.......FAILED test 1
Failed 1/1 tests, 0.00% okay
t/apreq/inherit......APXS (/usr/local/httpd/sbin/apxs) query for SBINDIR
failed
APXS (/usr/local/httpd/sbin/apxs) query for SYSCONFDIR failed
APXS (/usr/local/httpd/sbin/apxs) query for PREFIX failed
# Failed test 1 in t/apreq/inherit.t at line 11
t/apreq/inherit......FAILED test 1
Failed 1/1 tests, 0.00% okay
t/apreq/request......APXS (/usr/local/httpd/sbin/apxs) query for SBINDIR
failed
APXS (/usr/local/httpd/sbin/apxs) query for SYSCONFDIR failed
APXS (/usr/local/httpd/sbin/apxs) query for PREFIX failed
# Failed test 1 in t/apreq/request.t at line 18
t/apreq/request......NOK 1# Failed test 2 in t/apreq/request.t at line 26
t/apreq/request......FAILED tests 1-2
Failed 2/2 tests, 0.00% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
------------------------------------------------------------ -------------------
t/apreq/big_input.t 21 21 100.00% 1-21
t/apreq/cookie.t 1 1 100.00% 1
t/apreq/inherit.t 1 1 100.00% 1
t/apreq/request.t 2 2 100.00% 1-2
Failed 4/4 test scripts, 0.00% okay. 25/25 subtests failed, 0.00% okay.
[warning] server localhost:8529 shutdown
[ error] error running tests (please examine t/logs/error_log)
make: *** [run_tests] Error 1
t/logs/error_log contains the error message that I posted at the top.
I can skip the test and install it, however, apache errors with the same
message after i configure httpd.conf with a framework like mason.
Thanks,
Brian
------=_Part_24236_9765489.1224693988865
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hi All. I've googled tons and searched the list and can't seem to find an answer to my problem.
preq-1.33/t/response/TestApReq/ line 9.\nCompilation failed in require at (eval 10) line 3.\n
rary/Perl/5.8.8/darwin-thread-multi-2level/CORE" apache_request.c
/usr/bin/perl /System/Library/Perl/5.8.8/ExtUtils/xsubpp -typemap /System/Library/Perl/5.8.8/ExtUtils/typemap -typemap /Library/Perl/5.8.8/darwin-thread-multi-2level/auto/Apache/t ypemap Request.xs > Request.xsc && mv Request.xsc Request.c
------=_Part_24236_9765489.1224693988865--