Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hello again,
I'm trying to setup a new AIX 5.3.0.0 machine with Perl 5.8.8 and gcc 4.0.1, and I'm hitting some issues on installing XML-related modules.
After experiencing some fun trying to install XML::Parser (still unresolved) I next set out to install XML::Simple. A ran into a little bug there, but some googling fixed that.
So, now onto XML::SAX::Writer. A make test gave me the following yumminess:
$ make test PERL_DL_NONLAZY=1 /dbpar/perl/bin/perl "-MExtUtils::Command::MM" "-e" +"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/05basic........ok 1/27 Unsupported conversion: A system call received a parameter that is not + valid. at /db2/dlink/.cpan/build/XML-SAX-Writer-0.44/blib/lib/XML/SA +X/Writer.pm line 71. # Looks like you planned 27 tests but only ran 17. # Looks like your test died just after 17. t/05basic........dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 18-27 Failed 10/27 tests, 62.96% okay t/10consumers....ok Failed Test Stat Wstat Total Fail List of Failed ---------------------------------------------------------------------- +--------- t/05basic.t 255 65280 27 20 18-27 Failed 1/2 test scripts. 10/42 subtests failed. Files=2, Tests=42, 0 wallclock secs ( 0.16 cusr + 0.01 csys = 0.17 +CPU) Failed 1/2 test programs. 10/42 subtests failed. make: *** [test_dynamic] Error 255
A bit of debugging identified the culprit as this line of code (line 49):
$w1->{EncodeFrom} = 'iso-8859-1';If I remove simply comment out this line this one test fails (obviously), but the rest of the tests pass:
t/05basic........NOK 18# Failed test 'iconv converter for real encod +ing isa Text::Iconv' # in t/05basic.t at line 51. # iconv converter for real encoding isn't a 'Text::Iconv' it's a ' +XML::SAX::Writer::NullConverter' # Looks like you failed 1 test of 27. t/05basic........dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 18 Failed 1/27 tests, 96.30% okay t/10consumers....ok Failed Test Stat Wstat Total Fail List of Failed ---------------------------------------------------------------------- +--------- t/05basic.t 1 256 27 1 18
I'm trying to be a good netizen and help identify what's going on, but I'm a little stuck and looking for some help. If I switch the encoding to something else, like 'iso-8859-2' I get the same error. I reinstalled Text::Iconv (version 1.4), and there were no errors, although during make I see this:
gcc -c -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -DUSE_NATIVE_D +LOPEN -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr +/local/include -D_LARGE_FILES -O -DVERSION=\"1.4\" -DXS_VERSION=\"1 +.4\" "-I/dbpar/perl/lib/5.8.8/aix/CORE" Iconv.c Iconv.xs: In function 'do_conv': Iconv.xs:116: warning: passing argument 2 of 'iconv' from incompatible + pointer type Running Mkbootstrap for Text::Iconv () chmod 644 Iconv.bs rm -f blib/arch/auto/Text/Iconv/Iconv.so gcc -Wl,-bhalt:4 -Wl,-bexpall -Wl,-G -Wl,-bnoentry -lc -L/usr/local/l +ib Iconv.o -o blib/arch/auto/Text/Iconv/Iconv.so \ -liconv \ chmod 755 blib/arch/auto/Text/Iconv/Iconv.so cp Iconv.bs blib/arch/auto/Text/Iconv/Iconv.bs
But I'm kinda used to ignoring warnings like that if all the tests pass. Any ideas where I could look from here to debug further?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Test failures with XML::SAX::Writer 0.44
by Anonymous Monk on Jun 27, 2006 at 04:59 UTC | |
by Anonymous Monk on Jun 27, 2006 at 05:06 UTC |