I am using a legacy web application that uses Apache 1.3.41 and mod_perl 1.30. I have to install some perl modules with cpan and when trying to install 'cpan Apache::Request' it fails in the tests and I don't understand why. Could someone give me a hint? Here is the result of the compilation and the contents of the error log. Thanks.
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....# Failed test 1 in t/apreq/big_input.t at line 40 t/apreq/big_input....NOK 1/21# Failed test 2 in t/apreq/big_input.t at + line 40 fail #2 t/apreq/big_input....NOK 2/21# Failed test 3 in t/apreq/big_input.t at + line 40 fail #3 t/apreq/big_input....NOK 3/21# Failed test 4 in t/apreq/big_input.t at + line 40 fail #4 t/apreq/big_input....NOK 4/21# Failed test 5 in t/apreq/big_input.t at + line 40 fail #5 t/apreq/big_input....NOK 5/21# Failed test 6 in t/apreq/big_input.t at + line 40 fail #6 t/apreq/big_input....NOK 6/21# Failed test 7 in t/apreq/big_input.t at + line 40 fail #7 t/apreq/big_input....NOK 7/21# Failed test 8 in t/apreq/big_input.t at + line 40 fail #8 t/apreq/big_input....NOK 8/21# Failed test 9 in t/apreq/big_input.t at + line 40 fail #9 # Failed test 10 in t/apreq/big_input.t at line 63 # Failed test 11 in t/apreq/big_input.t at line 63 fail #2 # Failed test 12 in t/apreq/big_input.t at line 63 fail #3 # Failed test 13 in t/apreq/big_input.t at line 63 fail #4 t/apreq/big_input....NOK 9/21# Failed test 14 in t/apreq/big_input.t a +t line 63 fail #5 t/apreq/big_input....NOK 13/21# Failed test 15 in t/apreq/big_input.t +at line 63 fail #6 t/apreq/big_input....NOK 14/21# Failed test 16 in t/apreq/big_input.t +at line 63 fail #7 t/apreq/big_input....NOK 16/21# Failed test 17 in t/apreq/big_input.t +at line 63 fail #8 t/apreq/big_input....NOK 17/21# Failed test 18 in t/apreq/big_input.t +at line 63 fail #9 t/apreq/big_input....NOK 18/21# Failed test 19 in t/apreq/big_input.t +at line 63 fail #10 t/apreq/big_input....NOK 19/21# Failed test 20 in t/apreq/big_input.t +at line 63 fail #11 t/apreq/big_input....NOK 20/21# 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.......NOK 1/1# Failed test 1 in t/apreq/cookie.t at lin +e 21 t/apreq/cookie.......FAILED test 1 Failed 1/1 tests, 0.00% okay t/apreq/inherit......NOK 1/1# Failed test 1 in t/apreq/inherit.t at li +ne 11 t/apreq/inherit......FAILED test 1 Failed 1/1 tests, 0.00% okay t/apreq/request......NOK 1/2# Failed test 1 in t/apreq/request.t at li +ne 18 t/apreq/request......NOK 2/2# Failed test 2 in t/apreq/request.t at li +ne 26 t/apreq/request......FAILED tests 1-2 Failed 2/2 tests, 0.00% okay Failed Test Stat Wstat Total Fail List of Failed ---------------------------------------------------------------------- +--------- t/apreq/big_input.t 21 21 1-21 t/apreq/cookie.t 1 1 1 t/apreq/inherit.t 1 1 1 t/apreq/request.t 2 2 1-2 Failed 4/4 test scripts. 25/25 subtests failed. Files=4, Tests=25, 2 wallclock secs ( 1.41 cusr + 0.16 csys = 1.57 +CPU) Failed 4/4 test programs. 25/25 subtests failed. [warning] server localhost:8529 shutdown [ error] error running tests (please examine t/logs/error_log) [ error] oh shucks, server dumped core [ error] for stacktrace, run: gdb /usr/local/apache/bin/httpd -core / +home/dabd/.cpan/build/libapreq-1.34-jJqTXe/t/core make: *** [run_tests] Error 1 ISAAC/libapreq-1.34.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, t +ry: reports ISAAC/libapreq-1.34.tar.gz Warning (usually harmless): 'YAML' not installed, will not store persi +stent state Running make install make test had returned bad status, won't install without force
Error log:
[Tue Feb 17 11:27:15 2009] [info] created shared memory segment #51445 +99 [Tue Feb 17 11:27:15 2009] [notice] Apache/1.3.41 (Unix) AuthPG/1.5 mo +d_perl/1.30 configured -- resuming normal operations [Tue Feb 17 11:27:15 2009] [info] Server built: Feb 16 2009 17:41:52 [Tue Feb 17 11:27:15 2009] [notice] Accept mutex: sysvsem (Default: sy +svsem) [Tue Feb 17 11:27:17 2009] [error] Attempt to reload Apache/Table.pm a +borted.\nCompilation failed in require at /home/dabd/.cpan/build/liba +preq-1.34-jJqTXe/blib/lib/Apache/Cookie.pm line 21.\nBEGIN failed--co +mpilation aborted at /home/dabd/.cpan/build/libapreq-1.34-jJqTXe/blib +/lib/Apache/Cookie.pm line 21.\nCompilation failed in require at /hom +e/dabd/.cpan/build/libapreq-1.34-jJqTXe/t/response/TestApReq/big_inpu +t.pm line 9.\nBEGIN failed--compilation aborted at /home/dabd/.cpan/b +uild/libapreq-1.34-jJqTXe/t/response/TestApReq/big_input.pm line 9.\n +Compilation failed in require at (eval 9) line 3.\n [Tue Feb 17 11:27:17 2009] [error] Undefined subroutine &TestApReq::bi +g_input::handler called.\n [Tue Feb 17 11:27:17 2009] [error] Undefined subroutine &TestApReq::bi +g_input::handler called.\n [Tue Feb 17 11:27:17 2009] [error] Undefined subroutine &TestApReq::bi +g_input::handler called.\n [Tue Feb 17 11:27:17 2009] [error] Undefined subroutine &TestApReq::bi +g_input::handler called.\n [Tue Feb 17 11:27:17 2009] [error] Undefined subroutine &TestApReq::bi +g_input::handler called.\n [Tue Feb 17 11:27:17 2009] [error] Undefined subroutine &TestApReq::bi +g_input::handler called.\n [Tue Feb 17 11:27:17 2009] [error] Undefined subroutine &TestApReq::bi +g_input::handler called.\n [Tue Feb 17 11:27:17 2009] [error] Undefined subroutine &TestApReq::bi +g_input::handler called.\n [Tue Feb 17 11:27:17 2009] [error] Undefined subroutine &TestApReq::bi +g_input::handler called.\n [Tue Feb 17 11:27:17 2009] [error] Undefined subroutine &TestApReq::bi +g_input::handler called.\n [Tue Feb 17 11:27:17 2009] [error] Undefined subroutine &TestApReq::bi +g_input::handler called.\n [Tue Feb 17 11:27:17 2009] [error] Undefined subroutine &TestApReq::bi +g_input::handler called.\n [Tue Feb 17 11:27:17 2009] [error] Undefined subroutine &TestApReq::bi +g_input::handler called.\n [Tue Feb 17 11:27:17 2009] [error] Undefined subroutine &TestApReq::bi +g_input::handler called.\n [Tue Feb 17 11:27:17 2009] [error] Undefined subroutine &TestApReq::bi +g_input::handler called.\n [Tue Feb 17 11:27:17 2009] [error] Undefined subroutine &TestApReq::bi +g_input::handler called.\n [Tue Feb 17 11:27:17 2009] [error] Undefined subroutine &TestApReq::bi +g_input::handler called.\n [Tue Feb 17 11:27:17 2009] [error] Undefined subroutine &TestApReq::bi +g_input::handler called.\n [Tue Feb 17 11:27:17 2009] [error] Undefined subroutine &TestApReq::bi +g_input::handler called.\n [Tue Feb 17 11:27:17 2009] [error] Undefined subroutine &TestApReq::bi +g_input::handler called.\n [Tue Feb 17 11:27:17 2009] [error] Undefined subroutine &TestApReq::bi +g_input::handler called.\n [Tue Feb 17 11:27:17 2009] [error] Attempt to reload Apache/Cookie.pm +aborted.\nCompilation failed in require at /home/dabd/.cpan/build/lib +apreq-1.34-jJqTXe/t/response/TestApReq/cookie.pm line 9.\nBEGIN faile +d--compilation aborted at /home/dabd/.cpan/build/libapreq-1.34-jJqTXe +/t/response/TestApReq/cookie.pm line 9.\nCompilation failed in requir +e at (eval 32) line 3.\n [Tue Feb 17 11:27:17 2009] [error] Undefined subroutine &TestApReq::co +okie::handler called.\n [Tue Feb 17 11:27:18 2009] [error] Attempt to reload Apache/Table.pm a +borted.\nCompilation failed in require at /home/dabd/.cpan/build/liba +preq-1.34-jJqTXe/blib/lib/Apache/Request.pm line 21.\nBEGIN failed--c +ompilation aborted at /home/dabd/.cpan/build/libapreq-1.34-jJqTXe/bli +b/lib/Apache/Request.pm line 21.\nCompilation failed in require at /h +ome/dabd/.cpan/build/libapreq-1.34-jJqTXe/t/response/TestApReq/inheri +t.pm line 3.\nBEGIN failed--compilation aborted at /home/dabd/.cpan/b +uild/libapreq-1.34-jJqTXe/t/response/TestApReq/inherit.pm line 3.\nCo +mpilation failed in require at (eval 33) line 3.\n [Tue Feb 17 11:27:18 2009] [error] Undefined subroutine &TestApReq::in +herit::handler called.\n [Tue Feb 17 11:27:18 2009] [error] Attempt to reload Apache/Request.pm + aborted.\nCompilation failed in require at /home/dabd/.cpan/build/li +bapreq-1.34-jJqTXe/t/response/TestApReq/request.pm line 10.\nBEGIN fa +iled--compilation aborted at /home/dabd/.cpan/build/libapreq-1.34-jJq +TXe/t/response/TestApReq/request.pm line 10.\nCompilation failed in r +equire at (eval 34) line 3.\n [Tue Feb 17 11:27:18 2009] [error] Undefined subroutine &TestApReq::re +quest::handler called.\n [Tue Feb 17 11:27:18 2009] [error] Undefined subroutine &TestApReq::re +quest::handler called.\n [Tue Feb 17 11:27:18 2009] [info] removed PID file /home/dabd/.cpan/bu +ild/libapreq-1.34-jJqTXe/t/logs/httpd.pid (pid=1853) [Tue Feb 17 11:27:18 2009] [notice] caught SIGTERM, shutting down

In reply to error installing "Apache::Request" with cpan by dabd

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.