1. Problem Description: 'make test' failed on t/api/server_const.t
I am trying to build Apache2/mod_perl2 on a Fedora Core 6 system which already has these components installed. I am under the impression that as long as I am installing in to /usr/local/apache2, there will be no conflict. I stopped the existing httpd process and then procedded as described in the section "Sequence of commands" below. After runing the test alone in verbose mode, I suspect this is the failure: # testing : Apache2::ServerUtil::get_server_version() # expected: Apache/2.2.4 (Unix) # received: Apache/2.2.4 Do I need to remove my Fedora sources? I have the following packages installed: httpd 2.2.4-2.1.fc6 httpd-devel 2.2.4-2.1.fc6 httpd-manual 2.2.4-2.1.fc6 apr 1.2.7-10 apr-devel 1.2.7-10 apr-util-devel 1.2.8-1.fc6 mod_perl 2.0.2-6.2.fc6 2. Used Components and their Configuration: *** mod_perl version 2.000003 *** using /home/ryan/src/mod_perl-2.0.3/lib/Apache2/BuildConfig.pm *** Makefile.PL options: MP_APR_LIB => aprext MP_AP_PREFIX => /usr/local/apache2 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.4 (Unix) Server built: Aug 6 2007 15:41:13 Server's Module Magic Number: 20051115:4 Server loaded: APR 1.2.7, APR-Util 1.2.8 Compiled using: APR 1.2.7, APR-Util 1.2.8 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 => (0x00946000) libm.so.6 => /lib/libm.so.6 (0x00ada000) libaprutil-1.so.0 => /usr/lib/libaprutil-1.so.0 (0x002fb000) libcrypt.so.1 => /lib/libcrypt.so.1 (0x0045c000) libldap-2.3.so.0 => /usr/lib/libldap-2.3.so.0 (0x06077000) liblber-2.3.so.0 => /usr/lib/liblber-2.3.so.0 (0x05e2f000) libdb-4.3.so => /lib/libdb-4.3.so (0x05f63000) libexpat.so.0 => /lib/libexpat.so.0 (0x00c5a000) libapr-1.so.0 => /usr/lib/libapr-1.so.0 (0x00660000) libpthread.so.0 => /lib/libpthread.so.0 (0x004f4000) libdl.so.2 => /lib/libdl.so.2 (0x00b03000) libc.so.6 => /lib/libc.so.6 (0x00998000) /lib/ld-linux.so.2 (0x0097b000) libuuid.so.1 => /lib/libuuid.so.1 (0x00110000) libpq.so.4 => /usr/lib/libpq.so.4 (0x003e8000) libsqlite3.so.0 => /usr/lib/libsqlite3.so.0 (0x00c7d000) libresolv.so.2 => /lib/libresolv.so.2 (0x00856000) libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0x0605c000) libssl.so.6 => /lib/libssl.so.6 (0x05b2b000) libcrypto.so.6 => /lib/libcrypto.so.6 (0x0596d000) libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x05aa1000) libnsl.so.1 => /lib/libnsl.so.1 (0x0083d000) libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x00918000) libcom_err.so.2 => /lib/libcom_err.so.2 (0x001e5000) libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x00114000) libz.so.1 => /usr/lib/libz.so.1 (0x00b09000) libkrb5support.so.0 => /usr/lib/libkrb5support.so.0 (0x0096d000) *** (apr|apu)-config linking info -laprutil-1 -lldap -llber -ldb-4.3 -lexpat -lapr-1 -lpthread -ldl *** /usr/local/bin/perl -V Summary of my perl5 (revision 5 version 8 subversion 8) configuration: Platform: osname=linux, osvers=2.6.20-1.2962.fc6, archname=i686-linux uname='linux devbox.lsnllc 2.6.20-1.2962.fc6 #1 smp tue jun 19 19:27:14 edt 2007 i686 i686 i386 gnulinux ' config_args='-des' hint=recommended, useposix=true, d_sigaction=define usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm', optimize='-O2', cppflags='-fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -I/usr/include/gdbm' ccversion='', gccversion='4.1.2 20070626 (Red Hat 4.1.2-13)', 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 -lc perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc libc=/lib/libc-2.5.so, so=so, useshrplib=false, libperl=libperl.a gnulibc_version='2.5' 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: PERL_MALLOC_WRAP USE_LARGE_FILES USE_PERLIO Built under linux Compiled at Aug 6 2007 15:28:31 %ENV: PERL_LWP_USE_HTTP_10="1" @INC: /usr/local/lib/perl5/5.8.8/i686-linux /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/i686-linux /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 : - 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 Mon Aug 6 23:04:57 2007 GMT. =================================================================== Sequence of commands =================================================================== # Compile and install apache cd ~/src/ tar xjf ~/software/httpd-2.2.4.tar.bz2 cd httpd-2.2.4/ autoconf ./configure make su -c "make install" # Compile and install perl cd ~/src/ tar xzf ~/software/perl.stable.tar.gz cd perl-5.8.8/ ./Configure -des make make test su -c "make install" # Oops, forgot the prefork flag, redo apache cd ../httpd-2.2.4/ ./configure --with-mpm=prefork make su -c "make install" cd .. # Compile and install mod_perl tar xzf ~/software/mod_perl-2.0-current.tar.gz cd mod_perl-2.0.3/ perl Makefile.PL MP_AP_PREFIX=/usr/local/apache2 make make test ... Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/api/server_const.t 3 1 33.33% 3 38 tests and 1 subtest skipped. Failed 1/236 test scripts, 99.58% okay. 1/2120 subtests failed, 99.95% okay. [warning] server localhost.localdomain:8529 shutdown [ error] error running tests (please examine t/logs/error_log) +--------------------------------------------------------+ | Please file a bug report: http://perl.apache.org/bugs/ | +--------------------------------------------------------+ make: *** [run_tests] Error 1 =================================================================== Output from: t/TEST -verbose t/api/server_const.t 2&> ~/tmp/mpout.txt =================================================================== [warning] setting ulimit to allow core files ulimit -c unlimited; /usr/local/bin/perl /home/ryan/src/mod_perl-2.0.3/t/TEST -verbose 't/api/server_const.t' '2' /usr/local/apache2/bin/httpd -d /home/ryan/src/mod_perl-2.0.3/t -f /home/ryan/src/mod_perl-2.0.3/t/conf/httpd.conf -D APACHE2 using Apache/2.2.4 (prefork MPM) waiting 120 seconds for server to start: .[Mon Aug 06 16:41:26 2007] [warn] Useless use of AllowOverride in line 910. [Mon Aug 06 16:41:26 2007] [info] 6 Apache2:: modules loaded [Mon Aug 06 16:41:26 2007] [info] 0 APR:: modules loaded [Mon Aug 06 16:41:26 2007] [info] base server + 28 vhosts ready to run tests [Mon Aug 06 16:41:26 2007] [warn] The Alias directive in mod_perl at line 1 will probably never match because it overlaps an earlier Alias. [Mon Aug 06 16:41:26 2007] [warn] The Alias directive in mod_perl at line 1 will probably never match because it overlaps an earlier Alias. [Mon Aug 06 16:41:26 2007] [warn] The Alias directive in mod_perl at line 1 will probably never match because it overlaps an earlier Alias. [Mon Aug 06 16:41:26 2007] [warn] The Alias directive in mod_perl at line 1 will probably never match because it overlaps an earlier Alias. [Mon Aug 06 16:41:26 2007] [warn] The Alias directive in mod_perl at line 1 will probably never match because it overlaps an earlier Alias. . waiting 120 seconds for server to start: ok (waited 0 secs) server localhost.localdomain:8529 started server localhost.localdomain:8530 listening (perlsections) server localhost.localdomain:8531 listening (inherit) server localhost.localdomain:8532 listening (filter_out_apache) server localhost.localdomain:8533 listening (TestVhost::log) server localhost.localdomain:8534 listening (TestVhost::config) server localhost.localdomain:8535 listening (TestUser::rewrite) server localhost.localdomain:8536 listening (TestModules::proxy) server localhost.localdomain:8537 listening (TestModperl::setupenv) server localhost.localdomain:8538 listening (TestModperl::merge) server localhost.localdomain:8539 listening (TestModperl::perl_options) server localhost.localdomain:8540 listening (TestModperl::perl_options2) server localhost.localdomain:8541 listening (TestProtocol::echo_bbs) server localhost.localdomain:8542 listening (TestProtocol::pseudo_http) server localhost.localdomain:8543 listening (TestProtocol::echo_block) server localhost.localdomain:8544 listening (TestProtocol::echo_filter) server localhost.localdomain:8545 listening (TestProtocol::echo_timeout) server localhost.localdomain:8546 listening (TestProtocol::echo_nonblock) server localhost.localdomain:8547 listening (TestProtocol::echo_bbs2) server localhost.localdomain:8548 listening (TestPreConnection::note) server localhost.localdomain:8549 listening (TestHooks::trans) server localhost.localdomain:8550 listening (TestHooks::init) server localhost.localdomain:8551 listening (TestHooks::stacked_handlers2) server localhost.localdomain:8552 listening (TestHooks::hookrun) server localhost.localdomain:8553 listening (TestHooks::startup) server localhost.localdomain:8554 listening (TestFilter::in_str_msg) server localhost.localdomain:8555 listening (TestFilter::in_bbs_inject_header) server localhost.localdomain:8556 listening (TestFilter::in_bbs_msg) server localhost.localdomain:8557 listening (TestFilter::both_str_con_add) server localhost.localdomain:8558 listening (TestDirective::perlmodule) server localhost.localdomain:8559 listening (TestDirective::perlrequire) server localhost.localdomain:8560 listening (TestDirective::perlloadmodule5) server localhost.localdomain:8561 listening (TestDirective::perlloadmodule4) server localhost.localdomain:8562 listening (TestDirective::perlloadmodule3) server localhost.localdomain:8563 listening (TestAPI::add_config) server localhost.localdomain:8564 listening (TestDirective::perlloadmodule6) server localhost.localdomain:8565 listening (TestHooks::push_handlers_anon) t/api/server_const....1..3 # Running under perl version 5.008008 for linux # Current time local: Mon Aug 6 16:41:26 2007 # Current time GMT: Mon Aug 6 23:41:26 2007 # Using Test.pm version 1.25 # Using Apache/Test.pm version 1.29 # testing : Apache2::ServerUtil::server_root() # expected: /home/ryan/src/mod_perl-2.0.3/t # received: /home/ryan/src/mod_perl-2.0.3/t ok 1 # testing : Apache2::ServerUtil::get_server_built() # expected: Aug 6 2007 15:41:13 # received: Aug 6 2007 15:41:13 ok 2 # testing : Apache2::ServerUtil::get_server_version() # expected: Apache/2.2.4 (Unix) # received: Apache/2.2.4 not ok 3 FAILED test 3 Failed 1/3 tests, 66.67% okay Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/api/server_const.t 3 1 33.33% 3 Failed 1/1 test scripts, 0.00% okay. 1/3 subtests failed, 66.67% okay. [warning] server localhost.localdomain:8529 shutdown [ error] error running tests (please examine t/logs/error_log)