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 "TOM, ALBERT K (SBCSI)" <at...@sbc.com> on 2005/06/22 18:11:15 UTC
XML::Xerces-2.5.0 succesfully built
Here is one Environment and the changes made
to allow XML-Xerces to work.
(1) Sun/Solaris 5.8
(2) Perl 5.8.6
compiled using 64 bit processing.
$Config{use64bitint} eq 'define'
$Config{use64bitall} eq 'define'
(3) Sun Forte 6.2 C && C++ Compiler.
(4) Xerces-C-2.5.0
runConfigure -p solaris -c cc -x CC -b 64 -P /appl_dsl/local
This is a 64 bit compile.
Xerces-C compiled right out of the box.
No changes were required.
(5) XML-Xerces-2.5.0-0
a) Modify Xerces.cpp around line 826. Add this code
#ifdef bool
#undef bool
#endif /* bool */
This code is describe in post dated 2005-02-22
with subject 'Problem building XML::Xerces v2.5.0.'
b) change CCFLAGS in XML-Xerces-2.5.0-0/Makefile
the original setting is:
CCFLAGS = -D_REENTRANT
I added the options from the Perl compile.
You can get the options with is Perl code:
use Config;
print $Config{ccflags}, "\n";
The result is:
CCFLAGS = -D_REENTRANT -xarch=v9 -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
c) run make with these overrides:
make CC=CC LD=CC
Both the compiler and linker must point to CC.
Otherwise you get relocation error and reference symbol not found
when you run
'make test'.
I hope this helps.
Albert Tom
---------------------------------------------------------------------
To unsubscribe, e-mail: p-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: p-dev-help@xerces.apache.org
Setting schema location in code - SAXNotRecognizedException
Posted by Stephen Collyer <sc...@netspinner.co.uk>.
I'm using XML::Xerces 2.5.0 and I'm getting a
XML::Xerces::SAXNotRecognizedException when trying to use
either of these:
$XML::Xerces::XMLUni::fgXercesSchemaExternalSchemaLocation
$XML::Xerces::XMLUni::fgXercesSchemaExternalNoNameSpaceSchemaLocation
via code like:
$parser->setFeature("$XML::Xerces::XMLUni::fgXercesSchemaExternalSchemaLocation",
"http://xyz/ns schema.xsd");
$parser->setFeature("$XML::Xerces::XMLUni::fgXercesSchemaExternalNoNameSpaceSchemaLocation",
"schema.xsd");
Can anyone see what I'm doing wrong ?
--
Regards
Stephen Collyer
Netspinner Ltd
---------------------------------------------------------------------
To unsubscribe, e-mail: p-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: p-dev-help@xerces.apache.org