Subject: | OS X default config does not load mod_env |
Its hard to believe but the default OS X Apache does not have mod_env
loaded. This causes the SetEnv in extra.conf to be a syntax error.
/usr/sbin/httpd -d
/private/var/local/cpan_shell/build/Apache-Test-1.28/t -f
/private/var/local/cpan_shell/build/Apache-Test-1.28/t/conf/httpd.conf
-D APACHE1 -D PERL_USEITHREADS
using Apache/1.3.33
waiting 60 seconds for server to start: .Syntax error on line 52 of
/private/var/local/cpan_shell/build/Apache-Test-1.28/t/conf/extra.conf:
Invalid command 'SetEnv', perhaps mis-spelled or defined by a module not
included in the server configuration
I patched in code to load mod_env and got test failures.
1 windhund /private/var/local/cpan_shell/build/Apache-Test-1.28$ make test
/usr/local/bin/perl -Iblib/arch -Iblib/lib \
t/TEST -clean
APACHE_TEST_GROUP= APACHE_TEST_HTTPD= APACHE_TEST_PORT=
APACHE_TEST_USER= APACHE_TEST_APXS= \
/usr/local/bin/perl -Iblib/arch -Iblib/lib \
t/TEST -bugreport -verbose=0
/usr/sbin/httpd -d
/private/var/local/cpan_shell/build/Apache-Test-1.28/t -f
/private/var/local/cpan_shell/build/Apache-Test-1.28/t/conf/httpd.conf
-D APACHE1 -D PERL_USEITHREADS
using Apache/1.3.33
waiting 60 seconds for server to start: .
waiting 60 seconds for server to start: ok (waited 0 secs)
server localhost:8529 started
t/bad_coding.............ok
t/cookies................# Failed test 1 in t/cookies.t at line 17
t/cookies................NOK 1/2# Failed test 2 in t/cookies.t at line
18
t/cookies................FAILED tests 1-2
Failed 2/2 tests, 0.00% okay
t/next_available_port....# Test 1 got: "<!DOCTYPE HTML PUBLIC
\"-//IETF//DTD HTML 2.0//EN\">\n<HTML><HEAD>\n<TITLE>404 Not
Found</TITLE>\n</HEAD><BODY>\n<H1>Not Found</H1>\nThe requested URL
/cgi-bin/next_available_port.pl was not found on this
server.<P>\n</BODY></HTML>\n" (t/next_available_port.t at line 15)
# Expected: "(?-xism:^\\d+$)" (next available port number)
t/next_available_port....FAILED test 1
Failed 1/1 tests, 0.00% okay
t/ping...................ok
t/redirect...............ok
t/request................ok
Failed Test Stat Wstat Total Fail List of Failed
-------------------------------------------------------------------------------
t/cookies.t 2 2 1-2
t/next_available_port.t 1 1 1
Failed 2/6 test scripts. 3/22 subtests failed.
Files=6, Tests=22, 3 wallclock secs ( 2.07 cusr + 0.54 csys = 2.61 CPU)
Failed 2/6 test programs. 3/22 subtests failed.
[warning] server localhost:8529 shutdown
[ error] error running tests (please examine t/logs/error_log)
+-----------------------------------------------------+
| To report problems please refer to the SUPPORT file |
+-----------------------------------------------------+
make: *** [run_tests] Error 1
$ perl -V
Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
Platform:
osname=darwin, osvers=8.8.1, archname=darwin-thread-multi-2level
uname='darwin windhund.local 8.8.1 darwin kernel version 8.8.1: mon
sep 25 19:42:00 pdt 2006; root:xnu-792.13.8.obj~1release_i386 i386 i386
macbook1,1 darwin '
config_args='-Dprefix=/usr/local/perl/5.8.8 -Duseithreads
-Dccflags=-I/sw/include -Dldflags=-L/sw/lib
-Dperladmin=schwern@pobox.com -Dcf_email=schwern@pobox.com
-Dmyhostname=windhund -Dmydomain=.schwern.org
-Dprivlib=/usr/local/perl/5.8.8/lib -Dsiteprefix=/usr/local
-Dsitelib=/usr/local/lib/site_perl -Dlibpth=/usr/local/lib /sw/lib
/opt/local/lib /usr/lib -Dnetdb_host_type=const char *
-Dnetdb_hlen_type=socklen_t -Uinstallusrbinperl'
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='cc', ccflags ='-I/sw/include -fno-common -DPERL_DARWIN
-no-cpp-precomp -fno-strict-aliasing -pipe -Wdeclaration-after-statement
-I/opt/local/include',
optimize='-O3',
cppflags='-no-cpp-precomp -I/sw/include -fno-common -DPERL_DARWIN
-no-cpp-precomp -fno-strict-aliasing -pipe -Wdeclaration-after-statement
-I/opt/local/include'
ccversion='', gccversion='4.0.1 (Apple Computer, Inc. build 5363)',
gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags ='-L/sw/lib
-L/usr/local/lib -L/opt/local/lib'
libpth=/usr/local/lib /sw/lib /opt/local/lib /usr/lib
libs=-lgdbm -ldbm -ldl -lm -lc
perllibs=-ldl -lm -lc
libc=/usr/lib/libc.dylib, so=dylib, useshrplib=false, libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-L/sw/lib -bundle -undefined
dynamic_lookup -L/usr/local/lib -L/opt/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT
PERL_MALLOC_WRAP USE_ITHREADS USE_LARGE_FILES
USE_PERLIO USE_REENTRANT_API
Built under darwin
Compiled at Oct 14 2006 18:50:36
%ENV:
PERL5LIB="/sw/lib/perl5:/sw/lib/perl5/darwin"
@INC:
/sw/lib/perl5
/sw/lib/perl5/darwin
/usr/local/perl/5.8.8/lib/darwin-thread-multi-2level
/usr/local/perl/5.8.8/lib
/usr/local/lib/site_perl/5.8/darwin-thread-multi-2level
/usr/local/lib/site_perl
/usr/local/lib/site_perl
.