This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
RE: libgcj-4 puts /usr/lib before LD_LIBRARY_PATH in any case
- From: "Yuval Kfir" <yuvalk at mainsoft dot com>
- To: "Andrew Haley" <aph at redhat dot com>
- Cc: <java at gcc dot gnu dot org>
- Date: Wed, 22 Nov 2006 02:16:13 -0800
- Subject: RE: libgcj-4 puts /usr/lib before LD_LIBRARY_PATH in any case
I wrote:
> > We have a native shared library that depends on a library called
> > libuuid.so. This is not the default /usr/lib/libuuid.so but a
> > completely different library, and the directory containing it is
the
> > first directory in LD_LIBRARY_PATH.
Andrew Haley asked:
>
> OK. How is the native shared library that depends on libuuid.so
loaded?
>
> What does 'ldd <libname>' say about it?
The Java class we're testing with consists simply of a single main
function that calls System.loadLibrary("wmdll"). The file libwmdll.so
is present in the current directory.
This is the output of 'ldd -r libwmdll.so'. Note the fourth library,
libuuid.
linux-gate.so.1 => (0x0030c000)
libole32.so =>
/usr/testd/test_cdrom/xde3/mw511_release/mw/lib-linux_optimized/libole32
.so (0x0090f000)
libmfc400s.so =>
/usr/testd/test_cdrom/xde3/mw511_release/mw/lib-linux_optimized/libmfc40
0s.so (0x00497000)
libuuid.so =>
/usr/testd/test_cdrom/xde3/mw511_release/mw/lib-linux_optimized/libuuid.
so (0x00720000)
librpcrt4.so =>
/usr/testd/test_cdrom/xde3/mw511_release/mw/lib-linux_optimized/librpcrt
4.so (0x00d7e000)
libmsvcrt.so =>
/usr/testd/test_cdrom/xde3/mw511_release/mw/lib-linux_optimized/libmsvcr
t.so (0x00820000)
libgdiuser32.so =>
/usr/testd/test_cdrom/xde3/mw511_release/mw/lib-linux_optimized/libgdius
er32.so (0x00aca000)
libadvapi32.so =>
/usr/testd/test_cdrom/xde3/mw511_release/mw/lib-linux_optimized/libadvap
i32.so (0x00111000)
libkernel32.so =>
/usr/testd/test_cdrom/xde3/mw511_release/mw/lib-linux_optimized/libkerne
l32.so (0x0030d000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00147000)
libc.so.6 => /lib/libc.so.6 (0x00e17000)
libelf.so.1 => /usr/lib/libelf.so.1 (0x00159000)
libdl.so.2 => /lib/libdl.so.2 (0x0016c000)
libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x00170000)
libm.so.6 => /lib/libm.so.6 (0x00243000)
libgcc_s.so.1 =>
/usr/testd/test_cdrom/xde3/mw511_release/mw/../misc/linux/gcc/fixed3/lib
/libgcc_s.so.1 (0x00f8a000)
libstdc++.so.6 =>
/usr/testd/test_cdrom/xde3/mw511_release/mw/../misc/linux/gcc/fixed3/lib
/libstdc++.so.6 (0x00747000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x00f93000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x00229000)
/lib/ld-linux.so.2 (0x0047b000)