You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Jean-Sebastien Delfino <js...@apache.org> on 2006/09/12 02:00:23 UTC
[C++] Adding -lxml2 to link libtuscany_sdo.so on Linux
Hi,
On Linux, shared library libtuscany_sdo.so references symbols from
libxml2.so but is not linked with it. Programs that use
libtuscany_sdo.so then need to be linked with libxml2.so to resolve
these undefined symbols.
I just ran into this as the Ruby extension shared library could not be
loaded because of these undefined references to libxml2. I think this is
a bug as a user of SDO should not have to know that SDO is implemented
on top of libxml2 or whatever other XML handling library. I am adding a
-lxml2 directive for now to the SDO Makefile.am to fix this. I think
this is a good change but could you please take a look and confirm?
Thanks,
--
Jean-Sebastien
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
Re: [C++] Adding -lxml2 to link libtuscany_sdo.so on Linux
Posted by Geoffrey Winn <ge...@googlemail.com>.
I agree with that change. It is certainly linked as part of the build on
MSVC++ so I don't see why it wouldn't be on Linux.
Geoff.
On 12/09/06, Jean-Sebastien Delfino <js...@apache.org> wrote:
>
> Hi,
>
> On Linux, shared library libtuscany_sdo.so references symbols from
> libxml2.so but is not linked with it. Programs that use
> libtuscany_sdo.so then need to be linked with libxml2.so to resolve
> these undefined symbols.
>
> I just ran into this as the Ruby extension shared library could not be
> loaded because of these undefined references to libxml2. I think this is
> a bug as a user of SDO should not have to know that SDO is implemented
> on top of libxml2 or whatever other XML handling library. I am adding a
> -lxml2 directive for now to the SDO Makefile.am to fix this. I think
> this is a good change but could you please take a look and confirm?
>
> Thanks,
>
> --
> Jean-Sebastien
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>
>