Forgive me if this has already been reported. I could not find any references to it in the archives.
--Joel -------------8<---------- Start Bug Report ------------8<---------- 1. Problem Description: 'make test' fails while initializing the apache server for testing. Here are the results of the 'make test'. --- BEGIN MAKE TEST RESULS --- cd "src/modules/perl" && make -f Makefile.modperl make[1]: Entering directory `/usr/local/src/mod_perl-1.99_13/src/modules/perl' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/usr/local/src/mod_perl-1.99_13/src/modules/perl' make[1]: Entering directory `/usr/local/src/mod_perl-1.99_13/Apache-Test' [... clipped ...] make[2]: Leaving directory `/usr/local/src/mod_perl-1.99_13/xs/ModPerl' make[1]: Leaving directory `/usr/local/src/mod_perl-1.99_13/xs' /usr/bin/perl -Iblib/arch/Apache2 -Iblib/lib/Apache2 \ t/TEST -clean [warning] setting ulimit to allow core files ulimit -c unlimited; /usr/bin/perl /usr/local/src/mod_perl-1.99_13/t/TEST -clean APACHE_TEST_GROUP= APACHE_TEST_HTTPD= APACHE_TEST_PORT= APACHE_TEST_USER= APACHE_TEST_APXS= \ /usr/bin/perl -Iblib/arch/Apache2 -Iblib/lib/Apache2 \ t/TEST -bugreport -verbose=0 [warning] setting ulimit to allow core files ulimit -c unlimited; /usr/bin/perl /usr/local/src/mod_perl-1.99_13/t/TEST -bugreport -verbose=0 [warning] root mode: changing the files ownership to 'nobody' (99:99) [warning] testing whether 'nobody' is able to -rwx /usr/local/src/mod_perl-1.99_13/t /usr/bin/perl -Mlib=/usr/local/src/mod_perl-1.99_13/Apache-Test/lib -MApache::TestRun -e 'eval { Apache::TestRun::run_root_fs_test(99, 99, q[/usr/local/src/mod_perl-1.99_13/t]) }'; [warning] result: OK /usr/local/apache2/bin/httpd -d /usr/local/src/mod_perl-1.99_13/t -f /usr/local/src/mod_perl-1.99_13/t/conf/httpd.conf -D APACHE2 -D PERL_USEITHREADS using Apache/2.0.49 (prefork MPM) waiting 120 seconds for server to start: .Syntax error on line 704 of /usr/local/src/mod_perl-1.99_13/t/conf/httpd.conf: Invalid command 'SetEnv', perhaps mis-spelled or defined by a module not included in the server configuration [ error] server has died with status 255 (t/logs/error_log wasn't created, start the server in the debug mode) make: *** [run_tests] Error 143 --- END MAKE TEST RESULS --- So the relevant error is: Invalid command 'SetEnv', perhaps mis-spelled or defined by a module not included in the server configuration And that's probably because I compiled apache with all of my modules as DSO. Call me strange, but that's the way I did it. Here's the output of "httpd -l", for reference. # /usr/local/apache2/bin/httpd -l Compiled in modules: core.c prefork.c http_core.c mod_so.c My apache was configured using the following: ./configure --prefix=/usr/local/apache2 \ --enable-mods-shared=all \ --enable-module=so So, my guess is that the mod_perl test suite is not including the "LoadModule env_module modules/mod_env.so" that is needed for "SetEnv" to work. I have verified that the "t/conf/httpd.conf" file does not contain the required LoadModule directive, but I have not been able to work my way backwards to see what is creating it since I'm not familliar with the mod_perl test suite mechanism. Futher investigation reveals that this error existed in mod_perl 1.99_11, but not in 1.99_09. Finally, I recompiled apache to include mod_env as a compiled-in module and re-ran the mp2 "make test" (without recompiling mp2) and things work quite smoothly. The recompile of apache used the following configure line: ./configure --prefix=/usr/local/apache2 --enable-module=so and httpd -l now lists the usual set of compiled-in modules. 2. Used Components and their Configuration: *** mod_perl version 1.9913 *** using lib/Apache/BuildConfig.pm *** Makefile.PL options: MP_AP_PREFIX => /usr/local/apache2 MP_COMPAT_1X => 1 MP_GENERATE_XS => 1 MP_INST_APACHE2 => 1 MP_LIBNAME => mod_perl MP_USE_DSO => 1 MP_USE_STATIC => 1 *** /usr/local/apache2/bin/httpd -V Server version: Apache/2.0.49 Server built: May 6 2004 10:00:11 Server's Module Magic Number: 20020903:7 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.00 LWP : 5.65, 5.75 mod_perl : 1.29, 1.9909 3. This is the core dump trace: (if you get a core dump): N/A This report was generated by t/REPORT on Thu May 6 17:23:28 2004 GMT. -------------8<---------- End Bug Report --------------8<---------- -- 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