Skip Menu |

This queue is for tickets about the marc-moose CPAN distribution.

Report information
The Basics
Id: 89817
Status: patched
Priority: 0/
Queue: marc-moose

People
Owner: FREDERICD [...] cpan.org
Requestors: ANDK [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.0.1
Fixed in: (no value)



Subject: Undefined subroutine &bytes::substr called
I found the diagnostic line in the report http://www.cpantesters.org/cpan/report/8b9b9686-3d49-11e3-91c1-fbd8f24aa4a3 I turns out that somebody decides to use XML::Parser or XML::LibXML for parsing. When th decision goes in favor of XML::Parser, then this error occurs, but when the decision goes in favor of LibXML, then somebody loads bytes.pm and so the function call bytes::substr() succeeds. My fix: --- lib/MARC/Moose/Parser/Iso2709.pm~ 2013-10-28 17:08:07.765789477 +0100 +++ lib/MARC/Moose/Parser/Iso2709.pm 2013-10-28 17:08:21.462173010 +0100 @@ -7,6 +7,7 @@ use Moose; use 5.010; use utf8; +require bytes; extends 'MARC::Moose::Parser'; Thanks && Regards,
How exactly did you catch this bug?
CC: ANDK [...] cpan.org
Subject: Re: [rt.cpan.org #89817] Undefined subroutine &bytes::substr called
Date: Mon, 28 Oct 2013 17:43:48 +0100
To: bug-marc-moose [...] rt.cpan.org
From: Andreas Koenig <andreas.koenig.7os6VVqR [...] franz.ak.mind.de>
"Frédéric Demians via RT" <bug-marc-moose@rt.cpan.org> writes: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=89817 > > > How exactly did you catch this bug?
I started t/parser.t in the debugger and compared the loaded modules with the 'M' command. Here is a small hunk of the diff: -'XML/NamespaceSupport.pm' => '1.11 -'XML/Parser.pm' => '2.41 -'XML/Parser/Expat.pm' => '2.41 +'XML/LibXML.pm' => '2.0106 +'XML/LibXML/AttributeHash.pm' => '2.0106 +'XML/LibXML/Boolean.pm' => '2.0106 +'XML/LibXML/Error.pm' => '2.0106 +'XML/LibXML/Literal.pm' => '2.0106 +'XML/LibXML/NodeList.pm' => '2.0106 +'XML/LibXML/Number.pm' => '2.0106 +'XML/LibXML/SAX.pm' => '2.0106 +'XML/LibXML/XPathContext.pm' => '2.0106 'XML/SAX.pm' => '0.99 'XML/SAX/Base.pm' => '1.08 'XML/SAX/Exception.pm' => '1.08 -'XML/SAX/Expat.pm' => '0.50 Where the "-" lines are with from the failing perl, the "+" lines froma succeeding perl. And further down: -'arybase.pm' => '0.05 -'attributes.pm' => '0.19 -'base.pm' => '2.18 +'arybase.pm' => '0.06 +'attributes.pm' => '0.21 +'base.pm' => '2.19 +'bytes.pm' => '1.04 -- andreas
Thanks. I update the module to 1.0.3, with your fix.
Subject: Re: [rt.cpan.org #89817] Undefined subroutine &bytes::substr called
Date: Mon, 28 Oct 2013 17:52:50 +0100
To: bug-marc-moose [...] rt.cpan.org
From: Andreas Koenig <andreas.koenig.7os6VVqR [...] franz.ak.mind.de>
Thanks! -- andreas