You are viewing a plain text version of this content. The canonical link for it is here.
Posted to p-dev@xerces.apache.org by Adam Witney <aw...@sghms.ac.uk> on 2004/05/18 15:18:52 UTC

XML-Xerces on MacOSX 10.3

Hi,

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?)

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??

Thanks

adam




[mrc1-003:local/install/XML-Xerces-2.3.0-4] adam% make test
PERL_DL_NONLAZY=1 /usr/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/AttributeList...........ok
t/Attributes..............ok
t/DOMAttr.................ok
t/DOMBuilder..............ok
        3/12 skipped: various reasons
t/DOMCount................ok 1/2Use of uninitialized value in numeric eq
(==) at t/DOMCount.t line 55.
#     Failed test (t/DOMCount.t at line 55)
# Looks like you failed 1 tests of 2.
t/DOMCount................dubious
        Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 2
        Failed 1/2 tests, 50.00% okay
t/DOMCreate...............ok
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.
t/DOMDocument.............dubious
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 6-35125
        Failed 35120/35125 tests, 0.01% okay
t/DOMElement..............ok
t/DOMEntity...............ok
        1/4 skipped: entities still not working
t/DOMException............ok
t/DOMNamedNodeMap.........ok
t/DOMNode.................ok
t/DOMNodeIterator.........ok
t/DOMNodeList.............ok
t/DOMParser...............ok
t/DOMPrint................ok 1/2#     Failed test (t/DOMPrint.t at line 62)
# Found []
# Looks like you failed 1 tests of 2.
t/DOMPrint................dubious
        Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 2
        Failed 1/2 tests, 50.00% okay
t/DOMTreeWalker...........ok
t/DOMWriter...............ok
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'
 at t/EntityResolver.t line 42
t/EntityResolver..........NOK 5#     Failed test (t/EntityResolver.t at line
63)
FATAL ERROR:
FILE:    /usr/local/install/XML-Xerces-2.3.0-4/samples/system.xml
LINE:    3
COLUMN:  38
MESSAGE: An exception occurred! Type:RuntimeException, Message:Could not
open DTD file '/usr/bin/samples/personal.dtd'
 at t/EntityResolver.t line 71
t/EntityResolver..........NOK 8#     Failed test (t/EntityResolver.t at line
84)
WARNING:
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
 at t/EntityResolver.t line 138
FATAL ERROR:
FILE:    /usr/local/install/XML-Xerces-2.3.0-4/samples/system.xml
LINE:    5
COLUMN:  1
MESSAGE: Expected comment or processing instruction
 at t/EntityResolver.t line 138
# Looks like you planned 9 tests but only ran 8.
# Looks like your test died just after 8.
t/EntityResolver..........dubious
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 5, 8-9
        Failed 3/9 tests, 66.67% okay
t/Grammar.................ok
t/InputSource.............ok
t/LocalFileInputSource....ok
t/MemBufInputSource.......ok
t/PerlErrorHandler........ok
        1/6 skipped: temporarily not returning old handler
t/SAX2Count...............ok
t/SAX2XMLReader...........ok
t/SAXCount................ok
t/SAXException............ok
t/SAXParser...............ok
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
 at t/Schema.t line 34
t/Schema..................ok 2/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
 at t/Schema.t line 50
t/Schema..................ok
t/StdInInputSource........ok 2/3FATAL ERROR:
FILE:    
LINE:    0
COLUMN:  0
MESSAGE: An exception occurred! Type:XMLPlatformException, Message:Could not
open file: stdin
 at t/StdInInputSource.t line 33
# Looks like you planned 3 tests but only ran 2.
# Looks like your test died just after 2.
t/StdInInputSource........dubious
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED test 3
        Failed 1/3 tests, 66.67% okay
t/URLInputSource..........ok
t/XercesDOMParser.........ok
t/XMLException............ok
t/XMLScanner..............ok
        11/12 skipped: XMLScanner is no longer public
t/XMLUni..................ok
t/XMLUri..................ok
t/XMLURL..................ok
Failed Test          Stat Wstat Total Fail  Failed  List of Failed
----------------------------------------------------------------------------
---
t/DOMCount.t            1   256     2    1  50.00%  2
t/DOMDocument.t       255 65280 35125 7024 199.97%  6-35125
t/DOMPrint.t            1   256     2    1  50.00%  2
t/EntityResolver.t    255 65280     9    4  44.44%  5 8-9
t/StdInInputSource.t  255 65280     3    2  66.67%  3
t/actualCast.t          2   512    11    4  36.36%  10-11
18 subtests skipped.
Failed 6/39 test scripts, 84.62% okay. 35128/35408 subtests failed, 0.79%
okay.
make: *** [test_dynamic] Error 2


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-p-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-p-dev-help@xml.apache.org


Re: XML-Xerces on MacOSX 10.3

Posted by Adam Witney <aw...@sghms.ac.uk>.
> Adam, can you log a bug for this at:
> 
> http://nagoya.apache.org/bugzilla/enter_bug.cgi
> 
> That way I won't lose it.

Done

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=29119


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-p-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-p-dev-help@xml.apache.org


Re: XML-Xerces on MacOSX 10.3

Posted by "Jason E. Stewart" <ja...@openinformatics.com>.
Adam Witney <aw...@sghms.ac.uk> writes:

>> what if you do something like this:
>> 
>> $ cd /tmp
>> $ $XERCESCROOT/bin/DOMCount $XERCESCROOT/samples/data/personal.xml
>> 
>> What happens?
>
> Looks good:
>
> [mrc1-003:/tmp] adam% $XERCESCROOT/bin/DOMCount
> $XERCESCROOT/samples/data/personal.xml
> /usr/local/install/xerces-c-src_2_3_0/samples/data/personal.xml: 696 ms (37
> elems).

Gah! How can Xerces-C be finding the correct file but XML-Xerces
isn't??

This is really baffling. All XML-Xerces does is call Xerces-C!! If we
are getting a bunch of current working directory errors, I was sure
that Xerces-C on OS X was hosed (even though I know it's been tested
there), but nope! Once again it's a Perl issue.

If I can get a login to the OS X machinese on SourceForge, I'll test
this out.

Adam, can you log a bug for this at:

  http://nagoya.apache.org/bugzilla/enter_bug.cgi

That way I won't lose it.

Cheers,
jas.

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-p-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-p-dev-help@xml.apache.org


Re: XML-Xerces on MacOSX 10.3

Posted by Adam Witney <aw...@sghms.ac.uk>.
> what if you do something like this:
> 
> $ cd /tmp
> $ $XERCESCROOT/bin/DOMCount $XERCESCROOT/samples/data/personal.xml
> 
> What happens?

Looks good:

[mrc1-003:/tmp] adam% $XERCESCROOT/bin/DOMCount
$XERCESCROOT/samples/data/personal.xml
/usr/local/install/xerces-c-src_2_3_0/samples/data/personal.xml: 696 ms (37
elems).

(sorry about the wrapping!)

I will go ahead and install it then

Thanks again for your help Jason

Cheers

adam


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-p-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-p-dev-help@xml.apache.org


Re: XML-Xerces on MacOSX 10.3

Posted by "Jason E. Stewart" <ja...@openinformatics.com>.
Adam Witney <aw...@sghms.ac.uk> writes:

>> Adam when you run the Xerces-C samples like DOMCount do they work
>> properly?
>
>>>From the $XERCESCROOT/samples directory, this works ok
>
> ../bin/DOMCount ../samples/data/personal.xml
>
> ../samples/data/personal.xml: 906 ms (37 elems).

what if you do something like this:

  $ cd /tmp
  $ $XERCESCROOT/bin/DOMCount $XERCESCROOT/samples/data/personal.xml

What happens?

> It seems that you have to define the relative path to personal.xml FROM the
> bin directory, rather than the current directory. I don't though if this is
> expected behaviour for xerces-c?

Definately not expected behavior - it should be defined local to the
XML file.

Cheers,
jas.

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-p-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-p-dev-help@xml.apache.org


Re: XML-Xerces on MacOSX 10.3

Posted by Adam Witney <aw...@sghms.ac.uk>.
>> 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.

Yup, it was /usr/bin/perl, I have actually just upgraded to 5.8.4 (in
/usr/local/bin/perl) and this error now says its looking for

....  DTD file '/usr/local/bin/samples/personal.dtd'


 
>> 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??

I remember this being a problem on 10.2.8 as well

> 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?

>From the $XERCESCROOT/samples directory, this works ok

../bin/DOMCount ../samples/data/personal.xml

../samples/data/personal.xml: 906 ms (37 elems).

It seems that you have to define the relative path to personal.xml FROM the
bin directory, rather than the current directory. I don't though if this is
expected behaviour for xerces-c?

Thanks for your help jason

Adam



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-p-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-p-dev-help@xml.apache.org


Re: XML-Xerces on MacOSX 10.3

Posted by "Jason E. Stewart" <ja...@openinformatics.com>.
Adam Witney <aw...@sghms.ac.uk> 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.

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-p-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-p-dev-help@xml.apache.org