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 "Nye, Brent A (Brent)" <br...@lucent.com> on 2001/07/01 21:26:30 UTC

RE: Xerces-perl on HP-UX 11

Jason, 

To answer your question:

Yes, I have  built the samples files on Xerces-C, and Xalan-C.  When, I
first installed Xerces-C, I do not recall any problems with the instructions
and the binaries worked fine. 

For example, using the aCC compiler, I can build DOMCount under the
Xerces-c1_5 samples directory with a command like:

aCC DOMCount.cpp -I $XERCESCROOT/include  -L $XERCESCROOT/lib -l xerces-c1_5


for Xalan-C, I am able to build one of the samples with similar commands:

aCC SimpleTransform.cpp -I $XERCESCROOT/include -I $XALANCROOT/c/src -L
$XERCESC
ROOT/lib -l xerces-c1_5 -L $XALANCROOT/c/lib  -l xalan-c1_1



Jason wrote:

That's because Xerces.so is just C++ wrapper code that enables perl to
talk to libxerces-C1_4.so... Most of the symbols are undefined,
because they're defined in libxerces from Xerces-C. My guess is you're
not loading the libxerces. Can you successfully run the sample files
that came with Xerces-C?




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


Re: Xerces-perl on HP-UX 11

Posted by "Jason E. Stewart" <ja...@openinformatics.com>.
"Nye, Brent A (Brent)" <br...@lucent.com> writes:

> Yes, I have built the samples files on Xerces-C, and Xalan-C.  When,
> I first installed Xerces-C, I do not recall any problems with the
> instructions and the binaries worked fine.

But can you execute any of them? You can't run 'make test' because
it's not loading any of the symbols from libxerces-c1_5.so, if you try
to execute, say DOMCount, then it will try to load the symbols. If it
succeeds, it's a dynamic loading problem with perl.

I think what is going on is that CC under Solaris needs some special
flags for dynamic loading that it's not getting. Or it could be as
simple as your dynamic library path environment variable
(LD_LIBRARY_PATH under linux, no idea under solaris) is not getting
set.

jas.

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