Re: Another error with MP_STATIC_EXTS=1

[prev] [thread] [next] [Date index for 2005/03/18]

From: Nick ***
Subject: Re: Another error with MP_STATIC_EXTS=1
Date: 11:07 on 18 Mar 2005
 >Nick *** wrote:
 >[...]
 >> But there is another bug as I said.
 >> Just run perl Makefile.PL MP_STATIC_EXTS=1 MP_COMPAT_1X=0 MP_USE_STATIC=1 MP_AP_CONFIGURE="--with-mpm=prefork" MP_AP_PREFIX=/usr/src/httpd
 >> and then run make. You will see what happens :)
 >
 >Indeed, I can reproduce it. Here is a quick bandaid (for the above case). 
 >I'll work on the proper solution and post it here when I have it.
 >
 >Index: lib/ModPerl/WrapXS.pm
 >===================================================================
 >--- lib/ModPerl/WrapXS.pm       (revision 158003)
 >+++ lib/ModPerl/WrapXS.pm       (working copy)
 >@@ -429,9 +429,10 @@
 >  use ModPerl::BuildMM ();
 >
 >  ModPerl::BuildMM::WriteMakefile(
 >-    'NAME'    => '$class',
 >-    'VERSION' => '$version',
 >-    'depend'  => $deps,
 >+    NAME    => '$class',
 >+    VERSION => '$version',
 >+    linkext  =>  {'LINKTYPE' => ''},
 >+    depend  => $deps,
 >  );
 >  EOF
 >
 >-------
 >% perl-5.8.6-ithread Makefile.PL MP_STATIC_EXTS=1 MP_COMPAT_1X=0 
 >MP_USE_STATIC=1 MP_AP_CONFIGURE="--with-mpm=prefork" 
 >MP_AP_PREFIX=/home/stas/apache.org/httpd-2.0 MP_INST_APACHE2=1 && make && 
 >make test
 >
 >All tests successful, 8 tests skipped.
 >Files=228, Tests=2250, 191 wallclock secs (151.60 cusr + 22.43 csys = 
 >174.03 CPU)
 >
 >All tests successful, 1 test skipped.
 >Files=15, Tests=75, 15 wallclock secs (10.23 cusr +  1.55 csys = 11.78 CPU)


The patch works, but new problem has arised.


-------------8<---------- Start Bug Report ------------8<----------
1. Problem Description:

  These tests fail:

doink123@spe190:~/mp2> t/TEST -clean
[warning] setting ulimit to allow core files
ulimit -c unlimited; /house/doink123/p_suse/bin/perl /house/doink123/mp2/t/TEST -clean
doink123@spe190:~/mp2> t/TEST -verbose t/apr-ext/base64.t t/apr-ext/bucket.t t/apr-ext/date.t t/apr-ext/finfo.t t/apr-ext/pool.t t/apr-ext/string.t t/apr-ext/table.t t/apr-ext/threadmutex.t t/apr-ext/uri.t t/apr-ext/util.t t/apr-ext/uuid.t


t/apr-ext/base64....Can't locate loadable object for module APR::Base64 in @INC (@INC contains: /house/doink123/mp2/Apache-Test /house/doink123/mp2/blib/lib /house/doink123/mp2/blib/arch /house/doink123/mp2 /house/doink123/mp2/lib /house/doink123/mp2/Apache-Test/lib /house/doink123/mp2/t/lib /house/doink123/p_suse/lib/perl5/5.8.5/x86_64-linux-thread-multi /house/doink123/p_suse/lib/perl5/5.8.5/x86_64-linux-thread-multi /house/doink123/p_suse/lib/perl5/5.8.5 /house/doink123/p_suse/lib/perl5/site_perl/5.8.5/x86_64-linux-thread-multi /house/doink123/p_suse/lib/perl5/site_perl/5.8.5/x86_64-linux-thread-multi /house/doink123/p_suse/lib/perl5/site_perl/5.8.5 /house/doink123/p_suse/lib/perl5/site_perl/5.8.5/x86_64-linux-thread-multi /house/doink123/p_suse/lib/perl5/site_perl/5.8.5 /house/doink123/p_suse/lib/perl5/site_perl . /house/doink123/p_suse/lib/perl5/5.8.5/x86_64-linux-thread-multi /house/doink123/p_suse/lib/perl5/5.8.5 /house/doink123/p_suse/lib/perl5/site_perl/5.8.5/x86_64-
 linux-thread-multi /house/doink123/p_suse/lib/perl5/site_perl/5.8.5 /house/doink123/p_suse/lib/perl5/site_perl) at /house/doink123/mp2/blib/lib/APR/XSLoader.pm line 30
Compilation failed in require at /house/doink123/mp2/t/lib/TestAPRlib/base64.pm line 11.
BEGIN failed--compilation aborted at /house/doink123/mp2/t/lib/TestAPRlib/base64.pm line 11.
Compilation failed in require at t/apr-ext/base64.t line 7.
BEGIN failed--compilation aborted at t/apr-ext/base64.t line 7.
dubious
        Test returned status 255 (wstat 65280, 0xff00)
t/apr-ext/bucket....Can't locate loadable object for module APR::Brigade in @INC (@INC contains: /house/doink123/mp2/Apache-Test /house/doink123/mp2/blib/lib /house/doink123/mp2/blib/arch /house/doink123/mp2 /house/doink123/mp2/lib /house/doink123/mp2/Apache-Test/lib /house/doink123/mp2/t/lib /house/doink123/p_suse/lib/perl5/5.8.5/x86_64-linux-thread-multi /house/doink123/p_suse/lib/perl5/5.8.5/x86_64-linux-thread-multi /house/doink123/p_suse/lib/perl5/5.8.5 /house/doink123/p_suse/lib/perl5/site_perl/5.8.5/x86_64-linux-thread-multi /house/doink123/p_suse/lib/perl5/site_perl/5.8.5/x86_64-linux-thread-multi /house/doink123/p_suse/lib/perl5/site_perl/5.8.5 /house/doink123/p_suse/lib/perl5/site_perl/5.8.5/x86_64-linux-thread-multi /house/doink123/p_suse/lib/perl5/site_perl/5.8.5 /house/doink123/p_suse/lib/perl5/site_perl . /house/doink123/p_suse/lib/perl5/5.8.5/x86_64-linux-thread-multi /house/doink123/p_suse/lib/perl5/5.8.5 /house/doink123/p_suse/lib/perl5/site_perl/5.8.5/x86_64
 -linux-thread-multi /house/doink123/p_suse/lib/perl5/site_perl/5.8.5 /house/doink123/p_suse/lib/perl5/site_perl) at /house/doink123/mp2/blib/lib/APR/XSLoader.pm line 30
Compilation failed in require at /house/doink123/mp2/t/lib/TestCommon/Utils.pm line 6.
BEGIN failed--compilation aborted at /house/doink123/mp2/t/lib/TestCommon/Utils.pm line 6.
Compilation failed in require at /house/doink123/mp2/t/lib/TestAPRlib/bucket.pm line 10.
BEGIN failed--compilation aborted at /house/doink123/mp2/t/lib/TestAPRlib/bucket.pm line 10.
Compilation failed in require at t/apr-ext/bucket.t line 7.
BEGIN failed--compilation aborted at t/apr-ext/bucket.t line 7.
dubious

[...]

[warning] server localhost:8529 shutdown
[  error] error running tests (please examine t/logs/error_log)


All tests fail because the "loadable object" is missing.
This is from the error_log:

END in modperl_extra.pl, pid=25664
[Fri Mar 18 06:01:16 2005] [notice] Apache/2.0.53 (Unix) world domination series/2.0 mod_perl/1.999.22-dev Perl/v5.8.5 configured -- resuming normal operations
[Fri Mar 18 06:01:16 2005] [info] Server built: Mar 18 2005 05:20:08
[Fri Mar 18 06:01:16 2005] [debug] prefork.c(956): AcceptMutex: sysvsem (default: sysvsem)
[Fri Mar 18 06:01:18 2005] [info] Child process pid=25763 is exiting
END in modperl_extra.pl, pid=25763
[Fri Mar 18 06:01:18 2005] [info] Child process pid=25764 is exiting
END in modperl_extra.pl, pid=25764
[Fri Mar 18 06:01:18 2005] [warn] child process 25763 still did not exit, sending a SIGTERM
[Fri Mar 18 06:01:18 2005] [warn] child process 25764 still did not exit, sending a SIGTERM
[Fri Mar 18 06:01:18 2005] [info] removed PID file /house/doink123/mp2/t/logs/httpd.pid (pid=25720)
[Fri Mar 18 06:01:18 2005] [notice] caught SIGTERM, shutting down
END in modperl_extra.pl, pid=25720




2. Used Components and their Configuration:

*** mod_perl version 1.999022

*** using /house/doink123/mp2/lib/Apache/BuildConfig.pm

*** Makefile.PL options:
  MP_APR_LIB      => aprext
  MP_AP_CONFIGURE => --with-mpm=prefork
  MP_AP_PREFIX    => /house/doink123/httpd
  MP_COMPAT_1X    =>
  MP_GENERATE_XS  => 1
  MP_LIBNAME      => mod_perl
  MP_STATIC_EXTS  => 1
  MP_USE_STATIC   => 1


*** /house/doink123/httpd/httpd -V
Server version: Apache/2.0.53
Server built:   Mar 18 2005 05:20:08
Server's Module Magic Number: 20020903:9
Architecture:   64-bit
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 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"


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

-L/house/doink123/httpd/srclib/apr/.libs
 -L/house/doink123/httpd/srclib/apr -lapr-0 -lrt -lm -lcrypt -lnsl  -lpthread -ldl
-L/house/doink123/httpd/srclib/apr-util/.libs
 -L/house/doink123/httpd/srclib/apr-util -laprutil-0 -lgdbm -ldb-4.2 -lexpat



*** /house/doink123/p_suse/bin/perl -V
Summary of my perl5 (revision 5 version 8 subversion 5) configuration:
  Platform:
    osname=linux, osvers=2.6.5-7.147-smp, archname=x86_64-linux-thread-multi
    uname='linux spe190 2.6.5-7.147-smp #1 smp thu jan 27 09:19:29 utc 2005 x86_64 x86_64 x86_64 gnulinux '
    config_args='-Dprefix=/house/doink123/p_suse -Dusethreads -Duseithreads -des'
    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=define use64bitall=define uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe -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 -I/usr/local/include'
    ccversion='', gccversion='3.3.3 (SuSE Linux)', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -lgdbm -ldl -lm -lcrypt -lutil -lpthread -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
    libc=, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.3.3'
  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 USE_ITHREADS USE_64_BIT_INT USE_64_BIT_ALL USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
  Built under linux
  Compiled at Mar 11 2005 23:32:59
  %ENV:
    PERL_LWP_USE_HTTP_10="1"
  @INC:
    /house/doink123/p_suse/lib/perl5/5.8.5/x86_64-linux-thread-multi
    /house/doink123/p_suse/lib/perl5/5.8.5
    /house/doink123/p_suse/lib/perl5/site_perl/5.8.5/x86_64-linux-thread-multi
    /house/doink123/p_suse/lib/perl5/site_perl/5.8.5
    /house/doink123/p_suse/lib/perl5/site_perl
    .

*** Packages of interest status:

Apache::Request: -
CGI            : 3.05
LWP            : -
mod_perl       : -


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 Fri Mar 18 10:41:34 2005 GMT.

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


-----------------------------------------------------------------
http://gbg.bg/search - Изпробвайте още сега най-добрата българска търсачка!

Another error with MP_STATIC_EXTS=1
Nick *** 00:01 on 12 Mar 2005

Re: Another error with MP_STATIC_EXTS=1
Stas Bekman 02:33 on 17 Mar 2005

Re: Another error with MP_STATIC_EXTS=1
Nick *** 08:17 on 17 Mar 2005

Re: Another error with MP_STATIC_EXTS=1
Stas Bekman 02:18 on 18 Mar 2005

Re: Another error with MP_STATIC_EXTS=1
Nick *** 11:07 on 18 Mar 2005

Re: Another error with MP_STATIC_EXTS=1
Stas Bekman 16:33 on 18 Mar 2005

Generated at 16:59 on 18 Mar 2005 by mariachi v0.52