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]

Re: Binary apps linked against libdl


>>>>> Christopher Seawood writes:

 > 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.
jdk 1.1.7 uses calls to internal _dl functions, have a look at the
blackdown patch.

 > [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)
It seems that db2inst is a shell script and was linked against glibc
2.1.  You've got to patch the shell script to use the above command
line when actually calling the binary.
 > 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.

Andreas
-- 
 Andreas Jaeger   aj@arthur.rhein-neckar.de    jaeger@informatik.uni-kl.de
  for pgp-key finger ajaeger@aixd1.rhrk.uni-kl.de


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