All, 1. Problem Description:
I'm trying to build mod_perl 2.0.2 on Solaris 8 against apache httpd 2.2.2. I've seen other references to httpd 2.2.x on the mailing list archives, so would I be correct in assuming that mod_perl2 is supported on with httpd 2.2.x series? The make itself works fine, but the 'make test' phase fails the following: 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 I build httpd which the following options: LDFLAGS=-L/content/research/pkgs/openldap/2.3.24/lib CPPFLAGS=-I/content/research/pkgs/openldap/2.3.24/include ./configure --prefix=/content/research/pkgs/httpd/2.2.2 --enable-mods-shared=all --enable-proxy=shared --disable-auth-digest --enable-authnz-ldap --enable-deflate --enable-ldap --with-ldap --enable-so And I'm attempting to build mod_perl with the folllowing options: perl Makefile.PL PREFIX=/content/research/pkgs/mod_perl/2.0.2 MP_APXS=/content/research/pkgs/httpd/2.2.2/bin/apxs I'm building mod_perl and httpd with the same compiler that was used to build perl. Has anybody else managed to build this combination of mod_perl and httpd on Solaris 8? Here's the output I get from: t/TEST -verbose apache/content_length_header.t api/status.t [warning] Skipping 'set unlimited ulimit for coredumps', since we are running as a non-root user on Solaris /content/research/pkgs/httpd/2.2.2/bin/httpd -d /apps/home/shahsag/build/mod_perl/mod_perl-2.0.2/t -f /apps/home/shahsag/build/mod_perl/mod_perl-2.0.2/t/conf/httpd.conf -D APACHE2 using Apache/2.2.2 (prefork MPM) waiting 120 seconds for server to start: .[Tue Jun 20 16:50:06 2006] [info] 6 Apache2:: modules loaded [Tue Jun 20 16:50:06 2006] [info] 0 APR:: modules loaded [Tue Jun 20 16:50:06 2006] [info] base server + 27 vhosts ready to run tests .... waiting 120 seconds for server to start: ok (waited 4 secs) server localhost:8529 started server localhost:8530 listening (filter_out_apache) server localhost:8531 listening (TestModules::proxy) server localhost:8532 listening (TestModperl::merge) server localhost:8533 listening (TestModperl::perl_options) server localhost:8534 listening (TestModperl::setupenv) server localhost:8535 listening (TestUser::rewrite) server 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.008006 for solaris # Current time local: Tue Jun 20 16:50:10 2006 # Current time GMT: Tue Jun 20 15:50:10 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 # Failed test 17 in t/apache/content_length_header.t at line 71 fail #2 # 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.008006 for solaris # Current time local: Tue Jun 20 16:50:12 2006 # Current time GMT: Tue Jun 20 15:50:12 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 # Failed test 4 in t/api/status.t at line 35 not ok 4 # Failed test 5 in t/api/status.t at line 36 # 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. [warning] server localhost:8529 shutdown [ error] error running tests (please examine t/logs/error_log) 2. Used Components and their Configuration: *** mod_perl version 2.000002 *** using /apps/home/shahsag/build/mod_perl/mod_perl-2.0.2/lib/Apache2/BuildConfig.pm *** Makefile.PL options: MP_APR_LIB => aprext MP_APXS => /content/research/pkgs/httpd/2.2.2/bin/apxs MP_COMPAT_1X => 1 MP_GENERATE_XS => 1 MP_LIBNAME => mod_perl MP_USE_DSO => 1 *** /content/research/pkgs/httpd/2.2.2/bin/httpd -V Server version: Apache/2.2.2 Server built: Jun 15 2006 12:51:01 Server's Module Magic Number: 20051115:2 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_FCNTL_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="/content/research/pkgs/httpd/2.2.2" -D SUEXEC_BIN="/content/research/pkgs/httpd/2.2.2/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 /content/research/pkgs/httpd/2.2.2/bin/httpd libm.so.1 => /usr/lib/libm.so.1 libaprutil-1.so.0 => /content/research/pkgs/httpd/2.2.2/lib/libaprutil-1.so.0 libldap-2.3.so.0 => /usr/lib/libldap-2.3.so.0 libresolv.so.2 => /usr/lib/libresolv.so.2 libgen.so.1 => /usr/lib/libgen.so.1 liblber-2.3.so.0 => /usr/lib/liblber-2.3.so.0 libexpat.so.0 => /content/research/pkgs/httpd/2.2.2/lib/libexpat.so.0 libiconv.so.2 => /usr/local/lib/libiconv.so.2 libapr-1.so.0 => /content/research/pkgs/httpd/2.2.2/lib/libapr-1.so.0 libuuid.so.1 => /usr/lib/libuuid.so.1 libsendfile.so.1 => /usr/lib/libsendfile.so.1 librt.so.1 => /usr/lib/librt.so.1 libsocket.so.1 => /usr/lib/libsocket.so.1 libnsl.so.1 => /usr/lib/libnsl.so.1 libpthread.so.1 => /usr/lib/libpthread.so.1 libdl.so.1 => /usr/lib/libdl.so.1 libc.so.1 => /usr/lib/libc.so.1 libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1 libucb.so.1 => /usr/ucblib/libucb.so.1 libelf.so.1 => /usr/lib/libelf.so.1 libaio.so.1 => /usr/lib/libaio.so.1 libmp.so.2 => /usr/lib/libmp.so.2 libthread.so.1 => /usr/lib/libthread.so.1 /usr/platform/SUNW,Sun-Fire-V240/lib/libc_psr.so.1 *** (apr|apu)-config linking info -L/content/research/pkgs/httpd/2.2.2/lib -laprutil-1 -lldap -llber -lexpat -liconv -L/content/research/pkgs/httpd/2.2.2/lib -lapr-1 -luuid -lsendfile -lrt -lsocket -lnsl -lpthread -ldl *** /opt/perl586/bin/perl -V Summary of my perl5 (revision 5 version 8 subversion 6) configuration: Platform: osname=solaris, osvers=2.8, archname=sun4-solaris uname='sunos engsun05 5.8 generic_108528-29 sun4u sparc sunw,ultrasparc-iii-cengine ' config_args='' 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='/opt/SUNWspro/bin/cc', ccflags ='-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-O', cppflags='-I/usr/local/include' ccversion='Sun C 5.5 2003/03/12', gccversion='', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='/opt/SUNWspro/bin/cc', ldflags =' -L/usr/lib -L/usr/ccs/lib -L/opt/SUNWspro/prod/lib -L/usr/local/lib ' libpth=/usr/lib /usr/ccs/lib /opt/SUNWspro/prod/lib /usr/local/lib libs=-lsocket -lnsl -ldl -lm -lc perllibs=-lsocket -lnsl -ldl -lm -lc libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' ' cccdlflags='-KPIC', lddlflags='-G -L/usr/lib -L/usr/ccs/lib -L/opt/SUNWspro/prod/lib -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: USE_LARGE_FILES Built under solaris Compiled at Feb 11 2005 09:12:04 %ENV: PERL5LIB="/home/shahsag/install/cpan/personal/lib:/home/shahsag/install/cpan/5.008006/lib" PERL5_CPANPLUS_CONFIG="/home/shahsag/.cpanplus/config" PERL_LWP_USE_HTTP_10="1" @INC: /home/shahsag/install/cpan/personal/lib/5.8.6/sun4-solaris /home/shahsag/install/cpan/personal/lib/5.8.6 /home/shahsag/install/cpan/personal/lib/sun4-solaris /home/shahsag/install/cpan/personal/lib /home/shahsag/install/cpan/5.008006/lib/sun4-solaris /home/shahsag/install/cpan/5.008006/lib /opt/perl586/lib/5.8.6/sun4-solaris /opt/perl586/lib/5.8.6 /opt/perl586/lib/site_perl/5.8.6/sun4-solaris /opt/perl586/lib/site_perl/5.8.6 /opt/perl586/lib/site_perl . *** Packages of interest status: Apache2 : - Apache2::Request : - CGI : 3.05 ExtUtils::MakeMaker: 6.17 LWP : - mod_perl : - mod_perl2 : 2.000002 Regards Sagar