I was able to make my tests work, I had to do the following:
I had to put the user that built mod_perl in the httpd.conf file. I also had to declare TestHooks::init and TestHooks::trans in the httpd.conf using the PerlModule directive.
Here are the diffs to httpd.conf that I used:
51,52c51,52
< User nobody
< Group root
---
> User build
> Group build
554c554,555
< PerlModule TestHooks::init
---
> PerlModule TestHooks::trans
> PerlModule TestHooks::init
Richard
-----Original Message-----
From: Hensley, Richard [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 03, 2003 8:57 AM
To: '[EMAIL PROTECTED]'
Subject: [mp2.0] make test failure in mod_perl 1.99_08
1. Problem Description:
make test is failing badly. I get the following from the t/logs/error_log
[Wed Apr 02 16:58:51 2003] [error] [client 127.0.0.1] Can't locate TestHooks/ini
t/first.pm in @INC (@INC contains: /home/rhensle/mod_perl-1.99_08/t /home/rhensl
e/mod_perl-1.99_08/blib/lib/Apache2 /home/rhensle/mod_perl-1.99_08/Apache-Test/l
ib /home/rhensle/mod_perl-1.99_08/lib /home/rhensle/mod_perl-1.99_08/blib/lib /h
ome/rhensle/mod_perl-1.99_08/blib/arch /home/rhensle/mod_perl-1.99_08/t/response
/home/rhensle/mod_perl-1.99_08/t/protocol /home/rhensle/mod_perl-1.99_08/t/hook
s /home/rhensle/mod_perl-1.99_08/t/filter /home/rhensle/mod_perl-1.99_08/t/htdoc
s/testdirective/main /home/rhensle/mod_perl-1.99_08/t/htdocs/testdirective/perlm
odule-vh /usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1 /usr/lib/perl5/sit
e_perl/5.6.1/i386-linux /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl/
5.6.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.6.1/i386-linux /usr/
lib/perl5/vendor_perl/5.6.1 /usr/lib/perl5/vendor_perl) at (eval 27) line 3.
I tried to apply the patch specified here
http://www.mail-archive.com/[EMAIL PROTECTED]/msg29648.html, but I get the same error.
2. Used Components and their Configuration:
*** using /home/rhensle/mod_perl-1.99_08/t/../lib/Apache/BuildConfig.pm
*** Makefile.PL options:
MP_AP_PREFIX => /usr/local/apache2
MP_GENERATE_XS => 1
MP_LIBNAME => mod_perl
MP_USE_DSO => 1
MP_USE_STATIC => 1
*** /usr/local/apache2/bin/httpd -V
Server version: Apache/2.0.44-dev
Server built: Jan 15 2003 22:21:29
Server's Module Magic Number: 20020903:0
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
-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 6 subversion 1) configuration:
Platform:
osname=linux, osvers=2.4.17-0.13smp, archname=i386-linux
uname='linux daffy.perf.redhat.com 2.4.17-0.13smp #1 smp fri feb 1 10:30:48
est 2002 i686 unknown '
config_args='-des -Doptimize=-O2 -march=i386 -mcpu=i686 -Dcc=gcc -Dcf_by=Red
Hat, Inc. -Dcccdlflags=-fPIC -Dinstallprefix=/usr -Dprefix=/usr -Darchname=i386
-linux -Dvendorprefix=/usr -Dsiteprefix=/usr -Uusethreads -Uuseithreads -Uuselar
gefiles -Dd_dosuid -Dd_semctl_semun -Di_db -Di_ndbm -Di_gdbm -Di_shadow -Di_sysl
og -Dman3ext=3pm'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=unde
f
useperlio=undef d_sfio=undef uselargefiles=undef usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
Compiler:
cc='gcc', ccflags ='-fno-strict-aliasing -I/usr/local/include',
optimize='-O2 -march=i386 -mcpu=i686',
cppflags='-fno-strict-aliasing -I/usr/local/include'
ccversion='', gccversion='2.96 20000731 (Red Hat Linux 7.2 2.96-109)', gccos
andvers=''
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
=4
alignbytes=4, usemymalloc=n, prototype=define
Linker and Libraries:
ld='gcc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -ldl -lm -lc -lcrypt -lutil
perllibs=-lnsl -ldl -lm -lc -lcrypt -lutil
libc=/lib/libc-2.2.5.so, so=so, useshrplib=false, libperl=libperl.a
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:
Built under linux
Compiled at Apr 1 2002 12:23:22
%ENV:
PERL_LWP_USE_HTTP_10="1"
@INC:
/usr/lib/perl5/5.6.1/i386-linux
/usr/lib/perl5/5.6.1
/usr/lib/perl5/site_perl/5.6.1/i386-linux
/usr/lib/perl5/site_perl/5.6.1
/usr/lib/perl5/site_perl/5.6.0
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.6.1/i386-linux
/usr/lib/perl5/vendor_perl/5.6.1
/usr/lib/perl5/vendor_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 Apr 3 01:04:43 2003 GMT.