Skip Menu |
 

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

Report information
The Basics
Id: 6836
Status: resolved
Priority: 0/
Queue: XML-Twig

People
Owner: Nobody in particular
Requestors: public [...] altowebsystems.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 3.15
Fixed in: 3.16



Subject: install problem 3.15 on RH9
Download (untitled) / with headers
text/plain 7.8k
Can't install XML-Twig-3.15 on Red Hat 9. (Also noticed that a similar problem goes all back to 3-12.) The problem seems to lie in test_additional. A copy of the install attempt is included. I was able to install XML-Twig-3.11 without any problems. (Note: After I got 3-11 installed. I tried updating expat to 1.95.7-4. But XML-Twig-3.15 would still not install. I don't know if I need to reinstall module or something else. I see another bug that talks about a reg expression bug in perl 5.8.0, which is what this looks like, but I'm not sure if there is anything to do without upgrading perl which is not an option for this particular machine right now.) perl -v This is perl, v5.8.0 built for i386-linux-thread-multi uname -a Linux localhost.localdomain 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386 GNU/Linux ############################################################ [root]# perl Makefile.PL Do you want to install 'xml_pp' (XML pretty printer)? [y] y Do you want to install 'xml_grep' (XML grep - grep XML files using XML::Twig's subset of XPath)? [y] y Do you want to install 'xml_spellcheck' (spellcheck XML files skipping tags)? [y] y Checking if your kit is complete... Looks good Writing Makefile for XML::Twig [root]# make echo "building Twig.pm" building Twig.pm /usr/bin/perl speedup Twig.pm.slow > Twig.pm perl version is 5.008 XML::Parser version is 2.34 /usr/bin/perl check_optional_modules cp Twig.pm blib/lib/XML/Twig.pm cp Twig/XPath.pm blib/lib/XML/Twig/XPath.pm cp tools/xml_grep/xml_grep blib/script/xml_grep /usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/xml_grep cp tools/xml_pp/xml_pp blib/script/xml_pp /usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/xml_pp cp tools/xml_spellcheck/xml_spellcheck blib/script/xml_spellcheck /usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/xml_spellcheck Manifying blib/man3/XML::Twig.3pm Manifying blib/man1/xml_grep.1 Manifying blib/man1/xml_pp.1 Manifying blib/man1/xml_spellcheck.1 [root]# make test echo "building Twig.pm" building Twig.pm /usr/bin/perl speedup Twig.pm.slow > Twig.pm perl version is 5.008 XML::Parser version is 2.34 /usr/bin/perl check_optional_modules Skip blib/lib/XML/Twig.pm (unchanged) Skip blib/lib/XML/Twig/XPath.pm (unchanged) PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/is_field..........................ok t/pod...............................ok t/test1.............................ok t/test2.............................ok t/test3.............................ok t/test4.............................ok t/test5.............................ok t/test_additional...................complex substitution with subs_text: expected: '<doc><p>see <a href="http://www.xmltwig.com">www.xmltwig.com</a> but do not link to http://bad.com, though link to toto and see <a href="http://www.xml.com">www.xml.com</a></p><p>now http://www.nolink.com and do not link to this and do not link to http://www.bad.com and do not link to http://www.bad2.com and see <a href="http://link.com">link.com</a> also</p></doc>' got : '<doc><p>see <a href="http://"></a>www.xmltwig.com but do not link to http://bad.com, though link to toto and see <a href="http://www.xml.com">www.xml.com</a></p><p>now http://www.nolink.com and do not link to this and do not link to http://www.bad.com and do not link to http://www.bad2.com and see <a href="http://"></a>link.com also</p></doc>' : skipping 2 tests output_text_filter html: expected: '<?xml version="1.0" encoding="UTF-8"?> <doc>&eacute;t&eacute;</doc>' got : '<?xml version="1.0" encoding="UTF-8"?> <doc>&#233;t&#233;</doc>' output_filter html: expected: '&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;doc&gt;&eacute;t&eacute;&lt;/doc&gt;' got : '&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;doc&gt;&#233;t&#233;&lt;/doc&gt;' need Unicode::Map8 and Unicode::String for those tests: skipping 3 tests t/test_additional...................FAILED tests 284, 346, 348 Failed 3/646 tests, 99.54% okay t/test_attregexp_cond...............ok t/test_cdata........................ok t/test_class_methods................ok t/test_comment_handler..............ok t/test_drop_comments................ok t/test_entities.....................ok t/test_erase........................ok t/test_errors.......................ok t/test_expand_external_entities.....ok t/test_ignore_elts..................ok t/test_nav..........................ok t/test_need_io_scalar...............ok t/test_need_use_bytes...............: skipping 2 tests Use of uninitialized value in addition (+) at t/test_need_use_bytes.t line 136. Use of uninitialized value in addition (+) at t/test_need_use_bytes.t line 136. Use of uninitialized value in addition (+) at t/test_need_use_bytes.t line 140. t/test_need_use_bytes...............ok t/test_pi_handler...................ok t/test_pos..........................ok t/test_simplify.....................Name "XML::Simple::PREFERRED_PARSER" used only once: possible typo at t/test_simplify.t line 22. skipping: YAML is not installed t/test_simplify.....................ok t/test_spaces.......................ok t/test_twig_roots...................ok t/test_unique_xpath.................ok t/test_variables....................ok t/test_with_lwp.....................ok 2/13 ### warning is normal here ### t/test_with_lwp.....................ok 3/13file:test_with_lwp_no_file.xml File `test_with_lwp_no_file.xml' does not exist at t/test_with_lwp.t line 40 t/test_with_lwp.....................ok t/test_xpath_cond...................ok t/xmlxpath_01basic..................ok t/xmlxpath_02descendant.............ok t/xmlxpath_03star...................ok t/xmlxpath_04pos....................ok t/xmlxpath_05attrib.................ok t/xmlxpath_06attrib_val.............ok t/xmlxpath_07count..................ok t/xmlxpath_08name...................ok t/xmlxpath_09a_string_length........ok t/xmlxpath_09string_length..........ok t/xmlxpath_10pipe...................ok t/xmlxpath_12axisdescendant.........ok t/xmlxpath_13axisparent.............ok t/xmlxpath_14axisancestor...........ok t/xmlxpath_15axisfol_sib............ok t/xmlxpath_16axisprec_sib...........ok t/xmlxpath_17axisfollowing..........ok t/xmlxpath_18axispreceding..........ok t/xmlxpath_19axisd_or_s.............ok t/xmlxpath_20axisa_or_s.............ok t/xmlxpath_21allnodes...............ok t/xmlxpath_22name_select............ok t/xmlxpath_23func...................ok t/xmlxpath_24namespaces.............ok t/xmlxpath_25scope..................ok t/xmlxpath_26predicate..............ok t/xmlxpath_28ancestor2..............ok t/xmlxpath_29desc_with_predicate....ok t/xmlxpath_30lang...................ok t/xmlxpath_additional...............ok t/xmlxpath_nav......................ok t/xmlxpath_test1....................ok t/xmlxpath_test_twig_roots..........ok t/xmlxpath_test_with_handlers.......ok t/xmlxpath_xpath_cond...............ok t/zz_dump_config.................... Configuration: perl: 5.008 OS: linux - i686-linux XML::Parser : 2.34 expat : 1.95.5 Scalar::Util : 1.09 Encode : 1.83 LWP : 5.65 HTML::Entities : 1.23 Tie::IxHash : 1.21 XML::XPath : 1.13 Test : 1.23 Test::Pod : 1.16 XML::Simple : 2.12 XML::Handler::YAWriter : 0.23 XML::SAX::Writer : 0.44 IO::Scalar : 2.105 Please add this information to bug reports (you can run t/zz_dump_config.t to get it) t/zz_dump_config....................ok Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/test_additional.t 646 3 0.46% 284 346 348 Failed 1/66 test scripts, 98.48% okay. 3/1659 subtests failed, 99.82% okay. make: *** [test_dynamic] Error 29 ############################################################
Download (untitled) / with headers
text/plain 1.4k
[guest - Fri Jul 2 12:02:32 2004]: Show quoted text
> Can't install XML-Twig-3.15 on Red Hat 9. (Also noticed that a similar > problem goes all back to 3-12.) The problem seems to lie in > test_additional. A copy of the install attempt is included. I was > able to install XML-Twig-3.11 without any problems. > > > (Note: After I got 3-11 installed. I tried updating expat to 1.95.7-4. > But XML-Twig-3.15 would still not install. I don't know if I need > to reinstall module or something else. I see another bug that > talks about a reg expression bug in perl 5.8.0, which is what this > looks like, but I'm not sure if there is anything to do without > upgrading perl which is not an option for this particular machine > right now.)
Hi, Sorry for the long delay before responding, I just moved and was without connection for a while, then forgot all about this bug report. First, the code is more or less the same in 3.12-15 and in 3.11, I just added _LOTS_ of tests. So if XML::Twig 3.11 worked for you, then later version will most likely still work. I haven't been able to reproduce the bug so far. I don't have a RedHat box to play with, and in my experience they often ship odd versions of Perl and/or modules. Maybe try the latest development version of XML::Twig (from http://xmltwig.com/xmltwig/) and see if the bug is still there. Or try running the tests either with a recompiled perl 5.8.0 or (even better) with a more recent version. Thanks __ mirod


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.