Hello greate community!

This is my first message into this list :-), I hope I could get some help
about this tricky issue.

I'm trying to install manually Perl DBI 1.52 on a el6 server. I'm doing
this manually because it comes with DBI 1.6x by default, and this version
is not the needed one.

So, when I do it manually it fails on make test.

Makefile seems to be done ok.

[root@el65 DBI-1.52]# perl Makefile.PL


*** You are using a perl configured with threading enabled.
*** You should be aware that using multiple threads is
*** not recommended for production environments.

*** 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://search.cpan.org/
    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

Your perl was compiled with gcc (version 4.4.7 20120313 (Red Hat 4.4.7-3)),
okay.
Creating DBI::PurePerl    test variant: t/zvpp_01basics.t
Creating DBI::PurePerl    test variant: t/zvpp_02dbidrv.t
Creating DBI::PurePerl    test variant: t/zvpp_03handle.t
Creating DBI::PurePerl    test variant: t/zvpp_04mods.t
Creating DBI::PurePerl    test variant: t/zvpp_05thrclone.t (use threads)
Creating DBI::PurePerl    test variant: t/zvpp_06attrs.t
Creating DBI::PurePerl    test variant: t/zvpp_07kids.t
Creating DBI::PurePerl    test variant: t/zvpp_08keeperr.t
Creating DBI::PurePerl    test variant: t/zvpp_09trace.t
Creating DBI::PurePerl    test variant: t/zvpp_10examp.t
Creating DBI::PurePerl    test variant: t/zvpp_11fetch.t
Creating DBI::PurePerl    test variant: t/zvpp_14utf8.t
Creating DBI::PurePerl    test variant: t/zvpp_15array.t
Creating DBI::PurePerl    test variant: t/zvpp_20meta.t
Creating DBI::PurePerl    test variant: t/zvpp_30subclass.t
Creating DBI::PurePerl    test variant: t/zvpp_40profile.t
Creating DBI::PurePerl    test variant: t/zvpp_41prof_dump.t
Creating DBI::PurePerl    test variant: t/zvpp_42prof_data.t
Creating DBI::PurePerl    test variant: t/zvpp_43prof_env.t
Creating DBI::PurePerl    test variant: t/zvpp_50dbm.t
Creating DBI::PurePerl    test variant: t/zvpp_60preparse.t
Creating DBI::PurePerl    test variant: t/zvpp_70callbacks.t
Creating DBI::PurePerl    test variant: t/zvpp_72childhandles.t
Creating DBI::PurePerl    test variant: t/zvpp_80proxy.t
Checking if your kit is complete...
Looks good

    I see you're using perl 5.010001 on x86_64-linux-thread-multi, okay.
    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.

Writing Makefile for DBI



Make seems also good (I guess)

[root@el65 DBI-1.52]# make
/usr/bin/perl -MExtUtils::Command -e 'mkpath' -- blib/lib/DBI
rm -f blib/lib/DBI/Changes.pm
cp Changes blib/lib/DBI/Changes.pm
/usr/bin/perl -MExtUtils::Command -e 'mkpath' -- blib/lib/DBI
rm -f blib/lib/DBI/Roadmap.pm
cp Roadmap.pod blib/lib/DBI/Roadmap.pm
cp Driver_xst.h blib/arch/auto/DBI/Driver_xst.h
cp lib/DBD/Proxy.pm blib/lib/DBD/Proxy.pm
cp lib/DBD/DBM.pm blib/lib/DBD/DBM.pm
cp DBIXS.h blib/arch/auto/DBI/DBIXS.h
cp lib/DBI/Const/GetInfoType.pm blib/lib/DBI/Const/GetInfoType.pm
cp Roadmap.pod blib/lib/Roadmap.pod
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 Driver.xst blib/arch/auto/DBI/Driver.xst
cp lib/DBD/File.pm blib/lib/DBD/File.pm
cp lib/DBD/NullP.pm blib/lib/DBD/NullP.pm
cp lib/DBI/ProfileSubs.pm blib/lib/DBI/ProfileSubs.pm
cp dbi_sql.h blib/arch/auto/DBI/dbi_sql.h
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 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 DBI.pm blib/lib/DBI.pm
cp lib/DBI/Const/GetInfoReturn.pm blib/lib/DBI/Const/GetInfoReturn.pm
cp lib/DBD/Sponge.pm blib/lib/DBD/Sponge.pm
cp lib/DBI/W32ODBC.pm blib/lib/DBI/W32ODBC.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/DBI/ProxyServer.pm blib/lib/DBI/ProxyServer.pm
cp dbipport.h blib/arch/auto/DBI/dbipport.h
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 lib/DBI/ProfileData.pm blib/lib/DBI/ProfileData.pm
/usr/bin/perl -p -e "s/~DRIVER~/Perl/g" ./Driver.xst > Perl.xsi
/usr/bin/perl /usr/share/perl5/ExtUtils/xsubpp  -typemap
/usr/share/perl5/ExtUtils/typemap -typemap typemap  Perl.xs > Perl.xsc &&
mv Perl.xsc Perl.c
gcc -c   -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe
-fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64
-mtune=generic   -DVERSION=\"1.52\" -DXS_VERSION=\"1.52\" -fPIC
"-I/usr/lib64/perl5/CORE"  -W -Wall -Wpointer-arith -Wbad-function-cast
-Wno-comment -Wno-sign-compare -Wno-cast-qual -Wmissing-noreturn
-Wno-unused-parameter Perl.c
/usr/bin/perl /usr/share/perl5/ExtUtils/xsubpp  -typemap
/usr/share/perl5/ExtUtils/typemap -typemap typemap  DBI.xs > DBI.xsc && mv
DBI.xsc DBI.c
gcc -c   -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe
-fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64
-mtune=generic   -DVERSION=\"1.52\" -DXS_VERSION=\"1.52\" -fPIC
"-I/usr/lib64/perl5/CORE"  -W -Wall -Wpointer-arith -Wbad-function-cast
-Wno-comment -Wno-sign-compare -Wno-cast-qual -Wmissing-noreturn
-Wno-unused-parameter DBI.c
DBI.xs: In function ‘neatsvpv’:
DBI.xs:351: warning: return discards qualifiers from pointer target type
DBI.xs: In function ‘set_trace’:
DBI.xs:704: warning: format ‘%lx’ expects type ‘long unsigned int’, but
argument 6 has type ‘int’
DBI.xs:704: warning: format ‘%ld’ expects type ‘long int’, but argument 7
has type ‘unsigned int’
DBI.xs: In function ‘dbih_setup_handle’:
DBI.xs:1112: warning: value computed is not used
DBI.xs:1113: warning: value computed is not used
DBI.xs:1118: warning: value computed is not used
DBI.xs:1121: warning: value computed is not used
DBI.xs: In function ‘dbih_clearcom’:
DBI.xs:1268: warning: format ‘%x’ expects type ‘unsigned int’, but argument
2 has type ‘struct HV *’
DBI.xs:1268: warning: format ‘%d’ expects type ‘int’, but argument 3 has
type ‘IV’
DBI.xs:1275: warning: format ‘%x’ expects type ‘unsigned int’, but argument
2 has type ‘struct HV *’
DBI.xs:1281: warning: format ‘%x’ expects type ‘unsigned int’, but argument
2 has type ‘struct HV *’
DBI.xs:1287: warning: format ‘%x’ expects type ‘unsigned int’, but argument
2 has type ‘struct HV *’
DBI.xs: In function ‘dbih_set_attr_k’:
DBI.xs:1704: warning: value computed is not used
DBI.xs: In function ‘dbih_get_attr_k’:
DBI.xs:1796: warning: value computed is not used
DBI.xs:2024: warning: value computed is not used
DBI.xs: In function ‘dbih_find_attr’:
DBI.xs:2053: warning: value computed is not used
DBI.xs: In function ‘XS_DBI_dispatch’:
DBI.xs:2798: warning: value computed is not used
DBI.xs:2873: warning: value computed is not used
DBI.xs: In function ‘XS_DBI__install_method’:
DBI.xs:3879: warning: format ‘%d’ expects type ‘int’, but argument 3 has
type ‘IV’
DBI.xs:3880: warning: format ‘%d’ expects type ‘int’, but argument 3 has
type ‘IV’
DBI.xs: In function ‘XS_DBD_____st_fetchrow_hashref’:
DBI.xs:4358: warning: value computed is not used
DBI.c: At top level:
DBI.xs:2036: warning: ‘dbih_find_attr’ defined but not used
Running Mkbootstrap for DBI ()
chmod 644 DBI.bs
rm -f blib/arch/auto/DBI/DBI.so
gcc  -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic 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/man1/dbiprof.1
Manifying blib/man1/dbiproxy.1
Manifying blib/man3/DBI::FAQ.3pm
Manifying blib/man3/DBD::Proxy.3pm
Manifying blib/man3/DBI::SQL::Nano.3pm
Manifying blib/man3/DBI::Const::GetInfo::ANSI.3pm
Manifying blib/man3/DBD::DBM.3pm
Manifying blib/man3/DBI::Const::GetInfoReturn.3pm
Manifying blib/man3/DBI.3pm
Manifying blib/man3/DBD::Sponge.3pm
Manifying blib/man3/DBI::Const::GetInfoType.3pm
Manifying blib/man3/Roadmap.3pm
Manifying blib/man3/DBI::DBD::Metadata.3pm
Manifying blib/man3/DBI::W32ODBC.3pm
Manifying blib/man3/DBI::Const::GetInfo::ODBC.3pm
Manifying blib/man3/DBI::ProfileDumper::Apache.3pm
Manifying blib/man3/Bundle::DBI.3pm
Manifying blib/man3/DBI::Profile.3pm
Manifying blib/man3/DBD::File.3pm
Manifying blib/man3/DBI::ProfileDumper.3pm
Manifying blib/man3/DBI::ProxyServer.3pm
Manifying blib/man3/DBI::ProfileSubs.3pm
Manifying blib/man3/DBI::DBD.3pm
Manifying blib/man3/Win32::DBIODBC.3pm
Manifying blib/man3/DBI::PurePerl.3pm
Manifying blib/man3/DBI::ProfileData.3pm



This what I see it is failing.

[root@el65 DBI-1.52]# make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01basics.t ............. ok
t/02dbidrv.t ............. ok
t/03handle.t ............. ok
t/04mods.t ............... ok
t/05thrclone.t ........... 1/? # Looks like you planned 43 tests but ran 44.
t/05thrclone.t ........... Dubious, test returned 255 (wstat 65280, 0xff00)
All 43 subtests passed
t/06attrs.t .............. ok
t/07kids.t ............... ok
t/08keeperr.t ............ ok
t/09trace.t .............. ok
t/10examp.t .............. 1/263 Can't DBI::st=HASH(0x27ba750)->bind_col(1,
SCALAR(0x26dd958),...), need a reference to a scalar at blib/lib/DBI.pm
line 1831.
# Looks like you planned 263 tests but ran 79.
# Looks like your test exited with 2 just after 79.
t/10examp.t .............. Dubious, test returned 2 (wstat 512, 0x200)
Failed 184/263 subtests
t/11fetch.t .............. ok
t/14utf8.t ............... ok
t/15array.t .............. ok
t/20meta.t ............... ok
t/30subclass.t ........... ok
t/40profile.t ............ ok
t/41prof_dump.t .......... ok
t/42prof_data.t .......... ok
t/43prof_env.t ........... ok
t/50dbm.t ................ ok
t/60preparse.t ........... ok
t/70callbacks.t .......... ok
t/72childhandles.t ....... ok
t/80proxy.t .............. skipped: modules required for proxy are probably
not installed (e.g., RPC/PlClient.pm)
t/pod.t .................. skipped: Test::Pod 1.00 required for testing POD
t/zvpp_01basics.t ........ ok
t/zvpp_02dbidrv.t ........ ok
t/zvpp_03handle.t ........ ok
t/zvpp_04mods.t .......... ok
t/zvpp_05thrclone.t ...... 1/? # Looks like you planned 43 tests but ran 44.
t/zvpp_05thrclone.t ...... Dubious, test returned 255 (wstat 65280, 0xff00)
All 43 subtests passed
t/zvpp_06attrs.t ......... ok
t/zvpp_07kids.t .......... skipped: $h->{Kids} attribute not supported for
DBI::PurePerl
t/zvpp_08keeperr.t ....... ok
t/zvpp_09trace.t ......... ok
t/zvpp_10examp.t ......... ok
t/zvpp_11fetch.t ......... ok
t/zvpp_14utf8.t .......... ok
t/zvpp_15array.t ......... ok
t/zvpp_20meta.t .......... ok
t/zvpp_30subclass.t ...... ok
t/zvpp_40profile.t ....... skipped: profiling not supported for
DBI::PurePerl
t/zvpp_41prof_dump.t ..... skipped: profiling not supported for
DBI::PurePerl
t/zvpp_42prof_data.t ..... skipped: profiling not supported for
DBI::PurePerl
t/zvpp_43prof_env.t ...... skipped: profiling not supported for
DBI::PurePerl
t/zvpp_50dbm.t ........... ok
t/zvpp_60preparse.t ...... skipped: preparse not supported for DBI::PurePerl
t/zvpp_70callbacks.t ..... skipped: $h->{Callbacks} attribute not supported
for DBI::PurePerl
t/zvpp_72childhandles.t .. ok
t/zvpp_80proxy.t ......... skipped: modules required for proxy are probably
not installed (e.g., RPC/PlClient.pm)

Test Summary Report
-------------------
t/05thrclone.t         (Wstat: 65280 Tests: 44 Failed: 1)
  Failed test:  44
  Non-zero exit status: 255
  Parse errors: Plan (1..43) must be at the beginning or end of the TAP
output
                Bad plan.  You planned 43 tests but ran 44.
t/10examp.t            (Wstat: 512 Tests: 79 Failed: 0)
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 263 tests but ran 79.
t/zvpp_05thrclone.t    (Wstat: 65280 Tests: 44 Failed: 1)
  Failed test:  44
  Non-zero exit status: 255
  Parse errors: Plan (1..43) must be at the beginning or end of the TAP
output
                Bad plan.  You planned 43 tests but ran 44.
Files=49, Tests=2138,  3 wallclock secs ( 0.41 usr  0.20 sys +  1.70 cusr
 0.81 csys =  3.12 CPU)
Result: FAIL
Failed 3/49 test programs. 2/2138 subtests failed.
make: *** [test_dynamic] Error 255


As far as I can see, this is not good. Or I could ignore it and install it
with make install ?

I suspect is due to Perl 5.10.1, which comes with el6. On el5, where DBI
1.52 can be installed, Perl 5.8.8 is the default version.

Please any idea or help? I would appreciate, so, so much! :-)



Cheers.


Erick.

---

IRC     :   zerick
Blog    : http://zerick.me
About :  http://about.me/zerick
Linux User ID :  549567

Reply via email to