greetings,
while testing one of our CPANPLUS releases, i found the following issue with
the latest DBI version (1.21).
It was a 5.005_03 install of perl, where we encountered the following result
from 'make test':
(everything up untill then had gone ok):
############################################################################
#######
dbserv# make test
cp Changes blib/lib/DBI/Changes.pm
PERL_DL_NONLAZY=1
/usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/libdata/perl/5.00503/mach -I/usr
/libdata/perl/5.00503 -e 'use Test::Harness qw(&runtests $verbose);
$verbose=0; runtests @ARGV;' t/*.t
t/basics............ok
t/dbidrv............ok
t/examp.............ok
t/meta..............ok
t/preparse..........Can't locate Devel/Peek.pm in @INC (@INC contains:
blib/arch blib/lib /usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503
/usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd
/usr/local/lib/perl5/site_perl/5.005 . /usr/libdata/perl/5.00503/mach
/usr/libdata/perl/5.00503 /usr/local/lib/perl5/site_perl/5.005/i386-freebsd
/usr/local/lib/perl5/site_perl/5.005 .) at t/preparse.t line 4.
BEGIN failed--compilation aborted at t/preparse.t line 4.
dubious
Test returned status 2 (wstat 512, 0x200)
t/proxy.............skipping test on this platform
t/shell.............ok
t/subclass..........ok
Failed Test Status Wstat Total Fail Failed List of failed
----------------------------------------------------------------------------
---
t/preparse.t 2 512 ?? ?? % ??
1 test skipped.
Failed 1/8 test scripts, 87.50% okay. 0/278 subtests failed, 100.00% okay.
*** Error code 2
############################################################################
##############
from the dbi-1.21 test suite
(more accurately t/preparse.t):
#!perl -w
use DBI qw(:preparse_flags);
use Devel::Peek 'Dump';
Since the only uses of 'Dump' i find are commented out:
# Dump ($result);
# Dump ($expected);
I assume that you just forgot to remove the 'use' line
if not, then it probably needs a 'require 5.6' since, Devel::Peek is a
module that, according to Module::CoreList only got added to the perl
release as of 5.6.0:
[root@sammy root]# perl -MModule::CoreList -le"print
Module::CoreList->first_release('Devel::Peek')"
5.006
Just in case my analysis is off, below is a summary of my perl -V
regards,
Jos Boumans
############################################################################
##############
dbserv# perl -V
Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
Platform:
osname=freebsd, osvers=4.0-current, archname=i386-freebsd
uname='FreeBSD freefall.FreeBSD.org 4.0-current FreeBSD 4.0-current #0:
$Date$'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef useperlio=undef d_sfio=undef
Compiler:
cc='cc', optimize='undef', gccversion=2.95.2 19991024 (release)
cppflags=''
ccflags =''
stdchar='char', d_stdstdio=undef, usevfork=true
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
alignbytes=4, usemymalloc=n, prototype=define
Linker and Libraries:
ld='cc', ldflags ='-Wl,-E -lperl -lm '
libpth=/usr/lib
libs=-lm -lc -lcrypt
libc=, so=so, useshrplib=true, libperl=libperl.so.3
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef,
ccdlflags=' -Wl,-R/usr/lib'
cccdlflags='-DPIC -fpic', lddlflags='-Wl,-E -shared -lperl -lm '
Characteristics of this binary (from libperl):
Built under freebsd
Compiled at Jan 28 2002 12:49:09
@INC:
/usr/libdata/perl/5.00503/mach
/usr/libdata/perl/5.00503
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd
/usr/local/lib/perl5/site_perl/5.005