On Wed, 2003-06-04 at 13:38, Stas Bekman wrote: > blead-perl w/o ithreads fails modules/module.t with this error: > > [Wed Jun 4 15:34:41 2003] [error] Can't locate > auto/Apache/Module/top_module.al in @INC (@INC contains: > /home/stas/apache.org/modperl/blib/lib /home/stas/apache.org/modperl/blib/arch > /home/stas/apache.org/modperl/t/docs > /home/stas/perl/blead/lib/5.9.0/i686-linux /home/stas/perl/blead/lib/5.9.0 > /home/stas/perl/blead/lib/site_perl/5.9.0/i686-linux > /home/stas/perl/blead/lib/site_perl/5.9.0 /home/stas/perl/blead/lib/site_perl > /home/stas/apache.org/modperl/t/ /home/stas/apache.org/modperl/t/lib/perl) at > /home/stas/apache.org/modperl/t/net/perl/module.pl line 20
Can't reproduce that one ;-(
Your test are possibly grabbign an version of Apache::Module compiled
with a previous (incompatible MMN) or something
$> perl -MApache::Module -e'print $INC{"Apache/Module.pm"}'
I just dumped Apache-Module-0.11 in my mod_perl build directory and it
got picked up and all tests passed fine, with this simple (yet odd)
patch:
diff -u -I$Id -r1.28 src.pm
--- lib/Apache/src.pm 9 Jul 2001 15:03:13 -0000 1.28
+++ lib/Apache/src.pm 4 Jun 2003 07:16:47 -0000
@@ -94,7 +94,7 @@
# return 1 if $Is_Win32; #just assume, till Apache::src works under
win32
my $instsrc;
{
- local @INC = grep { !/blib/ } @INC;
+ #local @INC = grep { !/blib/ } @INC;
my $instdir;
for (@INC) {
last if -d ($instdir = "$_/auto/Apache/include");
Can you check for something like that, otherwise I can't reproduce that
problem with your setup.
> also here we advise to use t/TEST but its shebang line could be wrong (if
> /usr/local/bin/perl wasn't used).
> http://perl.apache.org/docs/1.0/guide/install.html#Manual_Testing
> Would be nice to adjust t/TEST to use the right perl path
Like this?
Index: MANIFEST
===================================================================
RCS file: /home/cvs/modperl/MANIFEST,v
retrieving revision 1.71
diff -u -I$Id -r1.71 MANIFEST
--- MANIFEST 25 May 2003 10:54:06 -0000 1.71
+++ MANIFEST 4 Jun 2003 07:21:25 -0000
@@ -98,7 +98,7 @@
src/opcodes.txt
t/report.PL
t/README
-t/TEST
+t/TEST.PL
t/TEST.win32
t/conf/httpd.conf.pl
t/conf/httpd.conf-dist
Index: Makefile.PL
===================================================================
RCS file: /home/cvs/modperl/Makefile.PL,v
retrieving revision 1.211
diff -u -I$Id -r1.211 Makefile.PL
--- Makefile.PL 16 May 2003 13:26:38 -0000 1.211
+++ Makefile.PL 4 Jun 2003 07:21:26 -0000
@@ -148,6 +148,7 @@
src/modules/perl/mod_perl_version.h
t/net/perl/cgi.pl
t/report
+ t/TEST
t/httpd
apaci/find_source
apaci/apxs_cflags
@@ -166,6 +167,7 @@
gen_script("t/net/perl/cgi.pl");
gen_script("t/report");
+gen_script("t/TEST");
gen_script("apaci/find_source");
gen_script("apaci/apxs_cflags");
gen_script("apaci/perl_config", "$PWD/lib");
Index: t/.cvsignore
===================================================================
RCS file: /home/cvs/modperl/t/.cvsignore,v
retrieving revision 1.3
diff -u -I$Id -r1.3 .cvsignore
--- t/.cvsignore 9 Jun 1998 16:53:09 -0000 1.3
+++ t/.cvsignore 4 Jun 2003 07:21:26 -0000
@@ -1,4 +1,5 @@
report
+TEST
logs
httpd.conf
httpd.conf.old
And rename t/TEST to t/TEST.PL
Works fine for me and is nicely autogenerated. +1 ?
> the test works ok with ithreads-enabled perl
>
> Here is some more info:
>
> ~/perl/blead/bin/perl Makefile.PL APACHE_SRC=../apache-1.3/src \
> DO_HTTPD=1 USE_APACI=1 EVERYTHING=1 \
> APACHE_PREFIX=/home/httpd/httpd_perl \
> APACI_ARGS='--prefix=/home/httpd/httpd_perl --enable-module=info \
> --enable-module=rewrite --enable-module=proxy \
> --without-execstrip' \
> PERL_TRACE=1 PERL_DEBUG=1 PERL_MARK_WHERE=1
>
>
> ~/perl/blead/bin/perl -V
> Summary of my perl5 (revision 5.0 version 9 subversion 0 patch 19226)
> configuration:
> Platform:
> osname=linux, osvers=2.4.19-16mdksmp, archname=i686-linux
> uname='linux hope.stason.org 2.4.19-16mdksmp #1 smp fri sep 20 16:08:37
> cest 2002 i686 unknown unknown gnulinux '
> config_args='-des -Dprefix=/home/stas/perl/blead -Doptimize=-g
> -Duseshrplib -Dusedevel -DDEBUG_LEAKING_SCALARS'
> hint=recommended, useposix=true, d_sigaction=define
> usethreads=undef useithreads=undef usemultiplicity=undef
> useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
> use64bitint=undef use64bitall=undef uselongdouble=undef
> usemymalloc=n, bincompat5005=undef
> Compiler:
> cc='cc', ccflags ='-DDEBUGGING -fno-strict-aliasing -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
> optimize='-g',
> cppflags='-DDEBUGGING -fno-strict-aliasing -I/usr/include/gdbm'
> ccversion='', gccversion='3.2 (Mandrake Linux 9.0 3.2-1mdk)', 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='cc', ldflags =' -L/usr/local/lib'
> libpth=/usr/local/lib /lib /usr/lib
> libs=-lnsl -lgdbm -ldb -ldl -lm -lc -lcrypt -lutil -lrt
> perllibs=-lnsl -ldl -lm -lc -lcrypt -lutil -lrt
> libc=/lib/libc-2.3.1.so, so=so, useshrplib=true, libperl=libperl.so
> gnulibc_version='2.3.1'
> Dynamic Linking:
> dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic
> -Wl,-rpath,/home/stas/perl/blead/lib/5.9.0/i686-linux/CORE'
> cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'
>
>
> Characteristics of this binary (from libperl):
> Compile-time options: DEBUGGING USE_LARGE_FILES
> Locally applied patches:
> DEVEL18374
> Built under linux
> Compiled at Apr 17 2003 13:58:42
> @INC:
> /home/stas/perl/blead/lib/5.9.0/i686-linux
> /home/stas/perl/blead/lib/5.9.0
> /home/stas/perl/blead/lib/site_perl/5.9.0/i686-linux
> /home/stas/perl/blead/lib/site_perl/5.9.0
> /home/stas/perl/blead/lib/site_perl
> .
>
> __________________________________________________________________
> 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
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
-- -----------------------------------------------------------------------------
Philippe M. Chiasson /gozer\@(cpan|ectoplasm)\.org/ 88C3A5A5 (122FF51B/C634E37B)
http://gozer.ectoplasm.org/ F9BF E0C2 480E 7680 1AE5 3631 CB32 A107 88C3 A5A5
Q: It is impossible to make anything foolproof because fools are so ingenious.
perl -e'$$=\${gozer};{$_=unpack(P7,pack(L,$$));/^JAm_pH\n$/&&print||$$++&&redo}'
signature.asc
Description: This is a digitally signed message part
