Bug#494808: libdbd-xbase-perl: Prototype mismatch: sub XBase::Base::O_BINARY () vs none

Damyan Ivanov dmn at debian.org
Wed Aug 13 07:54:41 UTC 2008


severity 494808 important
thanks

-=| gregor herrmann, Tue, Aug 12, 2008 at 04:25:41PM -0300 |=-
> On Tue, 12 Aug 2008 14:02:28 +0200, Paul Slootman wrote:
> 
> > libdbd-xbase-perl seems to have a problem with perl 5.10;
> > a simple no-brainer script as follows spews a warning message:
> 
> Confirmed.
> The two solutions mentioned on
> http://rt.cpan.org/Public/Bug/Display.html?id=29523 both work for me,
> bot I'm not sure either which one to choose.

For reference, the two proposed solutions are:
* to not import anything from IO::File
* to prototype the local O_BINARY properly

I think about a third one - avoid redefining O_BINARY at all and use 
the imported one from IO::File.

Hmm. Looking at the code in XBase::Base.pm, it looks certainly weird 
to import O_BINARY from Fcntl on mswin, and redefine it otherwise.  
Importing always looks allright to me. Oh, and since it will come from 
IO::File anyway, just dropping the BEGIN code should solve it (also 
satisfying author's comment about hating it).


The bug is really annoying - a warning in every program using XBase.  
Bumping severity.

-- 
dam            JabberID: dam at jabber.minus273.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20080813/6b5aabe9/attachment.pgp 


More information about the pkg-perl-maintainers mailing list