glibc 2.3 not binary compatible with glibc-2.2.5

Roland McGrath roland@redhat.com
Sat Oct 5 12:52:00 GMT 2002


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.



More information about the Libc-alpha mailing list