Skip Menu |

This queue is for tickets about the XML-Simple CPAN distribution.

Report information
The Basics
Id: 15345
Status: rejected
Priority: 0/
Queue: XML-Simple

People
Owner: Nobody in particular
Requestors: dwzysk [...] us.ibm.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 2.14
Fixed in: (no value)



Subject: XML-Simple does not install with XML-SAX 0.13
Distribution name: XML-Simple-2.14 Perl version: 5.8.5 Operating System: AIX 5.2.1 Trying to install with the latest version of XML-SAX-0.13 which was released Oct. 24, 2005. We encountered the errors listed below on two seperate machines with the same result. Installed pervious version of XML SAX, XML-SAX-0.12, and were able to successfully install XML Simple without errors. ===================================================================== Running make test PERL_DL_NONLAZY=1 /perl5/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t # Package Version # perl 5.8.5 # XML::Simple 2.14 # Storable 2.13 # XML::Parser Not Installed # XML::SAX 0.13 # XML::NamespaceSupport 1.08 # XML::SAX::PurePerl 0.90 (default parser) t/0_Config........ok t/1_XMLin.........ok 1/122Unable to recognise encoding of this document at /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDetect.pm line 96. t/1_XMLin.........ok 6/122Unable to recognise encoding of this document at /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDetect.pm line 96. t/1_XMLin.........ok 7/122Unable to recognise encoding of this document at /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDetect.pm line 96. Unable to recognise encoding of this document at /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDetect.pm line 96. t/1_XMLin.........ok 9/122Unable to recognise encoding of this document at /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDetect.pm line 96. t/1_XMLin.........ok 10/122Unable to recognise encoding of this document at /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDetect.pm line 96. t/1_XMLin.........ok 12/122Unable to recognise encoding of this document at /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDetect.pm line 96. Unable to recognise encoding of this document at /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDetect.pm line 96. t/1_XMLin.........ok 13/122Unable to recognise encoding of this document at /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDetect.pm line 96. t/1_XMLin.........ok 14/122Unable to recognise encoding of this document at /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDetect.pm line 96. t/1_XMLin.........ok 16/122Unable to recognise encoding of this document at /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDetect.pm line 96. Unable to recognise encoding of this document at /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDetect.pm line 96. t/1_XMLin.........ok 17/122Unable to recognise encoding of this document at /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDetect.pm line 96. t/1_XMLin.........ok 18/122Unable to recognise encoding of this document at /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDetect.pm line 96. t/1_XMLin.........ok 19/122Unable to recognise encoding of this document at /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDetect.pm line 96. t/1_XMLin.........ok 20/122Unable to recognise encoding of this document at /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDetect.pm line 96. t/1_XMLin.........ok 22/122Unable to recognise encoding of this document at /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDetect.pm line 96. t/1_XMLin.........ok 23/122Unable to recognise encoding of this document at /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDetect.pm line 96. Unable to recognise encoding of this document at /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDetect.pm line 96. t/1_XMLin.........ok 24/122Unable to recognise encoding of this document at /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDetect.pm line 96. t/1_XMLin.........ok 30/122 # Failed test (t/1_XMLin.t at line 380) # got: 'Unable to recognise encoding of this document at /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDetect.pm line 96. # ' # expected: '' t/1_XMLin.........ok 36/122Unable to recognise encoding of this document at /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDetect.pm line 96. t/1_XMLin.........ok 37/122 # Failed test (t/1_XMLin.t at line 426) # Structures begin differing at: # $got->{cdata} = '<greeting>Hello, world!</greeting>>' # $expected->{cdata} = '<greeting>Hello, world!</greeting>' t/1_XMLin.........NOK 38 # Failed test (t/1_XMLin.t at line 432) # Structures begin differing at: # $got->{x} = '<y>one</y>><y>two</y>>' # $expected->{x} = '<y>one</y><y>two</y>' t/1_XMLin.........ok 52/122Unable to recognise encoding of this document at /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDetect.pm line 96, <STDIN> line 1. t/1_XMLin.........ok 55/122Unable to recognise encoding of this document at /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDetect.pm line 96, <STDIN> line 1. Unable to recognise encoding of this document at /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDetect.pm line 96, <STDIN> line 1. t/1_XMLin.........ok 57/122Unable to recognise encoding of this document at /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDetect.pm line 96, <STDIN> line 1. t/1_XMLin.........ok 58/122Unable to recognise encoding of this document at /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDetect.pm line 96, <STDIN> line 1. t/1_XMLin.........ok 59/122Unable to recognise encoding of this document at /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDetect.pm line 96, <STDIN> line 1. t/1_XMLin.........ok 65/122Unable to recognise encoding of this document at /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDetect.pm line 96, <STDIN> line 1. t/1_XMLin.........ok 66/122Unable to recognise encoding of this document at /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDetect.pm line 96, <STDIN> line 1. t/1_XMLin.........ok 121/122 t/1_XMLin.........NOK 122# Failed test (t/1_XMLin.t at line 1443) # Structures begin differing at: # $got->{pubpath}{test1}{title} = 'web_source -> web_target1' # $expected->{pubpath}{test1}{title} = 'web_source -&gt; web_target1' # Looks like you failed 4 tests of 122. t/1_XMLin.........dubious Test returned status 4 (wstat 1024, 0x400) DIED. FAILED tests 32, 38-39, 122 Failed 4/122 tests, 96.72% okay t/2_XMLout........ok 43/196 # Failed test (t/2_XMLout.t at line 302) # Structures begin differing at: # $got->{c} = '&amp;C&amp;' # $expected->{c} = '&C&' t/2_XMLout........ok 183/196Unable to recognise encoding of this document at /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDetect.pm line 96. t/2_XMLout........ok 187/196Unable to recognise encoding of this document at /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDetect.pm line 96. t/2_XMLout........ok 188/196Unable to recognise encoding of this document at /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDetect.pm line 96. t/2_XMLout........ok 196/196# Looks like you failed 1 test of 196. t/2_XMLout........dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 47 Failed 1/196 tests, 99.49% okay (less 1 skipped test: 194 okay, 98.98%) t/3_Storable......ok t/4_MemShare......ok t/5_MemCopy.......ok t/6_ObjIntf.......ok t/7_SaxStuff......ok t/8_Namespaces....ok t/9_Strict........ok 9/38Unable to recognise encoding of this document at /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDetect.pm line 96. t/9_Strict........ok 11/38Unable to recognise encoding of this document at /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDetect.pm line 96. t/9_Strict........ok 21/38Unable to recognise encoding of this document at /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDetect.pm line 96. t/9_Strict........ok 30/38Unable to recognise encoding of this document at /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDetect.pm line 96. t/9_Strict........ok t/A_XMLParser.....skipped all skipped: no XML::Parser Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/1_XMLin.t 4 1024 122 4 3.28% 32 38-39 122 t/2_XMLout.t 1 256 196 1 0.51% 47 1 test and 1 subtest skipped. Failed 2/11 test scripts, 81.82% okay. 5/454 subtests failed, 98.90% okay. make: The error code from the last command is 2. Stop. /usr/bin/make test -- NOT OK Running make install make test had returned bad status, won't install without force
From: william [...] knowmad.com
I see the same results under Ubuntu Linux (breezy).
The problem is caused by a couple of bugs in the latest version of XML::SAX (see also http://rt.cpan.org/NoAuth/Bug.html?id=15891 ). I have just provided patches to Matt to resolve those problems. XML::SAX::PurePerl is not the best choice for a system default parser. Installing another SAX parser (e.g.: XML::SAX::Expat or XML::SAX::ExpatXS) would change the system default and also workaround the XML::Simple installation issues. Regards Grant
On 2005-10-27 13:24:34 星期四, guest wrote: Show quoted text
> Distribution name: XML-Simple-2.14 > Perl version: 5.8.5 > Operating System: AIX 5.2.1 > > Trying to install with the latest version of XML-SAX-0.13 which was > released Oct. 24, 2005. We encountered the errors listed below on > two seperate machines with the same result. Installed pervious > version of XML SAX, XML-SAX-0.12, and were able to successfully > install XML Simple without errors. > > ===================================================================== > > Running make test > PERL_DL_NONLAZY=1 /perl5/bin/perl "-
MExtUtils::Command::MM" "- Show quoted text
> e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t > # Package Version > # perl 5.8.5 > # XML::Simple 2.14 > # Storable 2.13 > # XML::Parser Not Installed > # XML::SAX 0.13 > # XML::NamespaceSupport 1.08 > # XML::SAX::PurePerl 0.90 (default parser) > t/0_Config........ok > t/1_XMLin.........ok 1/122Unable to recognise encoding of this > document at > /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDete
ct.pm Show quoted text
> line 96. > t/1_XMLin.........ok 6/122Unable to recognise encoding of this > document at > /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDete
ct.pm Show quoted text
> line 96. > t/1_XMLin.........ok 7/122Unable to recognise encoding of this > document at > /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDete
ct.pm Show quoted text
> line 96. > Unable to recognise encoding of this document at > /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDete
ct.pm Show quoted text
> line 96. > t/1_XMLin.........ok 9/122Unable to recognise encoding of this > document at > /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDete
ct.pm Show quoted text
> line 96. > t/1_XMLin.........ok 10/122Unable to recognise encoding of this > document at > /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDete
ct.pm Show quoted text
> line 96. > t/1_XMLin.........ok 12/122Unable to recognise encoding of this > document at > /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDete
ct.pm Show quoted text
> line 96. > Unable to recognise encoding of this document at > /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDete
ct.pm Show quoted text
> line 96. > t/1_XMLin.........ok 13/122Unable to recognise encoding of this > document at > /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDete
ct.pm Show quoted text
> line 96. > t/1_XMLin.........ok 14/122Unable to recognise encoding of this > document at > /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDete
ct.pm Show quoted text
> line 96. > t/1_XMLin.........ok 16/122Unable to recognise encoding of this > document at > /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDete
ct.pm Show quoted text
> line 96. > Unable to recognise encoding of this document at > /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDete
ct.pm Show quoted text
> line 96. > t/1_XMLin.........ok 17/122Unable to recognise encoding of this > document at > /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDete
ct.pm Show quoted text
> line 96. > t/1_XMLin.........ok 18/122Unable to recognise encoding of this > document at > /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDete
ct.pm Show quoted text
> line 96. > t/1_XMLin.........ok 19/122Unable to recognise encoding of this > document at > /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDete
ct.pm Show quoted text
> line 96. > t/1_XMLin.........ok 20/122Unable to recognise encoding of this > document at > /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDete
ct.pm Show quoted text
> line 96. > t/1_XMLin.........ok 22/122Unable to recognise encoding of this > document at > /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDete
ct.pm Show quoted text
> line 96. > t/1_XMLin.........ok 23/122Unable to recognise encoding of this > document at > /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDete
ct.pm Show quoted text
> line 96. > Unable to recognise encoding of this document at > /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDete
ct.pm Show quoted text
> line 96. > t/1_XMLin.........ok 24/122Unable to recognise encoding of this > document at > /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDete
ct.pm Show quoted text
> line 96. > t/1_XMLin.........ok 30/122 > # Failed test (t/1_XMLin.t at line 380) > # got: 'Unable to recognise encoding of this document at > /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDete
ct.pm Show quoted text
> line 96. > # ' > # expected: '' > t/1_XMLin.........ok 36/122Unable to recognise encoding of this > document at > /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDete
ct.pm Show quoted text
> line 96. > t/1_XMLin.........ok 37/122 > # Failed test (t/1_XMLin.t at line 426) > # Structures begin differing at: > # $got->{cdata} = '<greeting>Hello, world!</greeting>>' > # $expected->{cdata} = '<greeting>Hello, world!</greeting>' > t/1_XMLin.........NOK 38 > # Failed test (t/1_XMLin.t at line 432) > # Structures begin differing at: > # $got->{x} = '<y>one</y>><y>two</y>>' > # $expected->{x} = '<y>one</y><y>two</y>' > t/1_XMLin.........ok 52/122Unable to recognise encoding of this > document at > /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDete
ct.pm Show quoted text
> line 96, <STDIN> line 1. > t/1_XMLin.........ok 55/122Unable to recognise encoding of this > document at > /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDete
ct.pm Show quoted text
> line 96, <STDIN> line 1. > Unable to recognise encoding of this document at > /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDete
ct.pm Show quoted text
> line 96, <STDIN> line 1. > t/1_XMLin.........ok 57/122Unable to recognise encoding of this > document at > /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDete
ct.pm Show quoted text
> line 96, <STDIN> line 1. > t/1_XMLin.........ok 58/122Unable to recognise encoding of this > document at > /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDete
ct.pm Show quoted text
> line 96, <STDIN> line 1. > t/1_XMLin.........ok 59/122Unable to recognise encoding of this > document at > /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDete
ct.pm Show quoted text
> line 96, <STDIN> line 1. > t/1_XMLin.........ok 65/122Unable to recognise encoding of this > document at > /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDete
ct.pm Show quoted text
> line 96, <STDIN> line 1. > t/1_XMLin.........ok 66/122Unable to recognise encoding of this > document at > /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDete
ct.pm Show quoted text
> line 96, <STDIN> line 1. > t/1_XMLin.........ok 121/122 > t/1_XMLin.........NOK 122# Failed test (t/1_XMLin.t at line 1443) > # Structures begin differing at: > # $got->{pubpath}{test1}{title} = 'web_source ->
web_target1' Show quoted text
> # $expected->{pubpath}{test1}{title} = 'web_source -&gt; > web_target1' > # Looks like you failed 4 tests of 122. > t/1_XMLin.........dubious > Test returned status 4 (wstat 1024, 0x400) > DIED. FAILED tests 32, 38-39, 122 > Failed 4/122 tests, 96.72% okay > t/2_XMLout........ok 43/196 > # Failed test (t/2_XMLout.t at line 302) > # Structures begin differing at: > # $got->{c} = '&amp;C&amp;' > # $expected->{c} = '&C&' > t/2_XMLout........ok 183/196Unable to recognise encoding of this > document at > /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDete
ct.pm Show quoted text
> line 96. > t/2_XMLout........ok 187/196Unable to recognise encoding of this > document at > /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDete
ct.pm Show quoted text
> line 96. > t/2_XMLout........ok 188/196Unable to recognise encoding of this > document at > /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDete
ct.pm Show quoted text
> line 96. > t/2_XMLout........ok 196/196# Looks like you failed 1 test of 196. > t/2_XMLout........dubious > Test returned status 1 (wstat 256, 0x100) > DIED. FAILED test 47 > Failed 1/196 tests, 99.49% okay (less 1 skipped test: 194 > okay, 98.98%) > t/3_Storable......ok > t/4_MemShare......ok > t/5_MemCopy.......ok > t/6_ObjIntf.......ok > t/7_SaxStuff......ok > t/8_Namespaces....ok > t/9_Strict........ok 9/38Unable to recognise encoding of this
document Show quoted text
> at > /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDete
ct.pm Show quoted text
> line 96. > t/9_Strict........ok 11/38Unable to recognise encoding of this > document at > /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDete
ct.pm Show quoted text
> line 96. > t/9_Strict........ok 21/38Unable to recognise encoding of this > document at > /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDete
ct.pm Show quoted text
> line 96. > t/9_Strict........ok 30/38Unable to recognise encoding of this > document at > /usr/local/perl5/lib/site_perl/5.8.5/XML/SAX/PurePerl/EncodingDete
ct.pm Show quoted text
> line 96. > t/9_Strict........ok > t/A_XMLParser.....skipped > all skipped: no XML::Parser > Failed Test Stat Wstat Total Fail Failed List of Failed > ---------------------------------------------------------------------
---------- Show quoted text
> t/1_XMLin.t 4 1024 122 4 3.28% 32 38-39 122 > t/2_XMLout.t 1 256 196 1 0.51% 47 > 1 test and 1 subtest skipped. > Failed 2/11 test scripts, 81.82% okay. 5/454 subtests failed, 98.90% > okay. > make: The error code from the last command is 2. > > > Stop. > /usr/bin/make test -- NOT OK > Running make install > make test had returned bad status, won't install without force
From: Grant McLean
The fact that the XML::Simple tests are failing is alerting you to the fact that your default parser is broken. The parser is the problem not XML::Simple. If you install XML::SAX::Expat you'll get a parser that's not broken and is faster too. Regards Grant