Skip Menu |

This queue is for tickets about the DBD-JDBC CPAN distribution.

Report information
The Basics
Id: 1696
Status: resolved
Priority: 0/
Queue: DBD-JDBC

People
Owner: Nobody in particular
Requestors: scott.mcgee [...] delta.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.64
Fixed in:
  • 0.67
  • 0.68



Subject: DBD::JDBC seems broken wrt Perl v5.8.0
I recently installed Perl v.5.8.0 on my Solaris box and tried to load the DBD::JDBC module using the cpan utility. It download ok, and make went well, but when test was done, I get the following error output: Show quoted text
cpan> test DBD::JDBC
Running test for module DBD::JDBC Running make for V/VI/VIZDOM/DBD-JDBC-0.64.tar.gz Is already unwrapped into directory /usr/smcgee/.cpan/build/DBD-JDBC-0.64 Has already been processed within this session Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/01_env........install_driver(JDBC) failed: Bareword "SQL_BIGINT" not allowed while "strict subs" in use at /usr/smcgee/.cpan/build/DBD-JDBC-0.64/blib/lib/DBD/JDBC.pm line 1028. BEGIN not safe after errors--compilation aborted at /usr/smcgee/.cpan/build/DBD-JDBC-0.64/blib/lib/DBD/JDBC.pm line 1089. Compilation failed in require at (eval 1) line 3. at t/01_env.t line 15 t/01_env........dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 4-5 Failed 2/5 tests, 60.00% okay t/02_connect....No driver name found; check your environment variables skipped all skipped: no reason given t/basis.........skipped all skipped: no reason given t/oracle........skipped all skipped: no reason given Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/01_env.t 255 65280 5 2 40.00% 4-5 3 tests skipped. Failed 1/4 test scripts, 75.00% okay. 2/5 subtests failed, 60.00% okay. make: *** [test_dynamic] Error 29 /usr/local/bin/make test -- NOT OK The version of Perl I have was downloaded and installed on October 10 or 11 from http://www.cpan.org/ and reports (perl -v): This is perl, v5.8.0 built for sun4-solaris A uname -a on this box responds: SunOS phantom 5.8 Generic_108528-03 sun4m sparc SUNW,SPARCstation-5 Since everything else about the Perl installation seems to work fine, an all other modules I have tried seem to install and work well, I am wondering if it could be a compatibility problem with this version of Perl. Hopefully you can help me get this module working in my environment. Thanks Scott McGee
It's not so much the Perl version as the DBI version. DBD::JDBC uses a constant which used to be defined in the DBI module but was removed after DBI 1.14. A workaround is to replace uses of SQL_BIGINT with -5 in JDBC.pm.