sub O_BINARY declaration while already exported by IO::File

Bug #342246 reported by Rakotomandimby Mihamina
4
Affects Status Importance Assigned to Milestone
libdbd-xbase-perl (Ubuntu)
Fix Committed
Undecided
Florian Schlichting

Bug Description

Binary package hint: libdbd-xbase-perl

When using the xbase, I get this error:

Prototype mismatch: sub XBase::Base::O_BINARY () vs none at (eval 7) line 1.

To solve it, I have to remove the BEGIN block on XBase/Base.pm:
BEGIN { local $^W = 0;
  if ($^O =~ /mswin/i) {
    eval 'use Fcntl qw( O_BINARY )'
  } else {
    eval ' sub O_BINARY { 0 } '
  }
}

It was an indication given by Paul Gaborit on fr.comp.lang.perl, and I
just report.
Ubuntu Intrepid package doesnt patch it yet.

Revision history for this message
Rakotomandimby Mihamina (tech-infogerance) wrote :

The bug has already filed upstream, by myself:
https://rt.cpan.org/Ticket/Display.html?id=44091

Revision history for this message
Florian Schlichting (fschlich) wrote :

bug fixed in DBD-XBase-1.01. libdbd-xbase-perl-1.03 recently uploaded to Debian unstable, should be synced to Ubuntu in time for 12.04

Changed in libdbd-xbase-perl (Ubuntu):
assignee: nobody → Florian (fschlich)
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.