This is the mail archive of the libc-alpha@sources.redhat.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]
Other format: [Raw text]

Re: glibc 2.3 not binary compatible with glibc-2.2.5


On Sat, 5 Oct 2002, Daniel Jacobowitz wrote:

> You can't... the easiest way to do this in my experience is to run
> gdbserver :PORT /home/christoph/t/lib/ld.so.1 /bin/ls
> and connect with a GDB that has /bin/ls loaded.  You'll also need a
> solib-absolute-prefix setting so that GDB loads the right ld.so.1.

Ok. I tried:

k2-400:/home/christoph/t# export LD_LIBRARY_PATH=~/lib:~/usr/lib
k2-400:/home/christoph/t# gdbserver :7777 /home/christoph/t/lib/ld-linux.so.2 /bin/tar
Process /home/christoph/t/lib/ld-linux.so.2 created; pid = 905
Remote debugging from host 127.0.0.1
/bin/tar: /home/christoph/t/lib/ld-linux.so.2: version `GLIBC_2.1.1' not
found (required by /lib/libc.so.6)
/bin/tar: /home/christoph/t/lib/ld-linux.so.2: version `GLIBC_2.2.3' not
found (required by /lib/libc.so.6)
/bin/tar: /home/christoph/t/lib/ld-linux.so.2: version `GLIBC_2.2' not
found (required by /lib/libc.so.6)

The controlling session:

gdb /bin/tar
(gdb) target remote localhost:7777
Remote debugging using localhost:7777
0x80000c10 in ?? ()
(gdb) set solib-absolute-prefix /home/christoph/t
(gdb) cont
Continuing.

Program exited with code 01.

The overriding of the LD_LIBRARY_PATH does not seem to work.


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