RE: Can't build XML::Xerces

"Bernard Ogden" <[email protected]>
Newsgroups gmane.text.xml.xerces-p.devel
Message-ID <[email protected]>
Hi again,

> $ perl -V:ccflags
> ccflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
> -DDEBIAN -fno-strict-aliasing -I/usr/local/include
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64';
> 
> You should see  -D_GNU_SOURCE in the list or you are in trouble. Look
> on google for solutions. 

It turned out that our perl builds have virtually identical predefines
to yours (except for -DDEBIAN, obviously) but that Makefile.PL wasn't
generating this predefine for XML::Xerces for some reason, although this
may have been related to the slightly odd setup on my computer (I don't
know anything really about how MakeMaker works, but I have a perl of my
own with different predefines and perhaps it was matching its
configuration to that rather than to our 'official' perl build). Anyway,
a quick hack later and it was building with the same predefines as our
perl and built but failed all the tests. So I hacked the build of the
Xerces library itself in a similar way and it now passes 99.99% of the
tests, which is probably good enough for me. I was wondering if you
could tell me what the following error might indicate though (tests that
passed with no caveats stripped from output):

PERL_DL_NONLAZY=1
/arm/eda/tools/dsystool/perl-5_8_3/Linux-redhat-7_2-i686/bin/perl
"-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib',
'blib/arch')" t/*.t
t/actualCast..............ok 9/11# Looks like you planned 11 tests but
only ran 9.
t/actualCast..............dubious
        Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 10-11
        Failed 2/11 tests, 81.82% okay (less 2 skipped tests: 7 okay,
63.64%)
t/DOMBuilder..............ok
        3/12 skipped: various reasons
t/DOMEntity...............ok
        1/4 skipped: entities still not working
t/PerlErrorHandler........ok
        1/6 skipped: temporarily not returning old handler
t/XMLScanner..............ok
        11/12 skipped: XMLScanner is no longer public

Failed Test    Stat Wstat Total Fail  Failed  List of Failed
------------------------------------------------------------------------
-------
t/actualCast.t    2   512    11    4  36.36%  10-11
18 subtests skipped.
Failed 1/39 test scripts, 97.44% okay. 2/35408 subtests failed, 99.99%
okay.
make: *** [test_dynamic] Error 29


> That's about all I can suggest. (other than switching to debian ;-)

Heh - sadly not one of our supported platforms ;)


Thanks for your help!

-- 
Bernie Ogden

Product Engineering Group
ARM Ltd

Tel: 01223 406 022

This e-mail message is intended for the addressee(s) only and may
contain information that is the property of, and/or subject to a
confidentiality agreement between the intended recipient(s), their
organisation and/ or the ARM Group of Companies. If you are not an
intended recipient of this e-mail message, you should not read, copy,
forward or otherwise distribute or further disclose the information in
it; misuse of the contents of this e-mail message may violate various
laws in your state, country or jurisdiction. If you have received this
e-mail message in error, please contact the originator of this e-mail
message via e-mail and delete all copies of this message from your
computer or network, thank you.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.