i hope this question is one of the smarter questions sent to this list.
i try to build DBI 1.37 for Perl 5.8.0 on Solaris 9 Sparc with the Sun C Compiler (Forte 7). Because my database (informix) only has 64bit libraries the whole Perl and DBI has to be 64bit.
When compiling DBI perl Makefile.PL and make work fine. make test fails one test in t03handle.
Please have a look at the last snip from make test. i enabled the DBI->trace(9) line thats already in the source.
So whats going wrong and how can it be fixed?
regards Thomas
[EMAIL PROTECTED]> perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
Platform:
osname=solaris, osvers=2.9, archname=sun4-solaris
uname='sunos v481 5.9 generic_112233-05 sun4u sparc sunw,sun-fire-480r '
config_args=''
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=define use64bitall=define uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='/opt/SUNWspro/bin/cc', ccflags =' -xarch=v9 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-fast -xarch=v9',
cppflags=''
ccversion='', gccversion='', gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=87654321
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='/opt/SUNWspro/bin/cc', ldflags =' -xarch=v9 '
libpth=/usr/lib /usr/ccs/lib
libs=-lsocket -lnsl -ldl -lm -lc
perllibs=-lsocket -lnsl -ldl -lm -lc
libc=/usr/lib/sparcv9/libc.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
cccdlflags='-KPIC', lddlflags=' -G -xarch=v9'
Characteristics of this binary (from libperl): Compile-time options: USE_64_BIT_INT USE_64_BIT_ALL USE_LARGE_FILES Built under solaris Compiled at Jun 18 2003 09:41:26 @INC: /usr/perl5/5.8.0/lib/sun4-solaris /usr/perl5/5.8.0/lib /usr/perl5/site_perl/5.8.0/sun4-solaris /usr/perl5/site_perl/5.8.0 /usr/perl5/site_perl /usr/gls/pm . [EMAIL PROTECTED]> perl Makefile.PL *** Note: The optional PlRPC-modules (RPC::PlServer etc) are not installed. If you want to use the DBD::Proxy driver and DBI::ProxyServer modules, then you'll need to install the RPC::PlServer, RPC::PlClient, Storable and Net::Daemon modules. The CPAN Bundle::DBI may help you. You can install them any time after installing the DBI. You do *not* need these modules for typical DBI usage.
Optional modules are available from any CPAN mirror, in particular
http://www.perl.com/CPAN/modules/by-module
http://www.perl.org/CPAN/modules/by-module
ftp://ftp.funet.fi/pub/languages/perl/CPAN/modules/by-moduleCreating extra DBI::PurePerl test: t/zz_01basics_pp.t Creating extra DBI::PurePerl test: t/zz_02dbidrv_pp.t Creating extra DBI::PurePerl test: t/zz_03handle_pp.t Creating extra DBI::PurePerl test: t/zz_04mods_pp.t Creating extra DBI::PurePerl test: t/zz_05thrclone_pp.t Creating extra DBI::PurePerl test: t/zz_06attrs_pp.t Creating extra DBI::PurePerl test: t/zz_07kids_pp.t Creating extra DBI::PurePerl test: t/zz_08keeperr_pp.t Creating extra DBI::PurePerl test: t/zz_10examp_pp.t Creating extra DBI::PurePerl test: t/zz_15array_pp.t Creating extra DBI::PurePerl test: t/zz_20meta_pp.t Creating extra DBI::PurePerl test: t/zz_30subclass_pp.t Creating extra DBI::PurePerl test: t/zz_40profile_pp.t Creating extra DBI::PurePerl test: t/zz_41prof_dump_pp.t Creating extra DBI::PurePerl test: t/zz_42prof_data_pp.t Creating extra DBI::PurePerl test: t/zz_60preparse_pp.t Creating extra DBI::PurePerl test: t/zz_80proxy_pp.t Checking if your kit is complete... Looks good Writing Makefile for DBI
Remember to actually *read* the README file!
Use 'make' to build the software (dmake or nmake on Windows).
Then 'make test' to execute self tests.
Then 'make install' to install the DBI and then delete this working
directory before unpacking and building any DBD::* drivers.[EMAIL PROTECTED]> make
cp Changes blib/lib/DBI/Changes.pm
cp dbd_xsh.h blib/arch/auto/DBI/dbd_xsh.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 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/DBI/Const/GetInfo/ANSI.pm blib/lib/DBI/Const/GetInfo/ANSI.pm
cp lib/DBD/Sponge.pm blib/lib/DBD/Sponge.pm
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/Bundle/DBI.pm blib/lib/Bundle/DBI.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/DBI/Profile.pm blib/lib/DBI/Profile.pm
cp Driver.xst blib/arch/auto/DBI/Driver.xst
cp lib/DBI/ProfileDumper.pm blib/lib/DBI/ProfileDumper.pm
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 dbi_sql.h blib/arch/auto/DBI/dbi_sql.h
cp lib/DBD/ExampleP.pm blib/lib/DBD/ExampleP.pm
cp lib/DBI/PurePerl.pm blib/lib/DBI/PurePerl.pm
cp lib/DBI/ProfileData.pm blib/lib/DBI/ProfileData.pm
/usr/bin/perl -p -e "s/~DRIVER~/Perl/g" < blib/arch/auto/DBI/Driver.xst > Perl.xsi
/usr/bin/perl /usr/perl5/5.8.0/lib/ExtUtils/xsubpp -typemap /usr/perl5/5.8.0/lib/ExtUtils/typemap -typemap typemap Perl.xs > Perl.xsc && mv Perl.xsc Perl.c
/opt/SUNWspro/bin/cc -c -xarch=v9 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fast -xarch=v9 -DVERSION=\"1.37\" -DXS_VERSION=\"1.37\" -KPIC "-I/usr/perl5/5.8.0/lib/sun4-solaris/CORE" -DDBI_NO_THREADS Perl.c
/usr/bin/perl /usr/perl5/5.8.0/lib/ExtUtils/xsubpp -typemap /usr/perl5/5.8.0/lib/ExtUtils/typemap -typemap typemap DBI.xs > DBI.xsc && mv DBI.xsc DBI.c
/opt/SUNWspro/bin/cc -c -xarch=v9 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fast -xarch=v9 -DVERSION=\"1.37\" -DXS_VERSION=\"1.37\" -KPIC "-I/usr/perl5/5.8.0/lib/sun4-solaris/CORE" -DDBI_NO_THREADS DBI.c
Running Mkbootstrap for DBI ()
chmod 644 DBI.bs
rm -f blib/arch/auto/DBI/DBI.so
LD_RUN_PATH="" /opt/SUNWspro/bin/cc -G -xarch=v9 DBI.o -o blib/arch/auto/DBI/DBI.so
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/bin/perl "-Iblib/arch" "-Iblib/lib" dbiprof.PL dbiprof
Extracted dbiprof from dbiprof.PL with variable substitutions.
cp dbiprof blib/script/dbiprof
/usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/dbiprof
/usr/bin/perl "-Iblib/arch" "-Iblib/lib" dbiproxy.PL dbiproxy
Extracted dbiproxy from dbiproxy.PL with variable substitutions.
cp dbiproxy blib/script/dbiproxy
/usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/dbiproxy
Manifying blib/man3/DBI::FAQ.3
Manifying blib/man1/dbiproxy.1
Manifying blib/man3/DBD::Proxy.3
Manifying blib/man3/DBI::Const::GetInfo::ANSI.3
Manifying blib/man3/DBI::Const::GetInfoReturn.3
Manifying blib/man3/DBI.3
Manifying blib/man1/dbiprof.1
Manifying blib/man3/DBI::Const::GetInfoType.3
Manifying blib/man3/DBI::W32ODBC.3
Manifying blib/man3/DBI::DBD::Metadata.3
Manifying blib/man3/DBI::Const::GetInfo::ODBC.3
Manifying blib/man3/DBI::ProfileDumper::Apache.3
Manifying blib/man3/Bundle::DBI.3
Manifying blib/man3/DBI::Profile.3
Manifying blib/man3/DBI::ProfileDumper.3
Manifying blib/man3/DBI::ProxyServer.3
Manifying blib/man3/DBI::DBD.3
Manifying blib/man3/Win32::DBIODBC.3
Manifying blib/man3/DBI::PurePerl.3
Manifying blib/man3/DBI::ProfileData.3
[EMAIL PROTECTED]> make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01basics.............ok
t/02dbidrv.............ok
t/03handle.............ok 11/18# Test 12 got: '196' (t/03handle.t at line 52)
t/03handle.............NOK 12# Expected: '112'
t/03handle.............FAILED test 12
Failed 1/18 tests, 94.44% okay
t/04mods...............ok
t/05thrclone...........skipped
all skipped: this perl 5.008 not configured to support iThreads
t/06attrs..............ok
t/07kids...............ok
t/08keeperr............ok
t/10examp..............ok
t/15array..............ok
t/20meta...............ok
t/30subclass...........ok
t/40profile............ok
t/41prof_dump..........ok
t/42prof_data..........ok
t/60preparse...........ok
t/80proxy..............skipped
all skipped: modules required for proxy are probably not installed (e.g., RPC/PlClient.pm)
t/zz_01basics_pp....... Using DBI::PurePerl (DBI_PUREPERL=2)
t/zz_01basics_pp.......ok
t/zz_02dbidrv_pp.......ok
t/zz_03handle_pp.......ok
t/zz_04mods_pp.........ok
t/zz_05thrclone_pp.....skipped
all skipped: this perl 5.008 not configured to support iThreads
t/zz_06attrs_pp........ok
t/zz_07kids_pp.........skipped
all skipped: $h->{Kids} attribute not supported for DBI::PurePerl
t/zz_08keeperr_pp......ok
t/zz_10examp_pp........ok 50/245 Taint mode switching tests skipped
t/zz_10examp_pp........ok
t/zz_15array_pp........ok
t/zz_20meta_pp.........ok
t/zz_30subclass_pp.....ok
t/zz_40profile_pp......skipped
all skipped: profiling not supported for DBI::PurePerl
t/zz_41prof_dump_pp....skipped
all skipped: profiling not supported for DBI::PurePerl
t/zz_42prof_data_pp....skipped
all skipped: profiling not supported for DBI::PurePerl
t/zz_60preparse_pp.....skipped
all skipped: preparse not supported for DBI::PurePerl
t/zz_80proxy_pp........skipped
all skipped: modules required for proxy are probably not installed (e.g., RPC/PlClient.pm)
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/03handle.t 18 1 5.56% 12
9 tests skipped.
Failed 1/34 test scripts, 97.06% okay. 1/1203 subtests failed, 99.92% okay.
*** Error code 29
make: Fatal error: Command failed for target `test_dynamic'
make test TEST_VERBOSE=1 t/03handle.............1..18 ok 1 ok 2 ref leak using ok 3 # Test 12 got: '196' (t/03handle.t at line 52) # Expected: '112' ref leak using Driver 1 ok 4 ok 5 ref leak using Database 1 ok 6 ok 7 ref leak using Database 1 Driver 1 ok 8 ok 9 ok 10 take_imp_data ok 11 not ok 12 $VAR1 = ' Failed 1/18 tests, 94.44% okay
make test with DBI->trace(9)
t/03handle.............1..18
ok 1
ok 2
ref leak using
ok 3
ref leak using Driver 1
ok 4
ok 5
ref leak using Database 1
ok 6
ok 7
ref leak using Database 1 Driver 1
ok 8
ok 9
ok 10
take_imp_data
DBI 1.37-nothread dispatch trace level set to 9
>> take_imp_data DISPATCH (DBI::db=HASH(0x100561660) rc1/1 @1 g0 ima1 pid#10753) at t/03handle.t line 50
-> take_imp_data in DBD::_::db for DBD::ExampleP::db (DBI::db=HASH(0x100561660)~0x1005b22d0)
DESTROY (dbih_clearcom) (dbh 0x100561660 0x10054c880, com 0x1005502c0, imp DBD::ExampleP::db):
FLAGS 0x311: COMSET Warn PrintError AutoCommit
PARENT DBI::dr=HASH(0x10052fc70)
KIDS 0 (0 Active)
IMP_DATA undef
dbih_clearcom 0x100561660 (com 0x1005502c0, type 2) done.
<- take_imp_data= '.....................V.`.....V.Ð.....C.p.............S³......(®......................B?à.....Rý......V. .....J# .....V.°...........P.........V.0....................................................' at t/03handle.t line 50
# Test 12 got: '196' (t/03handle.t at line 52)
# Expected: '112'
ok 11
>> FETCH DISPATCH (DBI::db=HASH(0x1005b22d0) rc2/1 @2 g0 ima404 pid#10753) at t/03handle.t line 58
<> FETCH for DBI::db=HASH(0x1005b22d0) ignored (dbi_imp_data gone)
>> FETCH DISPATCH (DBI::db=HASH(0x1005b22d0) rc2/1 @2 g0 ima404 pid#10753) at t/03handle.t line 59
<> FETCH for DBI::db=HASH(0x1005b22d0) ignored (dbi_imp_data gone)
not ok 12
>> disconnect DISPATCH (DBI::db=HASH(0x100561660) rc1/1 @1 g0 imac01 pid#10753) at t/03handle.t line 60
<> disconnect for DBI::db=HASH(0x1005b22d0) ignored (dbi_imp_data gone)
>> quote DISPATCH (DBI::db=HASH(0x100561660) rc1/1 @2 g0 ima431 pid#10753) at t/03handle.t line 61
<> quote for DBI::db=HASH(0x1005b22d0) ignored (dbi_imp_data gone)
$VAR1 = '(dbi_imp_data gone)
ok 13
-- DBI::END
>> disconnect_all DISPATCH (DBI::dr=HASH(0x10049db70) rc1/3 @1 g0 ima801 pid#10753) at /tmp/DBI-1.37/blib/lib/DBI.pm line 649 via t/03handle.t line 0
-> disconnect_all for DBD::ExampleP::dr (DBI::dr=HASH(0x10049db70)~0x10052fc70)
<- disconnect_all= (not implemented) at /tmp/DBI-1.37/blib/lib/DBI.pm line 649 via t/03handle.t line 0
ok 14
! >> DESTROY DISPATCH (DBI::dr=HASH(0x10052fc70) rc1/1 @1 g0 ima4 pid#10753) during global destruction
! -> DESTROY for DBD::ExampleP::dr (DBI::dr=HASH(0x10052fc70)~INNER)
! <- DESTROY= undef during global destruction
DESTROY (dbih_clearcom) (drh 0x10049db70 0x100557b60, com 0x100430470, imp DBD::ExampleP::dr):
FLAGS 0x215: COMSET Active Warn AutoCommit
PARENT undef
KIDS 0 (0 Active)
IMP_DATA ARRAY(0x10052e910)
dbih_clearcom 0x10049db70 (com 0x100430470, type 1) done.
ok 15
ok 16
ok 17
use dbi_imp_data
! >> DESTROY DISPATCH (DBI::dr=HASH(0x10049db70) rc1/1 @1 g0 ima4 pid#10753) during global destruction
! <> DESTROY for DBI::dr=HASH(0x10049db70) ignored (inner handle gone)
ok 18
FAILED test 12
Failed 1/18 tests, 94.44% okay
