Hi,

On Tue, 21 Sep 2004, Tom Schindl wrote:

> Hi,
>
> but the test-suite runs fine at least on my cvs checkout. You don't show
> which modules you're loading. Try to load the same modules
> "t/response/TestModperl/cookie.pm" does.
>
> These are:
> * use Apache::RequestRec ();
> * use Apache::RequestIO ();

I did use those modules (reported version 0.01 for both though). However,
I found that the problem can be fixed in an even more obvious way, e.g. by
including:

 PerlModule APR::Table

in my httpd.conf. It seems that this module is not "use"d by
Apache::RequestRec so it must be pulled in by the handler itself - I'm not
sure whether that constitutes a bug, an error in documentation or me being
someone who didn't read the documentation well enough.

Imvho a module returning an APR::Table object should use the package
implementing the object (thus, Apache::RequestRec should "use
APR::Table"). Since this is how I am used to be working with packages and
Perl was not hinting that APR::Table was not loaded at all I overlooked
the obvious.

Thank you for your time and pointing me to the working example in the test
suite.

Kind regards,

Sebastiaan

> Tom
>
> [EMAIL PROTECTED] wrote:
> > 1. Problem Description:
> >
> > When running a handler like:
> >
> > sub handler {
> >
> >   my $r = shift;
> >   my $cookie = $r->headers_in->{Cookie};
> >
> > }
> >
> > this results in the following error in the Apache error log:
> >
> > [Tue Sep 21 11:39:50 2004] [error] [client 130.89.164.70] Can't locate
> > object method "FETCH" via package "APR::Table" at
> > /home/sebastiaan/test/lib/perl5/site_perl/5.8.2/NederHost/Web/Handler/UCP.pm
> > line 47.\n
> >
> > This error is also triggered by CGI/Cookie.pm (CGI 3.05, CGI/Cookie.pm
> > 1.24):
> >
> > [Tue Sep 21 10:49:41 2004] [error] [client 130.89.164.70] Can't locate
> > object method "FETCH" via package "APR::Table" at
> > /home/sebastiaan/test/lib/perl5/5.8.2/CGI/Cookie.pm line 76.\n
> >
> > It seems to me that the tied interface of APR::Table is not completely
> > implemented. I report this as a bug since this module is flagged as being
> > completed. The error occurred in both latest stable release (mod_perl
> > 1.99_16) as with the snapshot modperl-2.0_20040921043658.tar.gz.
> >
> > Or, I am doing something braindead, in which case this problem report
> > should be ignored ;-)
> >
> > 2. Used Components and their Configuration:
> >
> > *** mod_perl version 1.9917
> >
> > *** using /home/sebastiaan/test/src/modperl-2.0/lib/Apache/BuildConfig.pm
> >
> > *** Makefile.PL options:
> >   MP_APR_LIB     => aprext
> >   MP_APXS        => /home/sebastiaan/test/apache/bin/apxs
> >   MP_COMPAT_1X   => 1
> >   MP_GENERATE_XS => 1
> >   MP_LIBNAME     => mod_perl
> >   MP_USE_DSO     => 1
> >
> >
> > *** /home/sebastiaan/test/apache/bin/httpd -V
> > Server version: Apache/2.0.51
> > Server built:   Sep 20 2004 21:58:27
> > Server's Module Magic Number: 20020903:9
> > 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="/home/sebastiaan/test/apache"
> >  -D SUEXEC_BIN="/home/sebastiaan/test/apache/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/home/sebastiaan/test/apache/lib -lapr-0 -lrt -lm -lcrypt -lnsl
> > -lpthread -ldl
> >  -L/home/sebastiaan/test/apache/lib -laprutil-0 -lgdbm -ldb -lexpat
> >
> >
> >
> > *** /home/sebastiaan/test/bin/perl -V
> > Summary of my perl5 (revision 5.0 version 8 subversion 2) configuration:
> >   Platform:
> >     osname=linux, osvers=2.4.25, archname=i686-linux
> >     uname='linux cartman 2.4.25 #2 mon feb 23 19:55:00 cet 2004 i686
> > unknown '
> >     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='cc', ccflags ='-fno-strict-aliasing -I/usr/local/include
> > -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
> >     optimize='-O3',
> >     cppflags='-fno-strict-aliasing -I/usr/local/include'
> >     ccversion='', gccversion='2.95.3 20010315 (release)', 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 -lndbm -lgdbm -ldl -lm -lcrypt -lutil -lc
> >     perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
> >     libc=/lib/libc-2.2.3.so, so=so, useshrplib=false, libperl=libperl.a
> >     gnulibc_version='2.2.3'
> >   Dynamic Linking:
> >     dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
> >     cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'
> >
> >
> > Characteristics of this binary (from libperl):
> >   Compile-time options: USE_LARGE_FILES
> >   Built under linux
> >   Compiled at Nov 29 2003 01:45:18
> >   %ENV:
> >     PERL_LWP_USE_HTTP_10="1"
> >   @INC:
> >     /home/sebastiaan/test/lib/perl5/5.8.2/i686-linux
> >     /home/sebastiaan/test/lib/perl5/5.8.2
> >     /home/sebastiaan/test/lib/perl5/site_perl/5.8.2/i686-linux
> >     /home/sebastiaan/test/lib/perl5/site_perl/5.8.2
> >     /home/sebastiaan/test/lib/perl5/site_perl
> >     .
> >
> > *** Packages of interest status:
> >
> > Apache::Request: -
> > CGI            : 3.05
> > LWP            : 5.69
> > mod_perl       : 1.9917
> >
> >
> > 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 Tue Sep 21 09:44:06 2004 GMT.
> >
> > Kind regards,
> >
>
>
> Reclaim Your Inbox!
> http://www.mozilla.org/products/thunderbird
>

-- 
Sebastiaan Hoogeveen <[EMAIL PROTECTED]>

NederHost
http://www.nederhost.nl
Fax: 020 - 4095 982




-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to