This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: glibc 2.3 not binary compatible with glibc-2.2.5
- From: Roland McGrath <roland at redhat dot com>
- To: Christoph Lameter <christoph at lameter dot com>
- Cc: <libc-alpha at sources dot redhat dot com>
- Date: Sat, 5 Oct 2002 12:52:13 -0700
- Subject: Re: glibc 2.3 not binary compatible with glibc-2.2.5
Are those outputs really from the same run? The addresses in your
disassembly do not fall in the libpthread.so range shown in your
/proc/*/maps. The info shared output does not jibe.
The "version ... not found" errors indicate you are getting the wrong
libraries (i.e. /lib/libc.so.6) in that attempt. The ~ syntax is not
expanded when you set LD_LIBRARY_PATH. Use full absolute directory names.
If you start the program by running ld.so directly, then you can use
--library-path instead and not have the environment variable messing up
your gdbserver or whatever else might inherit it. Look at the testrun.sh
script created in the libc build directory for how to give all the right
args, i.e. try sh -x .../testrun.sh /bin/tar and then try the command line
you see it use.
If gdb is not confused, then "info shared" should work.
Do set solib-absolute-prefix first, in fact do it before attaching.
Use readelf -es not just readelf -s next time. I need that info to figure
out enough from your output to match up the symbols with the run-time
addresses. But just making gdb work is much easier.