Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* Coredump - Xerces duplicated symbols
@ 2005-02-08 17:48 ender0123
  2005-02-11  8:44 ` Fabien R
  0 siblings, 1 reply; 3+ messages in thread
From: ender0123 @ 2005-02-08 17:48 UTC (permalink / raw)


Hello,

We have a problem with Xerces duplicated symbols in libraries, which
causes a coredump.

We have developed a shared library (.so) using Xerces 2.3.0. Our
library is called by other external application, which links with many
others libraries. One of this libraries includes (embedded) Xerces
1.1.0.

    xerces-c.so.23 - Our.so ------ ext.so (including Xerces 1.1.0)
                               |
                              App


Debugging application found out that Initilizing in App, Xerces 2.3.0,
internally calls to Initialize method from Xerces 1.1.0 (exported by
ext.so), it causes a coredump.

Is there any way to hide symbols of Xerces ext.so or, isolate
xerces-c.so.23 calls?

We have created static Xerces 2.3.0 library, but still calls Xerces
1.1.0. We are checking ld options, looking for option which allows hide
symbols, but we haven't results.

Any help would be appreciate,

Best regards,
J



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Coredump - Xerces duplicated symbols
  2005-02-08 17:48 Coredump - Xerces duplicated symbols ender0123
@ 2005-02-11  8:44 ` Fabien R
  2005-02-11 12:41   ` ender0123
  0 siblings, 1 reply; 3+ messages in thread
From: Fabien R @ 2005-02-11  8:44 UTC (permalink / raw)


ender0123@gmail.com wrote in message news:<1107884881.717437.137170@g14g2000cwa.googlegroups.com>...
> Hello,
> 
> We have a problem with Xerces duplicated symbols in libraries, which
> causes a coredump.
> 
> We have developed a shared library (.so) using Xerces 2.3.0. Our
> library is called by other external application, which links with many
> others libraries. One of this libraries includes (embedded) Xerces
> 1.1.0.
> 
>     xerces-c.so.23 - Our.so ------ ext.so (including Xerces 1.1.0)
>                                |
>                               App
> 
> 
> Debugging application found out that Initilizing in App, Xerces 2.3.0,
> internally calls to Initialize method from Xerces 1.1.0 (exported by
> ext.so), it causes a coredump.
> 
> Is there any way to hide symbols of Xerces ext.so or, isolate
> xerces-c.so.23 calls?
> 
> We have created static Xerces 2.3.0 library, but still calls Xerces
> 1.1.0. We are checking ld options, looking for option which allows hide
> symbols, but we haven't results.
> 
> Any help would be appreciate,
> 
> Best regards,
> J
I built xerces 2.4 from the source code. I use the namespace xerces2_4
when I call a xerces function. I don't known if I can compile without
this directive. Have a look at the apache.org website.
-
Fabien


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Coredump - Xerces duplicated symbols
  2005-02-11  8:44 ` Fabien R
@ 2005-02-11 12:41   ` ender0123
  0 siblings, 0 replies; 3+ messages in thread
From: ender0123 @ 2005-02-11 12:41 UTC (permalink / raw)


> I built xerces 2.4 from the source code. I use the namespace
xerces2_4
> when I call a xerces function. I don't known if I can compile without
> this directive. Have a look at the apache.org website.
> -
> Fabien

Hi Fabien,

thanks for your answer!, I have checked it, and xerces 2.3 is not
compiled by default with namespaces, I have included
-DXERCES_HAS_CPP_NAMESPACE in CPPFLAGS, recompiled Xerces, and included
XERCES_CPP_NAMESPACE directive in source code, and it seems to work.
Now symbols are referenced by "xercesc_2_3::" and there's no conflict
with the previous version ...

many thanks

J



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-02-11 12:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-08 17:48 Coredump - Xerces duplicated symbols ender0123
2005-02-11  8:44 ` Fabien R
2005-02-11 12:41   ` ender0123

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox