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?


In reply to Test failures with XML::SAX::Writer 0.44 by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.