You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Jim Hayter <jh...@ecnext.com> on 2007/01/19 20:31:16 UTC

[mp2] t/api/server_const.t reports failure of Apache2::ServerUtil::get_server_version()

There appears to be a (minor?) difference between the two server_version
strings.  I don't know how important this is, but thought I should
report it.

Jim


1. Problem Description:

  make test is failing one of three tests for t/api/server_const,
related to Apache2::ServerUtil::get_server_version();

2. Used Components and their Configuration:

*** mod_perl version 2.000003

*** using /opt/mod_perl-2.0.3/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.4 (Unix)
Server built:   Jan 18 2007 14:09:17
Server's Module Magic Number: 20051115:4
Server loaded:  APR 1.2.8, APR-Util 1.2.8
Compiled using: APR 1.2.8, 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_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="/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
        libm.so.2 =>     /usr/lib/libm.so.2
        libaprutil-1.so.0 =>
/usr/local/apache2/lib/libaprutil-1.so.0
        libexpat.so.0 =>         /usr/local/lib/libexpat.so.0
        libiconv.so.2 =>         /usr/local/lib/libiconv.so.2
        libapr-1.so.0 =>         /usr/local/apache2/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
        libc.so.1 =>     /usr/lib/libc.so.1
        libgcc_s.so.1 =>         /usr/sfw/lib/libgcc_s.so.1
        libaio.so.1 =>   /usr/lib/libaio.so.1
        libmd5.so.1 =>   /usr/lib/libmd5.so.1
        libmp.so.2 =>    /usr/lib/libmp.so.2
        libscf.so.1 =>   /usr/lib/libscf.so.1
        libdoor.so.1 =>  /usr/lib/libdoor.so.1
        libuutil.so.1 =>         /usr/lib/libuutil.so.1
        /platform/SUNW,Sun-Fire-V210/lib/libc_psr.so.1
        /platform/SUNW,Sun-Fire-V210/lib/libmd5_psr.so.1


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

 -L/usr/local/apache2/lib -laprutil-1 -lexpat -liconv -L/usr/local/lib
 -L/usr/local/apache2/lib -lapr-1 -luuid -lsendfile -lrt -lsocket -lnsl
-lpthread



*** /usr/local/bin/perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
  Platform:
    osname=solaris, osvers=2.10, archname=sun4-solaris
    uname='sunos ecnext03 5.10 generic_118833-22 sun4u sparc
sunw,sun-fire-v210 '
    config_args='-Dcc=gcc -B/usr/ccs/bin/'
    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='gcc -B/usr/ccs/bin/', ccflags ='-fno-strict-aliasing
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O',
    cppflags='-fno-strict-aliasing'
    ccversion='', gccversion='3.4.3 (csl-sol210-3_4-branch+sol_rpath)',
gccosandvers='solaris2.10'
    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='gcc -B/usr/ccs/bin/', ldflags =' '
    libpth=/usr/lib /usr/ccs/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='-fPIC', lddlflags='-G'


Characteristics of this binary (from libperl):
  Compile-time options: USE_LARGE_FILES
  Built under solaris
  Compiled at Dec 14 2006 19:34:43
  %ENV:
    PERL_LWP_USE_HTTP_10="1"
  @INC:
    /usr/local/lib/perl5/5.8.0/sun4-solaris
    /usr/local/lib/perl5/5.8.0
    /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris
    /usr/local/lib/perl5/site_perl/5.8.0
    /usr/local/lib/perl5/site_perl
    /ecnext/comsite4/bin/utilities
    .

*** Packages of interest status:

Apache2            : -
Apache2::Request   : -
CGI                : 3.10
ExtUtils::MakeMaker: 6.03
LWP                : 5.805
mod_perl           : 1.29
mod_perl2          : -


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

  N/A

This report was generated by t/REPORT on Fri Jan 19 19:08:49 2007 GMT.

-------------8<---------- End Bug Report --------------8<----------

result of running test verbose:

t/api/server_const....1..3
# Using Apache/Test.pm version 1.29
# testing : Apache2::ServerUtil::server_root()
# expected: /opt/mod_perl-2.0.3/t
# received: /opt/mod_perl-2.0.3/t
ok 1
# testing : Apache2::ServerUtil::get_server_built()
# expected: Jan 18 2007 14:09:17
# received: Jan 18 2007 14:09:17
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

access_log:
127.0.0.1 - - [19/Jan/2007:14:19:42 -0500] "GET /index.html HTTP/1.0"
200 646
127.0.0.1 - - [19/Jan/2007:14:19:43 -0500] "GET /TestAPI__server_const
HTTP/1.0"
 200 404


error_log:
[Fri Jan 19 14:19:37 2007] [info] Init: Seeding PRNG with 0 bytes of
entropy
[Fri Jan 19 14:19:37 2007] [info] Init: Generating temporary RSA private
keys (512/1024 bits)
[Fri Jan 19 14:19:38 2007] [info] Init: Generating temporary DH
parameters (512/1024 bits)
[Fri Jan 19 14:19:38 2007] [warn] Init: Session Cache is not configured
[hint: SSLSessionCache]
[Fri Jan 19 14:19:38 2007] [info] Init: Initializing (virtual) servers
for SSL
[Fri Jan 19 14:19:38 2007] [info] Server: Apache/2.2.4, Interface:
mod_ssl/2.2.4, Library: OpenSSL/0.9.7g
END in modperl_extra.pl, pid=11145
[Fri Jan 19 14:19:40 2007] [info] Init: Seeding PRNG with 0 bytes of
entropy
[Fri Jan 19 14:19:40 2007] [info] Init: Generating temporary RSA private
keys (512/1024 bits)
[Fri Jan 19 14:19:41 2007] [info] Init: Generating temporary DH
parameters (512/1024 bits)
[Fri Jan 19 14:19:41 2007] [info] Init: Initializing (virtual) servers
for SSL
[Fri Jan 19 14:19:41 2007] [info] Server: Apache/2.2.4, Interface:
mod_ssl/2.2.4, Library: OpenSSL/0.9.7g
[Fri Jan 19 14:19:41 2007] [notice] Apache/2.2.4 (Unix) world domination
series/2.0 mod_ssl/2.2.4 OpenSSL/0.9.7g mod_perl/2.0.3 Perl/v5.8.0
configured -- resuming normal operations
[Fri Jan 19 14:19:41 2007] [info] Server built: Jan 18 2007 14:09:17
[Fri Jan 19 14:19:41 2007] [debug] prefork.c(991): AcceptMutex: fcntl
(default: fcntl)
# Failed test 3 in
/opt/mod_perl-2.0.3/t/response/TestAPI/server_const.pm at line 39
[Fri Jan 19 14:19:43 2007] [info] Child process pid=11160 is exiting
[Fri Jan 19 14:19:43 2007] [info] Child process pid=11160 is exiting -
server push
END in modperl_extra.pl, pid=11160
[Fri Jan 19 14:19:43 2007] [info] Child process pid=11159 is exiting
[Fri Jan 19 14:19:43 2007] [info] Child process pid=11159 is exiting -
server push
END in modperl_extra.pl, pid=11159
[Fri Jan 19 14:19:44 2007] [info] removed PID file
/opt/mod_perl-2.0.3/t/logs/httpd.pid (pid=11152)
[Fri Jan 19 14:19:44 2007] [notice] caught SIGTERM, shutting down
END in modperl_extra.pl, pid=11152

-- 
Jim Hayter
Lead Developer

ECNext, Inc.
614.682.5145 (office)
614.682.5104 (fax)       

Making e-Content Work for You