ok, it helps if you type 'axps' correctly on "perl Makfile.PL". Oops.
Anyway, here is the result of the correct testing:
[omit makefile and all that stuff]
[EMAIL PROTECTED]:~/perlsetvar-bug-mp2# /kinnetics/component/httpd/bin/httpd -d /data1/system/root/perlsetvar-bug-mp2/t -f /data1/system/root/perlsetvar-bug-mp2/t/conf/httpd.conf -D APACHE2 -D PERL_USEITHREADS
[EMAIL PROTECTED]:~/perlsetvar-bug-mp2# perl ./t/bug.t 1..1 # Running under perl version 5.008003 for linux # Current time local: Wed Jul 7 21:36:51 2004 # Current time GMT: Thu Jul 8 01:36:51 2004 # Using Test.pm version 1.24 [ debug] Matched Apache revision Apache/2.0.50 2 # testing : all PerlSetVars are found # expected: per-directory: bar => beer # per-directory: foo => bar # per-server: bar => beer # ---------- # per-directory: bar => beer # per-directory: foo => bar # per-server: bar => beer # received: per-directory: bar => beer # per-directory: foo => bar # per-server: bar => beer # ---------- # per-directory: bar => beer # per-directory: foo => bar # per-server: bar => beer ok 1
Yay!
Now, to make it fail:
[EMAIL PROTECTED]:~/perlsetvar-bug-mp2# killall httpd
[EMAIL PROTECTED]:~/perlsetvar-bug-mp2# vi /data1/system/root/perlsetvar-bug-mp2/t/conf/httpd.conf
put this on the end:
<Perl > $Location{"/"} = { AuthType => 'Basic', AuthName => 'Foo', PerlAuthenHandler => 'Apache::Kinnetics::Authenticate', 'require' => 'valid-user' }; </Perl>
[EMAIL PROTECTED]:~/perlsetvar-bug-mp2# /kinnetics/component/httpd/bin/httpd -d /data1/system/root/perlsetvar-bug-mp2/t -f /data1/system/root/perlsetvar-bug-mp2/t/conf/httpd.conf -D APACHE2 -D PERL_USEITHREADS
[EMAIL PROTECTED]:~/perlsetvar-bug-mp2# perl ./t/bug.t 1..1 # Running under perl version 5.008003 for linux # Current time local: Wed Jul 7 21:37:42 2004 # Current time GMT: Thu Jul 8 01:37:42 2004 # Using Test.pm version 1.24 [ debug] Matched Apache revision Apache/2.0.50 2 # testing : all PerlSetVars are found # expected: per-directory: bar => beer # per-directory: foo => # per-server: bar => beer # ---------- # per-directory: bar => beer # per-server: bar => beer # received: per-directory: bar => beer # per-directory: foo => bar # per-server: bar => beer # ---------- # per-directory: bar => beer # per-directory: foo => bar # per-server: bar => beer not ok 1 # Failed test 1 in ./t/bug.t at line 23
Apache::Kinnetics::Authenticate is as I posted yesterday:
package Apache::Kinnetics::Authenticate; use strict; use Apache::Const -compile => ':common'; sub handler { return Apache::OK; } 1;
I hope this is enough for you to replicate the issue.
--------------
This report is generated from the build server. The O/S should be the same as the test server since the test server is generated from the build server.
./REPORT -------------8<---------- Start Bug Report ------------8<---------- 1. Problem Description:
[DESCRIBE THE PROBLEM HERE]
2. Used Components and their Configuration:
*** mod_perl version 1.9914
*** using /home/darwin/perforce/kinnetics/sussex/httpd/mod_perl-1.99_14/lib/Apache/BuildConfig.pm
*** Makefile.PL options:
MP_AP_PREFIX => /tmp/apache-kinnetics-darwin/kinnetics/component/httpd
MP_COMPAT_1X => 1
MP_GENERATE_XS => 1
MP_LIBNAME => mod_perl
MP_USE_DSO => 1
MP_USE_STATIC => 1
*** /tmp/apache-kinnetics-darwin/kinnetics/component/httpd/bin/httpd -V Server version: Apache/2.0.50 Server built: Jul 7 2004 17:13:45 Server's Module Magic Number: 20020903:8 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="/kinnetics/component/httpd" -D SUEXEC_BIN="/kinnetics/component/httpd/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 3) configuration:
Platform:
osname=linux, osvers=2.4.21-9.elsmp, archname=i386-linux-thread-multi
uname='linux bugs.devel.redhat.com 2.4.21-9.elsmp #1 smp thu jan 8 17:08:56 est 2004 i686 i686 i386 gnulinux '
config_args='-des -Doptimize=-O2 -g -pipe -march=i386 -mcpu=i686 -Dversion=5.8.3 -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 -Dinc_version_list=5.8.2 5.8.1 5.8.0'
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 -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
optimize='-O2 -g -pipe -march=i386 -mcpu=i686',
cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -I/usr/include/gdbm'
ccversion='', gccversion='3.3.2 20031218 (Red Hat Linux 3.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 -lcrypt -lutil -lpthread -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
libc=/lib/libc-2.3.2.so, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version='2.3.2'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic -Wl,-rpath,/usr/lib/perl5/5.8.3/i386-linux-thread-multi/CORE'
cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: DEBUGGING MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
Built under linux
Compiled at Feb 25 2004 13:30:53
%ENV:
PERL5LIB="/usr/local/perl5/site_perl"
PERL_LWP_USE_HTTP_10="1"
@INC:
/usr/local/perl5/site_perl/5.8.3/i386-linux-thread-multi
/usr/local/perl5/site_perl/5.8.3
/usr/local/perl5/site_perl/i386-linux-thread-multi
/usr/local/perl5/site_perl/5.8.2
/usr/local/perl5/site_perl/5.8.1
/usr/local/perl5/site_perl/5.8.0
/usr/local/perl5/site_perl
/usr/lib/perl5/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/5.8.3
/usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.3
/usr/lib/perl5/site_perl/5.8.2
/usr/lib/perl5/site_perl/5.8.1
/usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.3
/usr/lib/perl5/vendor_perl/5.8.2
/usr/lib/perl5/vendor_perl/5.8.1
/usr/lib/perl5/vendor_perl/5.8.0
/usr/lib/perl5/vendor_perl
.
*** Packages of interest status:
Apache::Request: - CGI : 3.01 LWP : 5.65 mod_perl : -
3. This is the core dump trace: (if you get a core dump):
[CORE TRACE COMES HERE]
This report was generated by ./REPORT on Thu Jul 8 01:12:39 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]
Geoffrey Young wrote:
[ error] configure() has failed: find_apache_module: module name argument is required at /kinnetics/component/httpd/site_perl/i386-linux-thread-multi/Apache/TestConfig.pm line 702.
hmm, this is strange - unrelated to the PerlSetVar issue, but an issue with Apache-Test for sure :)
to continue, I'll need you to update to at least the latest Apache-Test - it's available on CPAN. or you can use mod_perl 1.99_14 which contains the latest Apache-Test in it. updating your mod_perl is a good idea anyway, since we'll need to prove the PerlSetVar bug is present in the current version in order to fix it ;)
after upgrading Apache-Test, if you still get configuration errors when running 'make test' try doing this
$ export APACHE_TEST_TRACE_LEVEL=debug
and post the verbose output back here. also, please run t/REPORT so we can find out what your system looks like.
--Geoff
-- Matthew Darwin [EMAIL PROTECTED] http://www.mdarwin.ca
-- 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