Skip Menu |

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

Report information
The Basics
Id: 90273
Status: resolved
Priority: 0/
Queue: Alien-LibXML

People
Owner: perl [...] toby.ink
Requestors: PLICEASE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.001
Fixed in: 0.003



Subject: test t/01-compiler.t unable to find libxml2.so
attached is the output from ./Build test and prove -bv on t/01-compiler.t. It seems to be looking for libxml.so in ./_alien/libxml2-2.9.0, but it is actaully in ./_alien/libxml2-2.9.0/.libs twin% find -iname libxml2.so\* ./_alien/libxml2-2.9.0/.libs/libxml2.so.2 ./_alien/libxml2-2.9.0/.libs/libxml2.so ./_alien/libxml2-2.9.0/.libs/libxml2.so.2.9.0 after running ./Build install the tests also pass, so I am pretty sure it is just a matter of looking in the wrong place for the test only. Not sure if this is something weird about my environment, or if it is something with Alien::Base, or a change in libxml2...
Subject: failure.txt
twin% ./Build test t/00-use.t ....... Could not resolve -lxml2 at t/00-use.t line 5. Could not resolve -lxml2 at t/00-use.t line 5. t/00-use.t ....... ok t/01-compiler.t .. Could not resolve -lxml2 at t/01-compiler.t line 23. Could not resolve -lxml2 at t/01-compiler.t line 23. # COMPILER: /usr/lib/ccache/cc # CFLAGS: -I/home/ollisg/.perlbrew/libs/perl-5.18.1@dev/lib/perl5/auto/share/dist/Alien-LibXML/include/libxml2 -I/home/ollisg/dev/Alien-LibXML/_alien/libxml2-2.9.0/include -I/home/ollisg/dev/Alien-LibXML/_alien/libxml2-2.9.0/include/libxml2 # LIBS: -L/home/ollisg/dev/Alien-LibXML/_alien/libxml2-2.9.0 -lxml2 -lz -lm -L/home/ollisg/.perlbrew/libs/perl-5.18.1@dev/lib/perl5/auto/share/dist/Alien-LibXML/lib -lxml2 # OUTPUT: t/tree1.exe # INPUT: t/tree1.c /usr/bin/ld: cannot find -lxml2 /usr/bin/ld: cannot find -lxml2 collect2: error: ld returned 1 exit status t/01-compiler.t .. 1/? # Failed test at t/01-compiler.t line 43. Can't exec "t/tree1.exe": No such file or directory at t/01-compiler.t line 46. # Failed test at t/01-compiler.t line 46. # got: undef # expected: 'node type: Element, name: root # node type: Element, name: inner # ' # Looks like you failed 2 tests of 2. t/01-compiler.t .. Dubious, test returned 2 (wstat 512, 0x200) Failed 2/2 subtests Test Summary Report ------------------- t/01-compiler.t (Wstat: 512 Tests: 2 Failed: 2) Failed tests: 1-2 Non-zero exit status: 2 Files=2, Tests=3, 1 wallclock secs ( 0.02 usr 0.01 sys + 0.18 cusr 0.03 csys = 0.24 CPU) Result: FAIL Failed 1/2 test programs. 2/3 subtests failed. twin% prove -bv t/01-compiler.t t/01-compiler.t .. Could not resolve -lxml2 at t/01-compiler.t line 23. Could not resolve -lxml2 at t/01-compiler.t line 23. # COMPILER: /usr/lib/ccache/cc # CFLAGS: -I/home/ollisg/.perlbrew/libs/perl-5.18.1@dev/lib/perl5/auto/share/dist/Alien-LibXML/include/libxml2 -I/home/ollisg/dev/Alien-LibXML/_alien/libxml2-2.9.0/include -I/home/ollisg/dev/Alien-LibXML/_alien/libxml2-2.9.0/include/libxml2 # LIBS: -L/home/ollisg/.perlbrew/libs/perl-5.18.1@dev/lib/perl5/auto/share/dist/Alien-LibXML/lib -lxml2 -L/home/ollisg/dev/Alien-LibXML/_alien/libxml2-2.9.0 -lxml2 -lz -lm # OUTPUT: t/tree1.exe # INPUT: t/tree1.c /usr/bin/ld: cannot find -lxml2 /usr/bin/ld: cannot find -lxml2 collect2: error: ld returned 1 exit status not ok 1 # Failed test at t/01-compiler.t line 43. Can't exec "t/tree1.exe": No such file or directory at t/01-compiler.t line 46. not ok 2 # Failed test at t/01-compiler.t line 46. # got: undef # expected: 'node type: Element, name: root # node type: Element, name: inner # ' 1..2 # Looks like you failed 2 tests of 2. Dubious, test returned 2 (wstat 512, 0x200) Failed 2/2 subtests Test Summary Report ------------------- t/01-compiler.t (Wstat: 512 Tests: 2 Failed: 2) Failed tests: 1-2 Non-zero exit status: 2 Files=1, Tests=2, 0 wallclock secs ( 0.02 usr 0.00 sys + 0.09 cusr 0.03 csys = 0.14 CPU) Result: FAIL
Thanks for the bug report, and the fix. Alien-LibXML-0.002 is on CPAN now. Initial results from CPAN testers look good. No results from Windows testers yet, but I've requested expedited testing on IRC!
OK, I think this can be counted as resolved now.