This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Shared library problems
- From: Robert Schweikert <Robert dot Schweikert at hks dot com>
- To: gdb at sources dot redhat dot com
- Cc: rjschwei at hks dot com
- Date: Thu, 19 Sep 2002 08:35:10 -0400
- Subject: Shared library problems
- Organization: Hibbit, Karlsson & Sorensen
I am trying to debug code that has lost of shared libraries and I cannot
make gdb and/or the code find the libraries.
When I run the code and then attach gdb I get stuff like this
(gdb) attach 22736
Attaching to process 22736
0x4644747e in ?? ()
When I try to run the code from within gdb I get stull like this
Starting program: fullPath/myExecutable
fullPath/myExecutable: error while loading shared libraries:
libPyX11.so: cannot open shared object file: No such file or directory
But this is a lie.
(gdb) show env LD_LIBRARY_PATH
LD_LIBRARY_PATH =
/var/wdir/obj_storage/rjschwei/source/6-0/object/linux32/exec/lbr:/var/wdir/obj_storage/rjschwei/source/6-0/object/linux32/Python/Obj/lbr:
/var/wdir/obj_storage/rjschwei/source/6-0/object/linux32/External:/usr/6-0/object/linux32/exec/lbr:/usr/6-0/object/linux32/Python/Obj/lbr:
/usr/6-0/object/linux32/External:/usr/5-adb/object/linux32/exec/lbr:/usr/5-adb/object/linux32/External
And then
ls
/var/wdir/obj_storage/rjschwei/source/6-0/object/linux32/Python/Obj/lbr/libPyX11.so
/var/wdir/obj_storage/rjschwei/source/6-0/object/linux32/Python/Obj/lbr/libPyX11.so
So the library is in a directory that's on the LD_LIBRARY_PATH, the same
path is on PYTHONPATH and the environment is set the same when I attach
to the process.
Any help in getting this to work is greatly appreciated.
Robert
--
Robert Schweikert MAY THE SOURCE BE WITH YOU
(Robert.Schweikert@hks.com) LINUX