Re: [MP2] failed to resolve handler `Apache::PerlSections'

2003-12-07 Thread Enrico Sorcinelli
On Thu, 04 Dec 2003 17:16:38 -0800
Stas Bekman <[EMAIL PROTECTED]> wrote:

Hi Stas,

>[...]
>> The problem seems to be as following: Apache::Status somehow 
>> autovivifies Apache::PerlSections stash, while Apache/PerlSections.pm 
>> wasn't loaded yet. That's why preloading Apache::PerlSections solves the 
>> problem. Our code does not attempt to load packages whose stashes exist, 
>> which is obviously wrong. I'll post a patch soonish. I think instead of 
>> checking for the stash, we need to check %INC.

>It was a bit trickier than I thought, but now the code is even simpler to 
>follow. This should solve your problem Enrico. 'make test' pass 100% with this 
>patch.

I've applied the patch (manually because 'patch' fails) to mp 1.9911
(Perl 5.8.1): all tests pass and the problem seems to be solved.

You will insert it into the current CVS or we should apply the patch
each time (or we should be preload Apache::PerlSections)?

Many thanks! :-)

by

- Enrico

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[mp2] mod_perl test suite fails

2003-12-07 Thread Volker Kroll

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

mod_perl compiles fine but all tests seem to fail.

in the error log I do find:

**03 14:42:34 2003] [error] failed to resolve handler `TestHooks::trans'
[Wed Dec 03 14:42:34 2003] [error] [client 127.0.0.1] Can't locate
TestHooks/trans.pm in @INC (@INC contains:
/root/mod_perl-1.99_11/Apache-Test/lib /root/mod_perl-1.99_11/t/response
/root/mod_perl-1.99_11/t/protocol /root/mod_perl-1.99_11/t/preconnection
/root/mod_perl-1.99_11/t/hooks /root/mod_perl-1.99_11/t/filter
/root/mod_perl-1.99_11/t
/root/mod_perl-1.99_11/t/htdocs/testdirective/perlmodule-vh
/root/mod_perl-1.99_11/t/htdocs/testdirective/main
/root/mod_perl-1.99_11/t/ /root/mod_perl-1.99_11/t/lib/perl
/root/mod_perl-1.99_11/blib/lib /root/mod_perl-1.99_11/blib/arch
/usr/lib/perl5/5.8.2/i686-linux-thread-multi /usr/lib/perl5/5.8.2
/usr/lib/perl5/site_perl/5.8.2/i686-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.6.1
/usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl) at (eval 66)
line 3.

but the file does exist.

 mod_perl version 1.9911


*** using lib/Apache/BuildConfig.pm
*** Makefile.PL options:
  MP_APXS=> /usr/local/apache-perl/bin/apxs
  MP_COMPAT_1X   => 1
  MP_GENERATE_XS => 1
  MP_LIBNAME => mod_perl
  MP_USE_DSO => 1
  MP_USE_STATIC  => 1


*** /usr/local/apache-perl/bin/httpd -V
Server version: Apache/2.0.48
Server built:   Dec  3 2003 14:06:59
Server's Module Magic Number: 20020903:4
Architecture:   32-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/apache-perl"
 -D SUEXEC_BIN="/usr/local/apache-perl/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/perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 2) configuration:
  Platform:
osname=linux, osvers=2.4.9-e.27, archname=i686-linux-thread-multi
uname='linux batman 2.4.9-e.27 #1 fri nov 14 13:05:14 cet 2003 i686
unknown '
config_args='-des -Dversion=5.8.2 [EMAIL PROTECTED]
-Dcc=gcc -Dinstallprefix=/usr -Dprefix=/usr -Dsiteprefix=/usr
-Dotherlibdirs=/usr/lib/perl5/5.8.2 -Duseshrplib -Dusethreads
-Duseithreads -Dd_dosuid -Dd_semctl_semun -Di_shadow -Di_syslog
-Dman3ext=3pm -Duseperlio -Dinstallusrbinperl -Ubincompat5005
-Uversiononly -Darchname=i686-linux -Dpager=/usr/bin/less -isr'
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='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
optimize='-O2',
cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
-fno-strict-aliasing -I/usr/local/include -I/usr/include/gdbm'
ccversion='', gccversion='2.96 2731 (Red Hat Linux 7.2
2.96-118.7.2)', 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='gcc', 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=/lib/libc-2.2.4.so, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version='2.2.4'
  Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic
-Wl,-rpath,/usr/lib/perl5/5.8.2/i686-linux-thread-multi/CORE'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl): 
  Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES
PERL_IMPLICIT_CONTEXT
  Built under linux
  Compiled at Dec  3 2003 11:01:30
  %ENV:
PERL_LWP_USE_HTTP_10="1"
  @INC:
/usr/lib/perl5/5.8.2/i686-linux-thread-multi
/usr/lib/perl5/5.8.2
/usr/lib/perl5/site_perl/5.8.2/i686-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.2
/usr/lib/perl5/site_perl/5.6.1
/usr/lib/perl5/site_perl/5.6.0
/usr/lib/perl5/site_perl
/usr/lib/perl5/5.8.2/i686-linux-thread-multi
/usr/lib/perl5/5.8.2
.


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