I'm having trouble building the XML::LibXML perl module (latest version on CPAN, 2.0110). I can do "make", but "make test" fails. Here's the relevant output:
I'm packaging this as an RPM so I really want/need the tests to pass.+ /usr/bin/make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_h +arness(0, 'blib/lib', 'blib/arch')" t/*.t t/01basic.t ............................ 1/3 # # # Compiled against libxml2 version: 20706 # Running libxml2 version: 20706 # t/01basic.t ............................ ok t/02parse.t ............................ Failed 343/531 subtests t/03doc.t .............................. Failed 91/193 subtests t/04node.t ............................. ok t/05text.t ............................. ok t/06elements.t ......................... ok t/07dtd.t .............................. Failed 21/38 subtests t/08findnodes.t ........................ Failed 45/45 subtests t/09xpath.t ............................ Failed 10/54 subtests t/10ns.t ............................... ok t/11memory.t ........................... skipped: developers only (set + MEMORY_TEST=1 to run these tests) t/12html.t ............................. Failed 42/43 subtests t/13dtd.t .............................. Failed 16/18 subtests t/14sax.t .............................. Failed 12/31 subtests t/15nodelist.t ......................... ok t/16docnodes.t ......................... ok t/17callbacks.t ........................ Failed 7/25 subtests t/18docfree.t .......................... ok t/19die_on_invalid_utf8_rt_58848.t ..... Failed 1/1 subtests t/19encoding.t ......................... ok t/20extras.t ........................... Failed 9/12 subtests t/21catalog.t .......................... Failed 1/1 subtests t/23rawfunctions.t ..................... ok t/24c14n.t ............................. ok t/25relaxng.t .......................... Failed 13/13 subtests t/26schema.t ........................... Failed 5/6 subtests t/27new_callbacks_simple.t ............. ok t/28new_callbacks_multiple.t ........... ok t/29id.t ............................... ok t/30keep_blanks.t ...................... ok t/30xpathcontext.t ..................... ok t/31xpc_functions.t .................... ok t/32xpc_variables.t .................... ok t/35huge_mode.t ........................ ok t/40reader.t ........................... Failed 99/100 subtests t/40reader_mem_error.t ................. ok t/41xinclude.t ......................... Failed 6/7 subtests t/42common.t ........................... ok t/43options.t .......................... ok t/44extent.t ........................... ok t/45regex.t ............................ ok t/46err_column.t ....................... ok t/47load_xml_callbacks.t ............... ok t/48_memleak_rt_83744.t ................ skipped: Test::LeakTrace is r +equired for memory leak tests. t/48_removeChild_crashes_rt_80395.t .... ok t/48_replaceNode_DTD_nodes_rT_80521.t .. ok t/48_RH5_double_free_rt83779.t ......... skipped: Test::LeakTrace is r +equired. t/48_rt55000.t ......................... ok t/48_SAX_Builder_rt_91433.t ............ ok t/48importing_nodes_IDs_rt_69520.t ..... ok t/49_load_html.t ....................... ok t/49callbacks_returning_undef.t ........ Failed 1/1 subtests t/49global_extent.t .................... ok t/50devel.t ............................ ok t/51_parse_html_string_rt87089.t ....... ok t/60error_prev_chain.t ................. No subtests run t/60struct_error.t ..................... ok t/61error.t ............................ ok t/62overload.t ......................... ok t/71overloads.t ........................ ok t/72destruction.t ...................... ok t/80registryleak.t ..................... ok t/90stack.t ............................ ok t/90threads.t .......................... skipped: optional (set THREAD +_TEST=1 to run these tests) t/91unique_key.t ....................... ok t/pod.t ................................ ok t/style-trailing-space.t ............... skipped: Test::TrailingSpace +required for trailing space test. Test Summary Report ------------------- t/02parse.t (Wstat: 11 Tests: 188 Failed: 0) Non-zero wait status: 11 Parse errors: Bad plan. You planned 531 tests but ran 188. t/03doc.t (Wstat: 11 Tests: 102 Failed: 0) Non-zero wait status: 11 Parse errors: Bad plan. You planned 193 tests but ran 102. t/07dtd.t (Wstat: 11 Tests: 17 Failed: 0) Non-zero wait status: 11 Parse errors: Bad plan. You planned 38 tests but ran 17. t/08findnodes.t (Wstat: 11 Tests: 0 Failed: 0) Non-zero wait status: 11 Parse errors: Bad plan. You planned 45 tests but ran 0. t/09xpath.t (Wstat: 11 Tests: 44 Failed: 0) Non-zero wait status: 11 Parse errors: Bad plan. You planned 54 tests but ran 44. t/12html.t (Wstat: 11 Tests: 1 Failed: 0) Non-zero wait status: 11 Parse errors: Bad plan. You planned 43 tests but ran 1. t/13dtd.t (Wstat: 11 Tests: 2 Failed: 0) Non-zero wait status: 11 Parse errors: Bad plan. You planned 18 tests but ran 2. t/14sax.t (Wstat: 11 Tests: 19 Failed: 0) Non-zero wait status: 11 Parse errors: Bad plan. You planned 31 tests but ran 19. t/17callbacks.t (Wstat: 11 Tests: 18 Failed: 0) Non-zero wait status: 11 Parse errors: Bad plan. You planned 25 tests but ran 18. t/19die_on_invalid_utf8_rt_58848.t (Wstat: 11 Tests: 0 Failed: 0) Non-zero wait status: 11 Parse errors: Bad plan. You planned 1 tests but ran 0. t/20extras.t (Wstat: 11 Tests: 3 Failed: 0) Non-zero wait status: 11 Parse errors: Bad plan. You planned 12 tests but ran 3. t/21catalog.t (Wstat: 11 Tests: 0 Failed: 0) Non-zero wait status: 11 Parse errors: Bad plan. You planned 1 tests but ran 0. t/25relaxng.t (Wstat: 11 Tests: 0 Failed: 0) Non-zero wait status: 11 Parse errors: Bad plan. You planned 13 tests but ran 0. t/26schema.t (Wstat: 11 Tests: 1 Failed: 0) Non-zero wait status: 11 Parse errors: Bad plan. You planned 6 tests but ran 1. t/40reader.t (Wstat: 11 Tests: 1 Failed: 0) Non-zero wait status: 11 Parse errors: Bad plan. You planned 100 tests but ran 1. t/41xinclude.t (Wstat: 11 Tests: 1 Failed: 0) Non-zero wait status: 11 Parse errors: Bad plan. You planned 7 tests but ran 1. t/49callbacks_returning_undef.t (Wstat: 11 Tests: 0 Failed: 0) Non-zero wait status: 11 Parse errors: Bad plan. You planned 1 tests but ran 0. t/60error_prev_chain.t (Wstat: 11 Tests: 0 Failed: 0) Non-zero wait status: 11 Parse errors: No plan found in TAP output Files=67, Tests=1779, 4 wallclock secs ( 0.31 usr 0.07 sys + 3.75 c +usr 0.33 csys = 4.46 CPU) Result: FAIL Failed 18/67 test programs. 0/1779 subtests failed. make: *** [test_dynamic] Error 255 error: Bad exit status from /var/tmp/rpm-tmp.Llj5oQ (%build)
I didn't see any errors during the configure portion. I did see this warning:
Warning: prerequisite ExtUtils::MakeMaker 6.56 not found. We have 6.5502but I built the module on another box with the same version of ExtUtils::MakeMaker and that box (Fedora 16/i386) passed all the tests.
My build machine:
CentOS 6.5 / 2.6.32-431.1.2.0.1.el6.x86_64
I'm guessing/hoping that I'm just missing some sort of Test module, but it is not clear to me what that is. Thx in advance for any insight.
EDITSee this update to this thread.
EDIT 2I have just bumped up against this problem again and realize it was never resolved by anyone here. Any new eyes or new ideas?
The following is from my last post to this thread (now buried, but relevant):
I am getting a Segmentation fault at the end of the test. So I ran it through the perl debugger (as tye had initially suggested) and I get this:thanks.Line 923 of file XML-LibXML-2.0110/blib/lib/XML/LibXML.pm contains:Signal SEGV at XML-LibXML-2.0110/blib/lib/XML/LibXML.pm line 923 XML:: +LibXML::parse_file('XML::LibXML=HASH(0x1a60c38)', 'example/dromeds.xm +l') called at t/02parse.t line 221 Aborted [download]eval { $result = $self->_parse_file(@_); };
In reply to Errors building XML::LibXML by atreyu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |