After having to specify full path to require files, I found that there were
some more errors showing up in the error log concerning RegistryCooker.pm on
lines 168 and 745 as follows:
[Sat Mar 13 16:24:35 2004] [error] [client 10.2.1.52] Argument "cmd=browse&dir=" isn't numeric in subroutine entry at /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Apache2/ModPerl/RegistryCooker.pm line 168. Here is the bug report:
-------------8<---------- Start Bug Report
------------8<----------
1. Problem Description: RegistryCooker.pm error statements appearing in error_log after
installing
MP2 1.99_13. 2. Used Components and their Configuration:
*** mod_perl version 1.9913
*** using lib/Apache/BuildConfig.pm
*** Makefile.PL options: MP_AP_PREFIX => /opt/ApacheDev2/src/httpd-2.0.48/src MP_COMPAT_1X => 1 MP_GENERATE_XS => 1 MP_INST_APACHE2 => 1 MP_LIBNAME => mod_perl MP_USE_DSO => 1 MP_USE_STATIC => 1 *** /opt/ApacheDev2/src/httpd-2.0.48/src/bin/httpd -V Server version: Apache/2.0.48 Server built: Mar 10 2004 11:38:53 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/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/perl -V Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration: Platform: osname=linux, osvers=2.4.18-11smp, archname=i386-linux-thread-multi uname='linux daffy.perf.redhat.com 2.4.18-11smp #1 smp thu aug 15 06:41:59 edt 2002 i686 i686 i386 gnulinux ' config_args='-des -Doptimize=-O2 -march=i386 -mcpu=i686 -Dmyhostname=localhost [EMAIL PROTECTED] -Dcc=gcc -Dcf_by=Red Hat, Inc. -Dinstallprefix=/usr -Dprefix=/usr -Darchname=i386-linux -Dvendorprefix=/usr -Dsiteprefix=/usr -Duseshrplib -Dusethreads -Duseithreads -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Di_db -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Duseperlio -Dinstallusrbinperl -Ubincompat5005 -Uversiononly -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 -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm', optimize='-O2 -march=i386 -mcpu=i686', cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -I/usr/include/gdbm' ccversion='', gccversion='3.2 20020822 (Red Hat Linux Rawhide 3.2-5)', 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 -ldb -ldl -lm -lpthread -lc -lcrypt -lutil perllibs=-lnsl -ldl -lm -lpthread -lc -lcrypt -lutil libc=/lib/libc-2.2.92.so, so=so, useshrplib=true, libperl=libperl.so gnulibc_version='2.2.92' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic -Wl,-rpath,/usr/lib/perl5/5.8.0/i386-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 Sep 1 2002 23:56:49 %ENV: PERL_LWP_USE_HTTP_10="1" @INC: /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl . *** Packages of interest status:
Apache::Request:
-
CGI : 3.04 LWP : 5.65, 5.75 mod_perl : 1.28, 1.9905, 1.9913 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 Sat Mar 13 23:44:27 2004
GMT.
-------------8<---------- End Bug Report
--------------8<----------
Note: Complete the rest of the details and post this bug report to
dev <at> perl.apache.org. To subscribe to the list send an empty email to [EMAIL PROTECTED]. Charlie Smith" 03/13/04 03:05PM >>> Geoff and Stas,
Thanks for your help so far. It's great to have such experts available such
as yourselves. And the humor is even good to ;--)--
The $ENV{MOD_PER} is being returned now with the following syntax in the
httpd.conf file:
<Directory
"/opt/famhistdev/fhdev1/bin">
Options Indexes FollowSymLinks MultiViews ExecCGI AllowOverride AuthConfig Order allow,deny <Files "*"> # new # cws: 3/13/04 Commented out SetHandler perl-script as don't need to # have mod_perl 1.0-type behavior for now. See comment in Geoff's # skeleton test suite that says to use perl-script if you want # mod_perl 1.0 behavior. # SetHandler perl-script PerlResponseHandler ModPerl::Registry # The following AddHandler is required in my current setup to
make mod_perl active.
AddHandler perl-script .pl PerlOptions +ParseHeaders Options +ExecCGI # old # SetHandler perl-script # PerlHandler Apache::Registry # Options ExecCGI # PerlSendHeader ON </Files> </Directory> </VirtualHost> Trying to include a file with the require statement in the t/My/Bug.pm
file
did not work. I was hoping to show how changing path from absolute to relative causes problem with require statement under MP2. Perhaps someone could help me determine correct testing procedures/setup. I read the docs -
honest :0))
require "/home/username/bug-reporting-skeleton-mp2/t/My/relative.pl"; vs require "relative.pl" Here is the actual file that is causing error: #!/usr/bin/perl require "all_glob.pl"; #require "/path/to/site/bin/all_glob.pl"; print "Content-type: text/html\n\n"; print <<EOM; <html> <head><title>Test the CGI environment</title></head> <body> <h1>Test the CGI environment</h1> <h1>Environment variables:</h> <table> EOM for $key ( sort keys %ENV ) { print "<tr><th align=\"right\">$key</th><td>$ENV{$key}</td></tr>\n"; } print <<EOMB; </table> EOMB Here is the error from the error log: [Sat Mar 13 14:16:26 2004] [error] 20292: ModPerl::Registry: Can't locate all_glob.pl in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Apache2 /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/Apache2 /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl . /opt/ApacheDev2/src/httpd-2.0.48/src/ /opt/ApacheDev2/src/httpd-2.0.48/src/lib/perl) at /opt/famhistdev/fhdev1/bin/testenvb.pl line 2. Here are the errors from the t/logs/error_log under the
bug..skeleton:
[Sat Mar 13 13:20:49 2004] [error] server reached MaxClients setting,
consider r
aising the MaxClients setting [Sat Mar 13 13:20:49 2004] [error] [client 127.0.0.1] /home/smithcw/bug-reportin g-skeleton-mp2/t/My/relative.pl did not return a true value at /home/smithcw/bug -reporting-skeleton-mp2/t/My/Bug.pm line 14. I guess it wouldn't hurt my feelings to change subject of this to something like [mp2] require "absolute/path/to/file" necessary? >>> "Charlie Smith" 03/13/04 08:20AM >>> Very funny. You guys are ganging up on me. What ever the count is, I get the point. >>> "Stas Bekman" 03/12/04 05:42PM >>> Geoffrey Young wrote: >>It should be there. If it's not, then we need to be able to reproduce it >>and you need to help us to do that. > > > I just tested with the skeleton and saw $ENV{MOD_PERL} right away. > > >>May be after >>it'll be repeated 10,000 times on this list people will remember to >>actually do so ;) > > >>Even better, submit a selfcontained bug report as Geoff suggested: >>http://perl.apache.org/~geoff/bug-reporting-skeleton-mp2.tar.gz > > > that makes 3 times for the skeleton in this "thread", so about 9,437 times > for the bug report and 9,997 times for the skeleton left You forget that http://perl.apache.org/bugs/ links to http://perl.apache.org/~geoff/bug-reporting-skeleton-mp2.tar.gz So it makes 9,996 times for the skeleton left. But http://perl.apache.org/~geoff/bug-reporting-skeleton-mp2.tar.gz is repeated twice (and one more time) in this email, and there is one more link to http://perl.apache.org/bugs/. So the current count is: 9,989 http://perl.apache.org/~geoff/bug-reporting-skeleton-mp2.tar.gz 9,434 http://perl.apache.org/bugs/ __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com |