It looks like Time::HiRes is now a dependent package for the test suite. Go get this from CPAN, install it, and rerun your tests
-----Original Message----- From: Brian Nelson [mailto:[EMAIL PROTECTED]] Sent: Friday, December 13, 2002 12:30 PM To: [EMAIL PROTECTED] Subject: Problem building DBI >1.30 I cant build DBI 1.31 or 1.32 properly. 1.30 works fine. I am building on solaris 8, with gcc 2.95.3 (solaris ld and such). Perl is 5.6.1 sun freeware package (perl -V is below, and complete build log) It compiles ok, but when running 'make test' this part is failing: ----t/40profile.........Can't locate Time/HiRes.pm in @INC (@INC contains: blib/arch blib/lib /usr/local/lib/perl5/5.6.1/sun4-solaris /usr/local/lib/perl5/5.6.1/sun4-solaris /usr/local/lib/perl5/5.6.1/sun4-solaris /usr/local/lib/perl5/5.6.1 /usr/local/lib/perl5/5.6.1/sun4-solaris /usr/local/lib/perl5/5.6.1/sun4-solaris /usr/local/lib/perl5/5.6.1 /usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris /usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris /usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris /usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl . /usr/local/lib/perl5/5.6.1/sun4-solaris /usr/local/lib/perl5/5.6.1 /usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris /usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl .) at t/40profile.t line 181. BEGIN failed--compilation aborted at t/40profile.t line 181. t/40profile.........dubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 1-54 Failed 54/54 tests, 0.00% okay It appears to can't find the file, but I dont know why. I don't see any aditional required packages for DBI. Again, >=1.30 works fine. Thanks! -Brian perl -V: Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration: Platform: osname=solaris, osvers=2.8, archname=sun4-solaris uname='sunos solaris 5.8 generic sun4u sparc sunw,ultra-5_10 ' config_args='-Dcc=gcc -de' hint=recommended, useposix=true, d_sigaction=define usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef Compiler: cc='gcc', ccflags ='-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-O', cppflags='-fno-strict-aliasing -I/usr/local/include' ccversion='', gccversion='2.95.3 20010315 (release)', gccosandvers='solaris2.8' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, usemymalloc=y, prototype=define Linker and Libraries: ld='gcc', ldflags =' -L/usr/local/lib ' libpth=/usr/local/lib /usr/lib /usr/ccs/lib libs=-lsocket -lnsl -lgdbm -ldb -ldl -lm -lc perllibs=-lsocket -lnsl -ldl -lm -lc libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' ' cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: USE_LARGE_FILES Built under solaris Compiled at Apr 26 2001 04:07:49 @INC: /usr/local/lib/perl5/5.6.1/sun4-solaris /usr/local/lib/perl5/5.6.1 /usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris /usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl . COMPLETE BUILD LOG: kirk ~/stuff/DBI-1.31 >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-module make Creating 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_03hleak_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_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_70shell_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. kirk ~/stuff/DBI-1.31 >make /usr/bin/perl -I/usr/local/lib/perl5/5.6.1/sun4-solaris -I/usr/local/lib/perl5/5.6.1 -MExtUtils::Command -e mkpath blib/lib/DBI rm -f blib/lib/DBI/Changes.pm cp Changes blib/lib/DBI/Changes.pm cp Driver_xst.h blib/arch/auto/DBI/Driver_xst.h cp lib/DBI/ProfileDumper.pm blib/lib/DBI/ProfileDumper.pm cp DBIXS.h blib/arch/auto/DBI/DBIXS.h cp lib/DBD/NullP.pm blib/lib/DBD/NullP.pm cp dbipport.h blib/arch/auto/DBI/dbipport.h cp lib/DBI/Format.pm blib/lib/DBI/Format.pm cp lib/DBI/Const/GetInfoReturn.pm blib/lib/DBI/Const/GetInfoReturn.pm cp dbd_xsh.h blib/arch/auto/DBI/dbd_xsh.h cp lib/DBI/Const/GetInfo/ANSI.pm blib/lib/DBI/Const/GetInfo/ANSI.pm cp lib/DBI/Profile.pm blib/lib/DBI/Profile.pm cp lib/DBI/PurePerl.pm blib/lib/DBI/PurePerl.pm cp lib/DBI/Shell.pm blib/lib/DBI/Shell.pm cp lib/DBI/FAQ.pm blib/lib/DBI/FAQ.pm cp DBI.pm blib/lib/DBI.pm cp lib/Bundle/DBI.pm blib/lib/Bundle/DBI.pm cp lib/DBD/ExampleP.pm blib/lib/DBD/ExampleP.pm cp lib/Win32/DBIODBC.pm blib/lib/Win32/DBIODBC.pm cp lib/DBI/W32ODBC.pm blib/lib/DBI/W32ODBC.pm cp lib/DBI/DBD.pm blib/lib/DBI/DBD.pm cp lib/DBI/ProfileData.pm blib/lib/DBI/ProfileData.pm cp lib/DBD/Proxy.pm blib/lib/DBD/Proxy.pm cp lib/DBI/Const/GetInfoType.pm blib/lib/DBI/Const/GetInfoType.pm cp lib/DBI/ProxyServer.pm blib/lib/DBI/ProxyServer.pm cp dbi_sql.h blib/arch/auto/DBI/dbi_sql.h cp lib/DBI/ProfileDumper/Apache.pm blib/lib/DBI/ProfileDumper/Apache.pm cp Driver.xst blib/arch/auto/DBI/Driver.xst cp lib/DBI/Const/GetInfo/ODBC.pm blib/lib/DBI/Const/GetInfo/ODBC.pm cp lib/DBD/Sponge.pm blib/lib/DBD/Sponge.pm /usr/bin/perl -p -e "s/~DRIVER~/Perl/g" < blib/arch/auto/DBI/Driver.xst > Perl.xsi /usr/bin/perl -I/usr/local/lib/perl5/5.6.1/sun4-solaris -I/usr/local/lib/perl5/5.6.1 /usr/local/lib/perl5/5.6.1/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.6.1/ExtUtils/typemap Perl.xs > Perl.xsc && mv Perl.xsc Perl.c gcc -c -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.31\" -DXS_VERSION=\"1.31\" -fPIC -I/usr/local/lib/perl5/5.6.1/sun4-solaris/CORE -Wall -Wno-comment -DDBI_NO_THREADS Perl.c dbipport.h:529: warning: `my_sv_2pvbyte' defined but not used /usr/bin/perl -I/usr/local/lib/perl5/5.6.1/sun4-solaris -I/usr/local/lib/perl5/5.6.1 /usr/local/lib/perl5/5.6.1/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.6.1/ExtUtils/typemap DBI.xs > DBI.xsc && mv DBI.xsc DBI.c gcc -c -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.31\" -DXS_VERSION=\"1.31\" -fPIC -I/usr/local/lib/perl5/5.6.1/sun4-solaris/CORE -Wall -Wno-comment -DDBI_NO_THREADS DBI.c DBI.xs: In function `dbih_clearcom': DBI.xs:975: warning: unused variable `Perl___notused' DBI.xs: In function `dbih_get_fbav': DBI.xs:1114: warning: unused variable `Perl___notused' DBI.xs: In function `dbih_set_attr_k': DBI.xs:1280: warning: unused variable `Perl___notused' DBI.xs:1206: warning: unused variable `Perl___notused' DBI.xs: In function `log_where': DBI.xs:1748: warning: unused variable `Perl___notused' DBI.xs: In function `XS_DBI_dispatch': DBI.xs:2433: warning: unused variable `Perl___notused' DBI.c: At top level: dbipport.h:529: warning: `my_sv_2pvbyte' defined but not used Running Mkbootstrap for DBI () chmod 644 DBI.bs rm -f blib/arch/auto/DBI/DBI.so LD_RUN_PATH="" gcc -G -L/usr/local/lib 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 -I/usr/local/lib/perl5/5.6.1/sun4-solaris -I/usr/local/lib/perl5/5.6.1 dbiproxy.PL dbiproxy Extracted dbiproxy from dbiproxy.PL with variable substitutions. cp dbiproxy blib/script/dbiproxy /usr/bin/perl -I/usr/local/lib/perl5/5.6.1/sun4-solaris -I/usr/local/lib/perl5/5.6.1 -MExtUtils::MakeMaker -e "MY->fixin(shift)" blib/script/dbiproxy /usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/local/lib/perl5/5.6.1/sun4-solaris -I/usr/local/lib/perl5/5.6.1 dbish.PL dbish Extracted dbish from dbish.PL with variable substitutions. cp dbish blib/script/dbish /usr/bin/perl -I/usr/local/lib/perl5/5.6.1/sun4-solaris -I/usr/local/lib/perl5/5.6.1 -MExtUtils::MakeMaker -e "MY->fixin(shift)" blib/script/dbish /usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/local/lib/perl5/5.6.1/sun4-solaris -I/usr/local/lib/perl5/5.6.1 dbiprof.PL dbiprof Extracted dbiprof from dbiprof.PL with variable substitutions. cp dbiprof blib/script/dbiprof /usr/bin/perl -I/usr/local/lib/perl5/5.6.1/sun4-solaris -I/usr/local/lib/perl5/5.6.1 -MExtUtils::MakeMaker -e "MY->fixin(shift)" blib/script/dbiprof Manifying blib/man3/DBI::ProfileDumper.3 Manifying blib/man3/DBI::Format.3 Manifying blib/man3/DBI::Const::GetInfoReturn.3 Manifying blib/man3/DBI::Const::GetInfo::ANSI.3 Manifying blib/man1/dbiprof.1 Manifying blib/man3/DBI::PurePerl.3 Manifying blib/man3/DBI::Profile.3 Manifying blib/man3/DBI::Shell.3 Manifying blib/man3/DBI::FAQ.3 Manifying blib/man3/DBI.3 Manifying blib/man3/Bundle::DBI.3 Manifying blib/man3/Win32::DBIODBC.3 Manifying blib/man1/dbiproxy.1 Manifying blib/man3/DBI::W32ODBC.3 Manifying blib/man3/DBI::DBD.3 Manifying blib/man3/DBI::ProfileData.3 Manifying blib/man3/DBI::ProxyServer.3 Manifying blib/man3/DBI::Const::GetInfoType.3 Manifying blib/man3/DBD::Proxy.3 Manifying blib/man1/dbish.1 Manifying blib/man3/DBI::ProfileDumper::Apache.3 Manifying blib/man3/DBI::Const::GetInfo::ODBC.3 kirk ~/stuff/DBI-1.31 >make test PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/local/lib/perl5/5.6.1/sun4-solaris -I/usr/local/lib/perl5/5.6.1 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t t/01basics..........ok t/02dbidrv..........ok t/03hleak...........ok t/04mods............ok t/05thrclone........skipped: perl 5.006001 not configured to support iThreads t/06attrs...........ok t/07kids............ok t/10examp...........ok 74/243 Taint attribute tests skipped t/10examp...........ok t/15array...........ok t/20meta............ok t/30subclass........ok t/40profile.........Can't locate Time/HiRes.pm in @INC (@INC contains: blib/arch blib/lib /usr/local/lib/perl5/5.6.1/sun4-solaris /usr/local/lib/perl5/5.6.1/sun4-solaris /usr/local/lib/perl5/5.6.1/sun4-solaris /usr/local/lib/perl5/5.6.1 /usr/local/lib/perl5/5.6.1/sun4-solaris /usr/local/lib/perl5/5.6.1/sun4-solaris /usr/local/lib/perl5/5.6.1 /usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris /usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris /usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris /usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl . /usr/local/lib/perl5/5.6.1/sun4-solaris /usr/local/lib/perl5/5.6.1 /usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris /usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl .) at t/40profile.t line 181. BEGIN failed--compilation aborted at t/40profile.t line 181. t/40profile.........dubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 1-54 Failed 54/54 tests, 0.00% okay t/41prof_dump.......ok t/42prof_data.......ok t/60preparse........ok t/70shell...........ok 1/3Use of uninitialized value in pattern match (m//) at /usr/local/lib/perl5/5.6.1/Term/Cap.pm line 284. Use of uninitialized value in pattern match (m//) at /usr/local/lib/perl5/5.6.1/Term/Cap.pm line 284. t/70shell...........ok t/80proxy...........skipped: modules required for proxy are probably not installed t/zz_01basics_pp.... Using DBI::PurePerl (DBI_PUREPERL=2) t/zz_01basics_pp....ok t/zz_02dbidrv_pp....ok t/zz_03hleak_pp.....ok t/zz_04mods_pp......ok t/zz_05thrclone_pp..skipped: perl 5.006001 not configured to support iThreads t/zz_06attrs_pp.....ok t/zz_07kids_pp......skipped: $h->{Kids} attribute not supported for DBI::PurePerl t/zz_10examp_pp.....ok 52/243 Taint mode switching tests skipped t/zz_10examp_pp.....ok 74/243 Taint attribute 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: profiling not supported for DBI::PurePerl t/zz_41prof_dump_pp.skipped: profiling not supported for DBI::PurePerl t/zz_42prof_data_pp.skipped: profiling not supported for DBI::PurePerl t/zz_60preparse_pp..skipped: preparse not supported for DBI::PurePerl t/zz_70shell_pp.....ok 1/3Use of uninitialized value in pattern match (m//) at /usr/local/lib/perl5/5.6.1/Term/Cap.pm line 284. Use of uninitialized value in pattern match (m//) at /usr/local/lib/perl5/5.6.1/Term/Cap.pm line 284. t/zz_70shell_pp.....ok t/zz_80proxy_pp.....skipped: modules required for proxy are probably not installed Failed Test Status Wstat Total Fail Failed List of Failed ---------------------------------------------------------------------------- ---- t/40profile.t 2 512 54 54 100.00% 1-54 9 tests skipped. Failed 1/34 test scripts, 97.06% okay. 54/1103 subtests failed, 95.10% okay. *** Error code 29 make: Fatal error: Command failed for target `test_dynamic'