You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Tore Ferner <to...@pvv.org> on 2003/10/06 15:28:35 UTC

compiling xalan-c with -rpath?

Hello,

I am a newbie. The mailing list page says "detailed technical questions"
should go to this list rather than to the users list, so here I go:

I try to build xalan with rpath. I want to link it against libxerces-c
located in a directory not mentioned in /etc/ld.so.conf:

   $ls -la /opt/python/python2.1.3/lib/*xer*
     /opt/python/python2.1.3/lib/libxerces-c.so -> libxerces-c.so.23.0
     /opt/python/python2.1.3/lib/libxerces-c.so.23 -> libxerces-c.so.23.0
     /opt/python/python2.1.3/lib/libxerces-c.so.23.0

After building xalan, I get

   $ ldd lib/libxalan-c.so:

         libpthread.so.0 => /lib/libpthread.so.0 (0x4000f000)
NB! ==> libxerces-c.so.23 => not found
         libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x4005f000)
         libm.so.6 => /lib/libm.so.6 (0x40117000)
         libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40139000)
         libc.so.6 => /lib/libc.so.6 (0x40141000)
         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

I built xalan like this:

The obligatory environment variables:

XALANCROOT=/usr/local/src/xml-xalan/c
XERCESCROOT=/usr/local/src/xerces-c-src_2_3_0

Configuring:

   $ ./runConfigure -plinux -cgcc -xg++ \
    -z-I/opt/python/python2.1.3/include \
    -z-I/opt/python/python2.1.3/include/xercesc \
    -z-L/opt/python/python2.1.3/lib \
    -l-Wl,-rpath -l-Wl,/opt/python/python2.1.3/lib

Since a single 'make' after this didn't succeed, I also tried with flags:

   $ LD_RUN_PATH=" /opt/python/python2.1.3/lib " \
    LDFLAGS=" -Wl,-rpath -Wl,/opt/python/python2.1.3/lib " \
    make

That didn't help; I get the ldd listing above.

I use Debian "stable" with gcc/g++ 3.3 and GNU ld 2.11.90.0.8
from "testing".

Any help/links will be greatly appreciated!

Regards, Tore