This is the mail archive of the libc-alpha@cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Binary apps linked against libdl



Is there anyway to get binary-only applications that are linked against
libdl and glibc 2.0 to run properly under glibc 2.1? I've tried using the
method of calling a glibc 2.0 ld-linux.so.2 directly and setting the
LD_LIBRARY_PATH but it did not work.  I'm currently having this problem
with db2 but I've also witnessed this problem with the jdk.  As far as I
can tell, jdk does not call any _dl functions itself (I grepped the code).
It appears as though these symbols are called by libc.so.6.

[root@voltaire install]# LD_LIBRARY_PATH=/usr/glibc2.0/lib
/usr/glibc2.0/lib/ld-linux.so.2 ./db2inst 
sh: /usr/glibc2.0/lib/libc.so.6: no version information available
(required by sh)
sh: /usr/glibc2.0/lib/libc.so.6: no version information available
(required by sh)
sh: /usr/glibc2.0/lib/libc.so.6: no version information available
(required by /lib/libtermcap.so.2)
sh: /usr/glibc2.0/lib/libc.so.6: no version information available
(required by /lib/libtermcap.so.2)
sh: error in loading shared libraries: /usr/glibc2.0/lib/libc.so.6:
undefined symbol: _dl_global_scope_end
Segmentation fault (core dumped)

Attempting to preload the 2.0 libdl via LD_PRELOAD doesn't seem to have
any effect either.

- cls




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]