FAQ
1. Problem Description:

Trying to build and install mod_perl from source. Have already built
perl and apache 2.2 from source, they both seem to be fine (latest
stable, both). But it is my first cut at this, so I could have made a
dumb error. Anyhow, all help appreciated.

"make test" fails. Here are the failures:

t/apache/content_length_header..........FAILED test 17
t/api/status............................FAILED tests 4-5

(verbose output:)

/usr/local/apache2/bin/httpd -d /home/daniel/build/mod_perl-2.0.2/t
-f /home/daniel/build/mod_perl-2.0.2/t/conf/httpd.conf -D APACHE2 -D
PERL_USEITHREADS
using Apache/2.2.3 (prefork MPM)
[Tue Sep 19 23:31:54 2006] [info] 6 Apache2.
waiting 120 seconds for server to start: ok (waited 1 secs)
server localhost:8529 started
server localhost:8530 listening (filter_out_apache)
server l# Failed test 17 in t/apache/content_length_header.t at line 71 fail #2
# Failed test 4 in t/api/status.t at line 35
# Failed test 5 in t/api/status.t at line 36
[warning] server localhost:8529 shutdown
[ error] error running tests (please examine t/logs/error_log)
erver localhost:8536 listening (TestVhost::log)
server localhost:8537 listening (TestVhost::config)
server localhost:8538 listening (TestProtocol::pseudo_http)
server localhost:8539 listening (TestProtocol::echo_bbs)
server localhost:8540 listening (TestProtocol::echo_filter)
server localhost:8541 listening (TestProtocol::echo_bbs2)
server localhost:8542 listening (TestProtocol::echo_timeout)
server localhost:8543 listening (TestProtocol::echo_block)
server localhost:8544 listening (TestProtocol::echo_nonblock)
server localhost:8545 listening (TestPreConnection::note)
server localhost:8546 listening (TestHooks::hookrun)
server localhost:8547 listening (TestHooks::init)
server localhost:8548 listening (TestHooks::trans)
server localhost:8549 listening (TestHooks::stacked_handlers2)
server localhost:8550 listening (TestHooks::startup)
server localhost:8551 listening (TestFilter::in_bbs_inject_header)
server localhost:8552 listening (TestFilter::in_str_msg)
server localhost:8553 listening (TestFilter::both_str_con_add)
server localhost:8554 listening (TestFilter::in_bbs_msg)
server localhost:8555 listening (TestDirective::perlmodule)
server localhost:8556 listening (TestDirective::perlrequire)
server localhost:8557 listening (TestDirective::perlloadmodule4)
server localhost:8558 listening (TestDirective::perlloadmodule5)
server localhost:8559 listening (TestDirective::perlloadmodule3)
server localhost:8560 listening (TestDirective::perlloadmodule6)
server localhost:8561 listening (TestHooks::push_handlers_anon)
t/apache/content_length_header....1..27
# Running under perl version 5.008008 for linux
# Current time local: Tue Sep 19 23:31:56 2006
# Current time GMT: Tue Sep 19 21:31:56 2006
# Using Test.pm version 1.25
# Using Apache/Test.pm version 1.27
# testing : GET /TestApache__content_length_header code
# expected: 200
# received: 200
ok 1
# testing : GET /TestApache__content_length_header C-L header
# expected: 0
# received: 0
ok 2
# testing : GET /TestApache__content_length_header content
# expected:
# received:
ok 3
# testing : GET /TestApache__content_length_header?set_content_length code
# expected: 200
# received: 200
ok 4
# testing : GET /TestApache__content_length_header?set_content_length C-L header
# expected: 0
# received: 0
ok 5
# testing : GET /TestApache__content_length_header?set_content_length content
# expected:
# received:
ok 6
# testing : GET /TestApache__content_length_header?send_body code
# expected: 200
# received: 200
ok 7
# testing : GET /TestApache__content_length_header?send_body C-L header
# expected: undef
# received: undef
ok 8
# testing : GET /TestApache__content_length_header?send_body content
# expected: This is a response string
# received: This is a response string
ok 9
# testing : GET
/TestApache__content_length_header?send_body+set_content_length code
# expected: 200
# received: 200
ok 10
# testing : GET
/TestApache__content_length_header?send_body+set_content_length C-L
header
# expected: 25
# received: 25
ok 11
# testing : GET
/TestApache__content_length_header?send_body+set_content_length
content
# expected: This is a response string
# received: This is a response string
ok 12
# testing : HEAD /TestApache__content_length_header code
# expected: 200
# received: 200
ok 13
# testing : HEAD /TestApache__content_length_header C-L header
# expected: undef
# received: undef
ok 14
# testing : HEAD /TestApache__content_length_header content
# expected:
# received:
ok 15
# testing : HEAD /TestApache__content_length_header?set_content_length code
# expected: 200
# received: 200
ok 16
# testing : HEAD /TestApache__content_length_header?set_content_length
C-L header
# expected: undef
# received: 25
not ok 17
# testing : HEAD /TestApache__content_length_header?set_content_length content
# expected:
# received:
ok 18
# testing : HEAD /TestApache__content_length_header?send_body code
# expected: 200
# received: 200
ok 19
# testing : HEAD /TestApache__content_length_header?send_body C-L header
# expected: undef
# received: undef
ok 20
# testing : HEAD /TestApache__content_length_header?send_body content
# expected:
# received:
ok 21
# testing : HEAD
/TestApache__content_length_header?send_body+set_content_length code
# expected: 200
# received: 200
ok 22
# testing : HEAD
/TestApache__content_length_header?send_body+set_content_length C-L
header
# expected: 25
# received: 25
ok 23
# testing : HEAD
/TestApache__content_length_header?send_body+set_content_length
content
# expected:
# received:
ok 24
# testing : HEAD
/TestApache__content_length_header?head_no_body+set_content_length
code
# expected: 200
# received: 200
ok 25
# testing : HEAD
/TestApache__content_length_header?head_no_body+set_content_length C-L
header
# expected: 25
# received: 25
ok 26
# testing : HEAD
/TestApache__content_length_header?head_no_body+set_content_length
content
# expected:
# received:
ok 27
FAILED test 17
Failed 1/27 tests, 96.30% okay
t/api/status......................1..6
# Running under perl version 5.008008 for linux
# Current time local: Tue Sep 19 23:31:57 2006
# Current time GMT: Tue Sep 19 21:31:57 2006
# Using Test.pm version 1.25
# Using Apache/Test.pm version 1.27
# testing : code
# expected: 303
# received: 303
ok 1
# testing : code message
# expected: See Other
# received: See Other
ok 2
# testing : content
# expected:
# received:
ok 3
# testing : code
# expected: 499
# received: 200
not ok 4
# testing : code message
# expected: FooBared
# received: OK
not ok 5
# testing : content
# expected:
# received:
ok 6
FAILED tests 4-5
Failed 2/6 tests, 66.67% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/apache/content_length_header.t 27 1 3.70% 17
t/api/status.t 6 2 33.33% 4-5
Failed 2/2 test scripts, 0.00% okay. 3/33 subtests failed, 90.91% okay.



2. Used Components and their Configuration:

*** mod_perl version 2.000002

*** using /home/daniel/build/mod_perl-2.0.2/lib/Apache2/BuildConfig.pm

*** Makefile.PL options:
MP_APR_LIB => aprext
MP_APXS => /usr/local/apache2/bin/apxs
MP_COMPAT_1X => 1
MP_GENERATE_XS => 1
MP_LIBNAME => mod_perl
MP_USE_DSO => 1


*** /usr/local/apache2/bin/httpd -V
Server version: Apache/2.2.3
Server built: Sep 19 2006 15:34:38
Server's Module Magic Number: 20051115:3
Server loaded: APR 1.2.7, APR-Util 1.2.7
Compiled using: APR 1.2.7, APR-Util 1.2.7
Architecture: 32-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_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=128
-D HTTPD_ROOT="/usr/local/apache2"
-D SUEXEC_BIN="/usr/local/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"

*** /usr/bin/ldd /usr/local/apache2/bin/httpd
linux-gate.so.1 => (0xffffe000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7f1f000)
libaprutil-1.so.0 => /usr/local/apache2/lib/libaprutil-1.so.0 (0xb7f0a000)
libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb7eeb000)
libapr-1.so.0 => /usr/local/apache2/lib/libapr-1.so.0 (0xb7ec9000)
librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0xb7ec1000)
libcrypt.so.1 => /lib/tls/i686/cmov/libcrypt.so.1 (0xb7e94000)
libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7e82000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7e7e000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7d4f000)
/lib/ld-linux.so.2 (0xb7f4f000)


*** (apr|apu)-config linking info

-L/usr/local/apache2/lib -laprutil-1 -lexpat
-L/usr/local/apache2/lib -lapr-1 -lrt -lcrypt -lpthread -ldl



*** /usr/local/bin/perl -V
Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
Platform:
osname=linux, osvers=2.6.15-27-386, archname=i686-linux-thread-multi
uname='linux daniel-ubuntu 2.6.15-27-386 #1 preempt sat sep 16
01:51:59 utc 2006 i686 gnulinux '
config_args='-d -Dusethreads'
hint=recommended, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef useithreads=define
usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
-fno-strict-aliasing -pipe -Wdeclaration-after-statement
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O2',
cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
-fno-strict-aliasing -pipe -Wdeclaration-after-statement
-I/usr/local/include'
ccversion='', gccversion='4.0.3 (Ubuntu 4.0.3-1ubuntu5)', 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 =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
libc=/lib/libc-2.3.6.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.3.6'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT
PERL_MALLOC_WRAP THREADS_HAVE_PIDS USE_ITHREADS
USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API
Built under linux
Compiled at Sep 19 2006 16:22:00
%ENV:
PERL_LWP_USE_HTTP_10="1"
@INC:
/usr/local/lib/perl5/5.8.8/i686-linux-thread-multi
/usr/local/lib/perl5/5.8.8
/usr/local/lib/perl5/site_perl/5.8.8/i686-linux-thread-multi
/usr/local/lib/perl5/site_perl/5.8.8
/usr/local/lib/perl5/site_perl
.

*** Packages of interest status:

Apache2 : -
Apache2::Request : -
CGI : 3.15
ExtUtils::MakeMaker: 6.30
LWP : 5.805
mod_perl : -
mod_perl2 : -


3. This is the core dump trace: (if you get a core dump):

[CORE TRACE COMES HERE]

This report was generated by t/REPORT on Tue Sep 19 21:12:54 2006 GMT.






--
Daniel McBrearty
email : danielmcbrearty at gmail.com
www.engoi.com : the multi - language vocab trainer
BTW : 0873928131

Search Discussions

  • Philip M. Gollucci at Sep 19, 2006 at 10:47 pm

    Daniel McBrearty wrote:
    1. Problem Description:

    Trying to build and install mod_perl from source. Have already built
    perl and apache 2.2 from source, they both seem to be fine (latest
    stable, both). But it is my first cut at this, so I could have made a
    dumb error. Anyhow, all help appreciated.

    "make test" fails. Here are the failures:

    t/apache/content_length_header..........FAILED test 17
    t/api/status............................FAILED tests 4-5
    Both are fixed in SVN. And Will be in 2.0.3. 2.0.3 is in Release Candidate Phase NOW.

    These errors btw are completely harmless. mod_perl is fine to use with them.

    Only the tests themselves changed.

    See the list archives.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupmodperl @
categoriesmodperl, perl
postedSep 19, '06 at 9:37p
activeSep 19, '06 at 10:47p
posts2
users2
websiteperl.apache.org

People

Translate

site design / logo © 2021 Grokbase