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:

>> > sh: error in loading shared libraries: /usr/glibc2.0/lib/libc.so.6:
>> > undefined symbol: _dl_global_scope_end

Christopher> I'm pretty sure that this is part of the problem.  If libc requires libdl,
Christopher> will it try to load it from the LD_LIBRARY_PATH or use the hardcoded
Christopher> /lib/libdl.so.2?  I would assume it'd do the former, but it appears to be
Christopher> doing the latter.

You're mixing /lib/ld-linux.so.2 which is hardcoded into every binary
with another libdl.so.2 which isn't hardcoded:

glibc 2.1 has:
$ nm /lib/ld-linux.so.2 |grep _dl_global_scope_end

but glibc 2.0.7 uses:
$ nm /usr/glibc/glibc-2.0.7/lib/ld-linux.so.2 |grep _dl_global_scope_end
0000b54c D _dl_global_scope_end

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]