DBI 1.45: "Use of uninitialized value in printf at test.pl line 1 06" on MSWin32-x86-multi-thread

From: David Repko (Repkod_at_diebold.com)
Date: 10/29/04


To: "'dbi-users@perl.org'" <dbi-users@perl.org>
Date: Fri, 29 Oct 2004 10:49:06 -0400

This appears to be a known problem, see
http://groups.google.com/groups?hl=en&lr=&q=test.pl+uninitialized+%22dbi+onl
y%22:

    ### What's that warning?

        printf "%5d NullP sth/s perl %8s %s (%s %s %s)\n\n",
         $count/$dur, $], $Config{archname},
         $Config{gccversion} ? 'gcc' : $Config{cc},
         (split / /, $Config{gccversion}||$Config{ccversion}||'')[0],
         $Config{optimize};

    should be

        printf "%5d NullP sth/s perl %8s %s (%s %s %s)\n\n",
         $count/$dur, $], $Config{archname},
         $Config{gccversion} ? 'gcc' : $Config{cc},
         (split / /, $Config{gccversion}||$Config{ccversion}||'')[0]||'',
         $Config{optimize};

$Config{ccversion} is undefined on 4 perl versions that I've built on MS
Win32 (5.6.1, 5.8.0, 5.8.3, and 5.8.5), so I'm guessing the modification
above should be applied to test.pl in future to avoid this warning.

David Repko
Diebold
Global Software Development
Direct Phone: +1 330 490 5982
Fax: +1 330 490 4727
Email: repkod@diebold.com
We won't rest.

 



Relevant Pages

  • RE: Installing DBD::File via CPAN
    ... I built this directly from source. ... > Did you build Perl from source, or install via a RPM or binary distro? ... > CPAN module so I wasn't expecting to get myself confused with multiple ...
    (perl.dbi.users)
  • Microsoft ODBC for Oracle problem
    ... This is perl, v5.8.2 built for MSWin32-x86-multi-thread ... ActiveState is a division of Sophos. ... advise the sender and delete the message and attachments immediately. ...
    (perl.dbi.users)
  • (Fwd) DBD module install problem
    ... I downloaded and built from source the lastest Perl from CPAN. ... I built it with gcc compiler which was built as a 64 bit binary. ... I was able to add the DBI module for Oracle, with no problem, but when I during the make of DBD I get this warning and an error message, and am unable to install it. ...
    (perl.dbi.users)
  • Re: unwanted leading whitespace when using print
    ... push; ... Note the leading whitespace before 'Ja, ' and before 'En soms'. ... This is perl, v5.8.7 built for MSWin32-x86-multi-thread ...
    (comp.lang.perl.misc)
  • Re: qr// doesnt handle m modifier?
    ... third "print" statements print, ... in the regular expression is ignored. ... This is perl, v5.8.8 built for i686-linux-thread-multi ...
    (comp.lang.perl.misc)