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 "Jason E. Stewart" <ja...@openinformatics.com> on 2001/11/16 17:58:12 UTC

Re: Xerces-P with HPUX11

Hey Uwe,

You can't mix libraries compiled with different C++ compilers. There
is no standard interface, so they all produce differently named
symbols. To use the Xerces-C HP binary, you'll have to compile
Xerces-P with aCC, otherwise you'll have to recompile Xerces-C with
g++.

jas.

"LANGJAHR,UWE (HP-Germany,ex2)" <uw...@hp.com> writes:

> Hello Jason,
> I'm trying to compile XML-Xerces-1.5.2_0 under HPUX11. I have an
> GNU environment (gcc-2.95.2). After successful compilation the
> "make test" produces unresolved symbols.
> -------------
> make[1]: Entering directory
> `/backup/ulangjah/gnu/compile-11.00/XML-Xerces-1.5.2_0/DOMParse'
> make[1]: Leaving directory
> `/backup/ulangjah/gnu/compile-11.00/XML-Xerces-1.5.2_0/DOMParse'
> PERL_DL_NONLAZY=1 /opt/local/gnu/perl5.6.0/bin/perl -Iblib/arch -Iblib/lib
> -I/opt/local/gnu/perl5.6.0/lib/5.6.0/PA-RISC1.1 -I/opt/local/gn
> u/perl5.6.0/lib/5.6.0 -e 'use Test::Harness qw(&runtests $verbose);
> $verbose=0; runtests @ARGV;' t/*.t
> 
> .... output skipped ....
> 
> /usr/lib/dld.sl: Unresolved symbol: nextNode__14DOM_TreeWalker (code)  from
> blib/arch/auto/XML/Xerces/Xerces.sl
> /usr/lib/dld.sl: Unresolved symbol: setURL__6XMLURLPCUs (code)  from
> blib/arch/auto/XML/Xerces/Xerces.sl
> --------------
> 
> I have analyzed, that for e.g nextNode__14DOM_TreeWalker is included in the
> binary compilation xerces-c1_5_2-HP11ACC
> as nextNode__14DOM_TreeWalkerFv. For me it look like, that the g++ compiler
> produces other object 
> name than aCC (demangle)?!? I also has removed the "extern "C" {" section
> from Xerces.C, so that g++ 
> produces correct code with "suffixes", but without success. I was not able
> to compile Xerces-P with aCC
> (I work at HP, but I don't have used aCC before, so maybe it's a stupid
> operator error :-).
> 
> ----
> I also was able to compile xerces-c-src_1.5.2 with gcc/g++ 2.95.2 after
> several problem, but the most test
> utilities will not run. But with this library I'm was able to compile
> Xerces-P and some of the perl tests
> will run. Other perl tests will die with SIGSEGV.
> Some of my perl script (build a XML Tree from scratch) will run, other more
> complex will also coredump.
> 
> Some ideas?
> 
> Greetings 
> Uwe Langjahr

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