Hi,

I have recompiled Perl from Source (v5.40.2) with DBI (DBI-1.647.tar.gz) and DBD-Oracle (DBD-Oracle-1.90.tar.gz) - and am now getting redefined errors for the first time.

Was previously on v5.38.0 with DBI (DBI-1.643.tar.gz) and DBD-Oracle (DBD-Oracle-1.83.tar.gz) and didn't face this issue.

I would like to keep warning - and either resolve these warnings, or remove them.

I have tried the following, but to no avail. I still get the defined warnings.

  1. use warnings qw(-refine);
  2. no warnings qw(redefine);
  3. no warnings 'redefine';

Any advice, Ye Great Monks of Perl?

######################## # Declare Modules ######################## use strict; use warnings; # Other Modules use POSIX qw(strftime); use Time::HiRes qw(time); use Time::Piece; use Time::Seconds; no warnings 'redefine'; use DBI; use DBD::Oracle qw(:ora_types :ora_fetch_orient :ora_exe_modes); . . . . sub connect_to_database($$$) { # Declare the variables my ($db_uid, $db_pwd, $db_sid) = @_; my $dbh; my %attribs = ( PrintError => 0, AutoCommit => 0, RaiseError => 0 ); $dbh = DBI->connect("DBI:Oracle:".$db_sid, $db_uid, $db_pwd , +\%attribs ) or die "ERROR: Can't connect to database ($db_uid\@$d +b_sid): ".$DBI::errstr."\n"; return $dbh; }
Subroutine DBI::db::ora_lob_read redefined at /applications/app12345/A +PP_HOME/apps/perl5/lib/site_perl/5.40.2/x86_64-linux-thread-multi/DBI +.pm line 1398. Subroutine DBI::db::ora_lob_write redefined at /applications/app12345/ +APP_HOME/apps/perl5/lib/site_perl/5.40.2/x86_64-linux-thread-multi/DB +I.pm line 1398. Subroutine DBI::db::ora_lob_append redefined at /applications/app12345 +/APP_HOME/apps/perl5/lib/site_perl/5.40.2/x86_64-linux-thread-multi/D +BI.pm line 1398. Subroutine DBI::db::ora_lob_trim redefined at /applications/app12345/A +PP_HOME/apps/perl5/lib/site_perl/5.40.2/x86_64-linux-thread-multi/DBI +.pm line 1398. Subroutine DBI::db::ora_lob_length redefined at /applications/app12345 +/APP_HOME/apps/perl5/lib/site_perl/5.40.2/x86_64-linux-thread-multi/D +BI.pm line 1398. Subroutine DBI::db::ora_lob_chunk_size redefined at /applications/app1 +2345/APP_HOME/apps/perl5/lib/site_perl/5.40.2/x86_64-linux-thread-mul +ti/DBI.pm line 1398. Subroutine DBI::db::ora_lob_is_init redefined at /applications/app1234 +5/APP_HOME/apps/perl5/lib/site_perl/5.40.2/x86_64-linux-thread-multi/ +DBI.pm line 1398. Subroutine DBI::db::ora_nls_parameters redefined at /applications/app1 +2345/APP_HOME/apps/perl5/lib/site_perl/5.40.2/x86_64-linux-thread-mul +ti/DBI.pm line 1398. Subroutine DBI::db::ora_can_unicode redefined at /applications/app1234 +5/APP_HOME/apps/perl5/lib/site_perl/5.40.2/x86_64-linux-thread-multi/ +DBI.pm line 1398. Subroutine DBI::db::ora_can_taf redefined at /applications/app12345/AP +P_HOME/apps/perl5/lib/site_perl/5.40.2/x86_64-linux-thread-multi/DBI. +pm line 1398. Subroutine DBI::db::ora_db_startup redefined at /applications/app12345 +/APP_HOME/apps/perl5/lib/site_perl/5.40.2/x86_64-linux-thread-multi/D +BI.pm line 1398. Subroutine DBI::db::ora_db_shutdown redefined at /applications/app1234 +5/APP_HOME/apps/perl5/lib/site_perl/5.40.2/x86_64-linux-thread-multi/ +DBI.pm line 1398. Subroutine DBI::st::ora_fetch_scroll redefined at /applications/app123 +45/APP_HOME/apps/perl5/lib/site_perl/5.40.2/x86_64-linux-thread-multi +/DBI.pm line 1398. Subroutine DBI::st::ora_scroll_position redefined at /applications/app +12345/APP_HOME/apps/perl5/lib/site_perl/5.40.2/x86_64-linux-thread-mu +lti/DBI.pm line 1398. Subroutine DBI::st::ora_ping redefined at /applications/app12345/APP_H +OME/apps/perl5/lib/site_perl/5.40.2/x86_64-linux-thread-multi/DBI.pm +line 1398. Subroutine DBI::st::ora_stmt_type_name redefined at /applications/app1 +2345/APP_HOME/apps/perl5/lib/site_perl/5.40.2/x86_64-linux-thread-mul +ti/DBI.pm line 1398. Subroutine DBI::st::ora_stmt_type redefined at /applications/app12345/ +APP_HOME/apps/perl5/lib/site_perl/5.40.2/x86_64-linux-thread-multi/DB +I.pm line 1398.

In reply to Cannot Remove Redefined Warnings by Sukhster

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.