Re: XML-Xerces on MacOSX 10.3

[email protected] (Jason E. Stewart)
Newsgroups gmane.text.xml.xerces-p.devel
Message-ID <[email protected]>
Adam Witney <[email protected]> writes:

> Hi,

Hey Adam!

> I have just upgraded my OSX machine to 10.3 so I thought I'd report
> my results (don't think I have seen other peoples attempts on 10.3?)

Nope - haven't seen any reports yet.

> xerces-c-2_3_0 installed with gcc 3.3 and LDFLAGS = -lstdc++
>
> XML-Xerces-2.3.0-4 compiled fine, but failed some tests (looks like the
> relative path issue is still a problem), see below.
>
> Note, this is the 10.3 stock perl, v5.8.1-RC3
>
> Do any of these failures look life threatening??

> t/actualCast..............ok 9/11# Looks like you planned 11 tests but only
> ran 9.

Known bug - I listed 11, but deleted two tests.

> t/DOMCount................dubious
>         Test returned status 1 (wstat 256, 0x100)

This is probably the same failure as DOMPrint.

> t/DOMDocument.............ok 5/35125Use of uninitialized value in hash
> element at /usr/local/install/XML-Xerces-2.3.0-4/blib/lib/XML/Xerces.pm line
> 5191.
> Use of uninitialized value in hash element at
> /usr/local/install/XML-Xerces-2.3.0-4/blib/lib/XML/Xerces.pm line 5191.
> Can't call method "getElementsByTagName" on an undefined value at
> t/DOMDocument.t line 115.
> # Looks like you planned 35125 tests but only ran 5.
> # Looks like your test died just after 5.

Hmmm.. Looks odd.

> t/DOMPrint................ok 1/2#     Failed test (t/DOMPrint.t at line 62)
> # Found []
> # Looks like you failed 1 tests of 2.

Not sure why, but it's having trouble with some InputSource

> t/EntityResolver..........ok 2/9FATAL ERROR:
> FILE:    /usr/local/install/XML-Xerces-2.3.0-4/samples/public.xml
> LINE:    3
> COLUMN:  85
> MESSAGE: An exception occurred! Type:RuntimeException, Message:Could not
> open DTD file '/usr/bin/samples/personal.dtd'

that path is totally bogus - you're running /usr/bin/perl, so somehow
Xerces-C is looking in /usr/bin/samples for personal.dtd - this *must*
be a Xerces-C problem.

> t/Schema..................ok 1/3WARNING:
> FILE:    
> LINE:    0
> COLUMN:  0
> MESSAGE: An exception occurred! Type:RuntimeException, Message:Warning: The
> primary document entity could not be opened.
> Id=/usr/bin/samples/personal.xsd

same problem

> t/StdInInputSource........ok 2/3FATAL ERROR:
> FILE:    
> LINE:    0
> COLUMN:  0
> MESSAGE: An exception occurred! Type:XMLPlatformException, Message:Could not
> open file: stdin

huh, looks like OSX doesn't define 'stdin' as a valid file handle??

None of these are new problems for OSX. You're xerces should still
work fine. 

Adam when you run the Xerces-C samples like DOMCount do they work
properly?

Cheers,
jas.
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.