DBI make test fails - trying to load old Storable

DBI make test fails - trying to load old Storable

am 02.07.2006 03:46:52 von Andrew

Hello,

Installing DBI-1.51 - 'make test' returns results that seem strange. Any
tests that 'use Storable' attempt to load an old version installed under
Perl 5.6. A newer version of Storable is installed under Perl 5.8. The
new version is in @INC prior to the old version. Since I'm installing
DBI via 5.8, can anyone tell me what's going on here? Thanks.

Regards,
Andrew




I've included the gory details below per the
README including:

1. A complete log of a complete build, e.g.:

perl Makefile.PL (do a make realclean first)
make
make test
make test TEST_VERBOSE=3D1 (this is quite long, I'll send it if
needed)

2. The output of perl -V

#####################################
Build:
#####################################
# perl Makefile.PL
Your perl was compiled with gcc (version 2.95.4 20020320 [FreeBSD]),
okay.
Creating DBI::PurePerl test variant: t/zvpp_01basics.t=20
Creating DBI::PurePerl test variant: t/zvpp_02dbidrv.t=20
Creating DBI::PurePerl test variant: t/zvpp_03handle.t=20
Creating DBI::PurePerl test variant: t/zvpp_04mods.t=20
Creating DBI::PurePerl test variant: t/zvpp_05thrclone.t=20
Creating DBI::PurePerl test variant: t/zvpp_06attrs.t=20
Creating DBI::PurePerl test variant: t/zvpp_07kids.t=20
Creating DBI::PurePerl test variant: t/zvpp_08keeperr.t=20
Creating DBI::PurePerl test variant: t/zvpp_09trace.t=20
Creating DBI::PurePerl test variant: t/zvpp_10examp.t=20
Creating DBI::PurePerl test variant: t/zvpp_11fetch.t=20
Creating DBI::PurePerl test variant: t/zvpp_14utf8.t=20
Creating DBI::PurePerl test variant: t/zvpp_15array.t=20
Creating DBI::PurePerl test variant: t/zvpp_20meta.t=20
Creating DBI::PurePerl test variant: t/zvpp_30subclass.t=20
Creating DBI::PurePerl test variant: t/zvpp_40profile.t=20
Creating DBI::PurePerl test variant: t/zvpp_41prof_dump.t=20
Creating DBI::PurePerl test variant: t/zvpp_42prof_data.t=20
Creating DBI::PurePerl test variant: t/zvpp_43profenv.t=20
Creating DBI::PurePerl test variant: t/zvpp_50dbm.t=20
Creating DBI::PurePerl test variant: t/zvpp_60preparse.t=20
Creating DBI::PurePerl test variant: t/zvpp_70callbacks.t=20
Creating DBI::PurePerl test variant: t/zvpp_72childhandles.t=20
Creating DBI::PurePerl test variant: t/zvpp_80proxy.t=20
Checking if your kit is complete...
Looks good
Writing Makefile for DBI


#####################################
# make
/usr/local/bin/perl5.8.6 "-MExtUtils::Command" -e mkpath blib/lib/DBI
rm -f blib/lib/DBI/Changes.pm
cp Changes blib/lib/DBI/Changes.pm
/usr/local/bin/perl5.8.6 "-MExtUtils::Command" -e mkpath blib/lib/DBI
rm -f blib/lib/DBI/Roadmap.pm
cp Roadmap.pod blib/lib/DBI/Roadmap.pm
cp dbd_xsh.h blib/arch/auto/DBI/dbd_xsh.h
cp dbivport.h blib/arch/auto/DBI/dbivport.h
cp lib/DBI/FAQ.pm blib/lib/DBI/FAQ.pm
cp Driver_xst.h blib/arch/auto/DBI/Driver_xst.h
cp lib/DBD/Proxy.pm blib/lib/DBD/Proxy.pm
cp lib/DBI/SQL/Nano.pm blib/lib/DBI/SQL/Nano.pm
cp lib/DBI/Const/GetInfo/ANSI.pm blib/lib/DBI/Const/GetInfo/ANSI.pm
cp lib/DBD/DBM.pm blib/lib/DBD/DBM.pm
cp DBI.pm blib/lib/DBI.pm
cp lib/DBI/Const/GetInfoReturn.pm blib/lib/DBI/Const/GetInfoReturn.pm
cp DBIXS.h blib/arch/auto/DBI/DBIXS.h
cp lib/DBD/Sponge.pm blib/lib/DBD/Sponge.pm
cp Roadmap.pod blib/lib/Roadmap.pod
cp lib/DBI/Const/GetInfoType.pm blib/lib/DBI/Const/GetInfoType.pm
cp lib/DBI/W32ODBC.pm blib/lib/DBI/W32ODBC.pm
cp lib/DBI/DBD/Metadata.pm blib/lib/DBI/DBD/Metadata.pm
cp lib/DBI/Const/GetInfo/ODBC.pm blib/lib/DBI/Const/GetInfo/ODBC.pm
cp lib/DBI/ProfileDumper/Apache.pm blib/lib/DBI/ProfileDumper/Apache.pm
cp lib/Bundle/DBI.pm blib/lib/Bundle/DBI.pm
cp lib/DBI/Profile.pm blib/lib/DBI/Profile.pm
cp lib/DBI/ProfileDumper.pm blib/lib/DBI/ProfileDumper.pm
cp lib/DBD/File.pm blib/lib/DBD/File.pm
cp Driver.xst blib/arch/auto/DBI/Driver.xst
cp lib/DBI/ProxyServer.pm blib/lib/DBI/ProxyServer.pm
cp dbipport.h blib/arch/auto/DBI/dbipport.h
cp lib/DBD/NullP.pm blib/lib/DBD/NullP.pm
cp lib/DBI/DBD.pm blib/lib/DBI/DBD.pm
cp lib/Win32/DBIODBC.pm blib/lib/Win32/DBIODBC.pm
cp lib/DBI/PurePerl.pm blib/lib/DBI/PurePerl.pm
cp lib/DBD/ExampleP.pm blib/lib/DBD/ExampleP.pm
cp dbi_sql.h blib/arch/auto/DBI/dbi_sql.h
cp lib/DBI/ProfileData.pm blib/lib/DBI/ProfileData.pm
/usr/local/bin/perl5.8.6 -p -e "s/~DRIVER~/Perl/g" ./Driver.xst >
Perl.xsi
/usr/local/bin/perl5.8.6 /usr/local/lib/perl5/5.8.6/ExtUtils/xsubpp
-typemap /usr/local/lib/perl5/5.8.6/ExtUtils/typemap -typemap typemap
Perl.xs > Perl.xsc && mv Perl.xsc Perl.c
cc -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing
-pipe -I/usr/local/include -O -DVERSION=3D\"1.51\"
-DXS_VERSION=3D\"1.51\" -DPIC -fPIC
"-I/usr/local/lib/perl5/5.8.6/i386-freebsd/CORE" -W -Wall
-Wpointer-arith -Wbad-function-cast -Wno-comment -Wno-sign-compare
-Wno-cast-qual -DDBI_NO_THREADS Perl.c
/usr/local/bin/perl5.8.6 /usr/local/lib/perl5/5.8.6/ExtUtils/xsubpp
-typemap /usr/local/lib/perl5/5.8.6/ExtUtils/typemap -typemap typemap
DBI.xs > DBI.xsc && mv DBI.xsc DBI.c
cc -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing
-pipe -I/usr/local/include -O -DVERSION=3D\"1.51\"
-DXS_VERSION=3D\"1.51\" -DPIC -fPIC
"-I/usr/local/lib/perl5/5.8.6/i386-freebsd/CORE" -W -Wall
-Wpointer-arith -Wbad-function-cast -Wno-comment -Wno-sign-compare
-Wno-cast-qual -DDBI_NO_THREADS DBI.c
Running Mkbootstrap for DBI ()
chmod 644 DBI.bs
rm -f blib/arch/auto/DBI/DBI.so
LD_RUN_PATH=3D"" cc -shared -L/usr/local/lib DBI.o -o
blib/arch/auto/DBI/DBI.so =20
chmod 755 blib/arch/auto/DBI/DBI.so
cp DBI.bs blib/arch/auto/DBI/DBI.bs
chmod 644 blib/arch/auto/DBI/DBI.bs
/usr/local/bin/perl5.8.6 "-Iblib/arch" "-Iblib/lib" dbiprof.PL dbiprof
Extracted dbiprof from dbiprof.PL with variable substitutions.
/usr/local/bin/perl5.8.6 "-Iblib/arch" "-Iblib/lib" dbiproxy.PL dbiproxy
Extracted dbiproxy from dbiproxy.PL with variable substitutions.
cp dbiprof blib/script/dbiprof
/usr/local/bin/perl5.8.6 "-MExtUtils::MY" -e "MY->fixin(shift)"
blib/script/dbiprof
cp dbiproxy blib/script/dbiproxy
/usr/local/bin/perl5.8.6 "-MExtUtils::MY" -e "MY->fixin(shift)"
blib/script/dbiproxy
Manifying blib/man1/dbiprof.1
[...]

#####################################
#make test
PERL_DL_NONLAZY=3D1 /usr/local/bin/perl5.8.6 "-MExtUtils::Command::MM"
"-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01basics...............ok
4/131 skipped: developer tests
t/02dbidrv...............ok
t/03handle...............ok
t/04mods.................ok
t/05thrclone.............skipped
all skipped: this freebsd perl 5.008006 not configured to
support iThreads
t/06attrs................ok
t/07kids.................ok
t/08keeperr..............ok
t/09trace................ok
t/10examp................ok
t/11fetch................dubious
Test returned status 2 (wstat 512, 0x200)
t/14utf8.................skipped
all skipped: Unable to load required module (Can't load
'/usr/local/lib/perl5/site_perl/5.6.1/i386-freebsd/auto/Stor able/
Storable.so' for module Storable:
/usr/local/lib/perl5/site_perl/5.6.1/i386-freebsd/auto/Stora ble/Storable
so: Undefined symbol "perl_get_sv" at
/usr/local/lib/perl5/5.8.6/i386-freebsd/DynaLoader.pm line 230.
t/15array................ok
t/20meta.................ok
t/30subclass.............ok
t/40profile..............dubious
Test returned status 2 (wstat 512, 0x200)
t/41prof_dump............ok
t/42prof_data............ok
t/43profenv..............ok
t/50dbm..................ok
t/60preparse.............ok
t/70callbacks............ok
t/72childhandles.........skipped
all skipped: Scalar::Util::weaken not available
t/80proxy................dubious
Test returned status 2 (wstat 512, 0x200)
t/pod....................skipped
all skipped: Test::Pod 1.00 required for testing POD
t/zvpp_01basics..........ok
4/131 skipped: developer tests
t/zvpp_02dbidrv..........ok
10/51 skipped: various reasons
t/zvpp_03handle..........ok
76/137 skipped: various reasons
t/zvpp_04mods............ok
t/zvpp_05thrclone........skipped
all skipped: this freebsd perl 5.008006 not configured to
support iThreads
t/zvpp_06attrs...........ok
7/137 skipped: various reasons
t/zvpp_07kids............skipped
all skipped: $h->{Kids} attribute not supported for
DBI::PurePerl
t/zvpp_08keeperr.........ok
t/zvpp_09trace...........ok
t/zvpp_10examp...........ok
39/263 skipped: various reasons
t/zvpp_11fetch...........dubious
Test returned status 2 (wstat 512, 0x200)
t/zvpp_14utf8............skipped
all skipped: Unable to load required module (Can't load
'/usr/local/lib/perl5/site_perl/5.6.1/i386-freebsd/auto/Stor able/
Storable.so' for module Storable:
/usr/local/lib/perl5/site_perl/5.6.1/i386-freebsd/auto/Stora ble/Storable
so: Undefined symbol "perl_get_sv" at
/usr/local/lib/perl5/5.8.6/i386-freebsd/DynaLoader.pm line 230.
t/zvpp_15array...........ok
t/zvpp_20meta............ok
t/zvpp_30subclass........ok
t/zvpp_40profile.........dubious
Test returned status 2 (wstat 512, 0x200)
t/zvpp_41prof_dump.......skipped
all skipped: profiling not supported for DBI::PurePerl
t/zvpp_42prof_data.......skipped
all skipped: profiling not supported for DBI::PurePerl
t/zvpp_43profenv.........skipped
all skipped: profiling not supported for DBI::PurePerl
t/zvpp_50dbm.............ok
t/zvpp_60preparse........skipped
all skipped: preparse not supported for DBI::PurePerl
t/zvpp_70callbacks.......skipped
all skipped: $h->{Callbacks} attribute not supported for
DBI::PurePerl
t/zvpp_72childhandles....skipped
all skipped: Scalar::Util::weaken not available
t/zvpp_80proxy...........dubious
Test returned status 2 (wstat 512, 0x200)
=46ailed Test Stat Wstat Total Fail Failed List of Failed
------------------------------------------------------------ ------------
-------
t/11fetch.t 2 512 ?? ?? % ??
t/40profile.t 2 512 ?? ?? % ??
t/80proxy.t 2 512 ?? ?? % ??
t/zvpp_11fetch.t 2 512 ?? ?? % ??
t/zvpp_40profile.t 2 512 ?? ?? % ??
t/zvpp_80proxy.t 2 512 ?? ?? % ??
13 tests and 140 subtests skipped.
*** Error code 2

Stop in /home/juanbro/DBI-1.51.


#####################################
# perl -V
Summary of my perl5 (revision 5 version 8 subversion 6) configuration:
Platform:
osname=3Dfreebsd, osvers=3D4.7-release-p27, archname=3Di386-freebsd
uname=3D'freebsd fc2 4.7-release-p27 freebsd 4.7-release-p27 #38: thu
aug 26 17:44:26 mdt 2004 root@fc2:usrsrcsyscompilevkern i386 '
config_args=3D'-Dd_dosuid=3Ddefine
-Dotherlibdirs=3D/usr/local/lib/perl5/5.00503:/usr/local/lib /site_perl
-Dvendorprefix=3D/usr/local -Dmyhostname=3Dfc2 -Dmydomain=3Dfreebsd.org -de=
s'
hint=3Drecommended, useposix=3Dtrue, d_sigaction=3Ddefine
usethreads=3Dundef use5005threads=3Dundef useithreads=3Dundef
usemultiplicity=3Dundef
useperlio=3Ddefine d_sfio=3Dundef uselargefiles=3Ddefine usesocks=3Dund=
ef
use64bitint=3Dundef use64bitall=3Dundef uselongdouble=3Dundef
usemymalloc=3Dn, bincompat5005=3Dundef
Compiler:
cc=3D'cc', ccflags =3D'-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H
-fno-strict-aliasing -pipe -I/usr/local/include',
optimize=3D'-O',
cppflags=3D'-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing
-pipe -I/usr/local/include'
ccversion=3D'', gccversion=3D'2.95.4 20020320 [FreeBSD]',
gccosandvers=3D''
intsize=3D4, longsize=3D4, ptrsize=3D4, doublesize=3D8, byteorder=3D123=
4
d_longlong=3Ddefine, longlongsize=3D8, d_longdbl=3Ddefine, longdblsize=
=3D12
ivtype=3D'long', ivsize=3D4, nvtype=3D'double', nvsize=3D8, Off_t=3D'of=
f_t',
lseeksize=3D8
alignbytes=3D4, prototype=3Ddefine
Linker and Libraries:
ld=3D'cc', ldflags =3D'-Wl,-E -L/usr/local/lib'
libpth=3D/usr/lib /usr/local/lib
libs=3D-lgdbm -lm -lcrypt -lutil -lc
perllibs=3D-lm -lcrypt -lutil -lc
libc=3D, so=3Dso, useshrplib=3Dfalse, libperl=3Dlibperl.a
gnulibc_version=3D''
Dynamic Linking:
dlsrc=3Ddl_dlopen.xs, dlext=3Dso, d_dlsymun=3Dundef, ccdlflags=3D' '
cccdlflags=3D'-DPIC -fPIC', lddlflags=3D'-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):=20
Compile-time options: USE_LARGE_FILES
Locally applied patches:
SUIDPERLIO0 - fix PERLIO_DEBUG local root exploit
(CAN-2005-0155)
SUIDPERLIO1 - fix PERLIO_DEBUG buffer overflow (CAN-2005-0156)
Built under freebsd
Compiled at Feb 7 2005 21:38:38
@INC:
/usr/local/lib/perl5/site_perl/5.8.6/i386-freebsd
/usr/local/lib/perl5/site_perl/5.8.6
/usr/local/lib/perl5/site_perl/5.8.4/i386-freebsd
/usr/local/lib/perl5/site_perl/5.8.4
/usr/local/lib/perl5/site_perl/5.8.3/i386-freebsd
/usr/local/lib/perl5/site_perl/5.8.3
/usr/local/lib/perl5/site_perl/5.8.1/i386-freebsd
/usr/local/lib/perl5/site_perl/5.8.1
/usr/local/lib/perl5/site_perl/5.6.1
/usr/local/lib/perl5/site_perl/5.005
/usr/local/lib/perl5/site_perl
/usr/local/lib/perl5/5.8.6/i386-freebsd
/usr/local/lib/perl5/5.8.6
/usr/local/lib/perl5/vendor_perl/5.8.6/i386-freebsd
/usr/local/lib/perl5/vendor_perl/5.8.6
/usr/local/lib/perl5/vendor_perl/5.8.4/i386-freebsd
/usr/local/lib/perl5/vendor_perl/5.8.4
/usr/local/lib/perl5/vendor_perl/5.8.3/i386-freebsd
/usr/local/lib/perl5/vendor_perl/5.8.3
/usr/local/lib/perl5/vendor_perl
/usr/local/lib/perl5/5.00503
/usr/local/lib/site_perl
.
#####################################