Skip Menu |
 

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

Report information
The Basics
Id: 21897
Status: resolved
Priority: 0/
Queue: XML-LibXML

People
Owner: Nobody in particular
Requestors: LGODDARD [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 1.61
Fixed in: (no value)



Subject: Fails tests on CentOS (redhat)
Download (untitled) / with headers
text/plain 13.8k

Message body is not shown because it is too large.

Download (untitled) / with headers
text/plain 5.4k
The error messages look exactly as if you compiled against 2.6.26, but dynamically linked (on runtime) with an older (probably vendor's) version of libxml2 (2.6.16 ??), so this is most probably problem with your setup. Try the following: 1) locate where libxml2-2.6.26 was installed. You should find a file like /usr/local/lib/libxml2.so.2.6.26 2) in the shell prompt in the XML-LibXML directory, do the following: export LD_PRELOAD=/usr/local/lib/libxml2.so.2.6.26 make test I suppose all tests will pass then, which would prove a misconfiguration on your side. To solve your problem, make sure that a symbolic link libxml2.so to libxml2.so.2.6.26 is in the ldconfig path's before any other version of the library. -- Petr Show quoted text
> libxml2-sources-2.6.26.tar.gz > libxslt-1.1.9.tar.gz > > Making abd testing resulted in: > > bash-3.00# perl Makefile.PL > enable native perl UTF8 > running xml2-config...ok > looking for -lxml2... yes > Checking if your kit is complete... > Looks good > Writing Makefile for XML::LibXML > bash-3.00# make
... Show quoted text
> bash-3.00# make test > PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "- > e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t > t/01basic.....................ok > t/02parse.....................ok > t/03doc.......................ok > t/04node......................ok > t/05text......................ok > t/06elements..................ok > t/07dtd.......................ok > t/08findnodes.................ok > t/09xpath.....................ok > t/10ns........................NOK 25# Failed test 25 in t/10ns.t at > line 146 > # t/10ns.t line 146 is: ok ( $root->getAttributeNodeNS > ('http://example.com','attr') ); > t/10ns........................NOK 26# Test 26 got: <UNDEF> (t/10ns.t > at line 147) > # Expected: "value" > # t/10ns.t line 147 is: ok ( $root->getAttributeNS > ('http://example.com','attr'), 'value' ); > t/10ns........................NOK 27# Test 27 got: <UNDEF> (t/10ns.t > at line 148) > # Expected: "http://example.com" > # t/10ns.t line 148 is: ok ( $root->getAttributeNode('xxx:attr')-
> >getNamespaceURI(), 'http://example.com');
> t/10ns........................NOK 74# Failed test 74 in t/10ns.t at > line 234 > # t/10ns.t line 234 is: ok ( $root->getAttributeNodeNS > ('http://example.com','attr') ); > t/10ns........................NOK 75# Test 75 got: <UNDEF> (t/10ns.t > at line 235) > # Expected: "value" > # t/10ns.t line 235 is: ok ( $root->getAttributeNS > ('http://example.com','attr'), 'value' ); > t/10ns........................NOK 76# Test 76 got: <UNDEF> (t/10ns.t > at line 236) > # Expected: "http://example.com" > # t/10ns.t line 236 is: ok (
$root->getAttributeNode('xxx:attr')- Show quoted text
> >getNamespaceURI(), 'http://example.com');
> t/10ns........................NOK 83# Test 83 > got: "XML::LibXML::Attr=SCALAR(0x823cddc)" (t/10ns.t at line 250) > # Expected: <UNDEF> > # t/10ns.t line 250 is: ok (
$root->getAttributeNode('xxx:attr'), Show quoted text
> undef ); > t/10ns........................NOK 85# Failed test 85 in t/10ns.t at > line 252 > # t/10ns.t line 252 is: ok ( $root->getAttributeNode('attr') ); > t/10ns........................NOK 86# Test 86 got: <UNDEF> (t/10ns.t > at line 253) > # Expected: "value" > # t/10ns.t line 253 is: ok ( $root->getAttribute > ('attr'), 'value' ); > t/10ns........................NOK 87# Failed test 87 in t/10ns.t at > line 254 > # t/10ns.t line 254 is: ok ( $root->getAttributeNodeNS > (undef,'attr') ); > t/10ns........................NOK 88# Test 88 got: <UNDEF> (t/10ns.t > at line 255) > # Expected: "value" > # t/10ns.t line 255 is: ok ( $root->getAttributeNS > (undef,'attr'), 'value' ); > Can't call method "getNamespaceURI" on an undefined value at
t/10ns.t Show quoted text
> line 256. > t/10ns........................dubious > Test returned status 2 (wstat 512, 0x200) > DIED. FAILED tests 25-27, 74-76, 83, 85-104 > Failed 27/104 tests, 74.04% okay > t/11memory....................ok > 26/26 skipped: developers only (set MEMORY_TEST=1 to run
these Show quoted text
> tests) > t/12html......................ok > t/13dtd.......................ok > t/14sax.......................ok > t/15nodelist..................ok > t/16docnodes..................ok > t/17callbacks.................ok > t/18docfree...................ok > t/19encoding..................ok > t/20extras....................ok > t/23rawfunctions..............ok > t/24c14n......................ok > t/25relaxng...................ok > t/26schema....................ok > t/27new_callbacks_simple......ok > t/28new_callbacks_multiple....ok > t/29id........................ok
6/42XML::LibXML::Node::isSameNode() -- Show quoted text
> oNode is not a blessed SV reference at t/29id.t line 60. > t/29id........................dubious > Test returned status 255 (wstat 65280, 0xff00) > DIED. FAILED tests 7-42 > Failed 36/42 tests, 14.29% okay > t/30xpathcontext..............ok > t/31xpc_functions.............ok > t/32xpc_variables.............ok > t/90threads...................ok > 14/14 skipped: optional (set THREAD_TEST=1 to run these
tests) Show quoted text
> Failed Test Stat Wstat Total Fail Failed List of Failed > ----------------------------------------------------------------------- > -------- > t/10ns.t 2 512 104 43 41.35% 25-27 74-76 83 85-104 > t/29id.t 255 65280 42 72 171.43% 7-42 > 40 subtests skipped. > Failed 2/31 test scripts, 93.55% okay. 63/1530 subtests failed,
95.88% Show quoted text
> okay. > make: *** [test_dynamic] Error 255 > bash-3.00#


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.