Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Shared library problems
@ 2002-09-23 18:02 Robert Schweikert
  2002-09-23 18:29 ` Daniel Jacobowitz
  0 siblings, 1 reply; 8+ messages in thread
From: Robert Schweikert @ 2002-09-23 18:02 UTC (permalink / raw)
  To: kevinb; +Cc: gdb

Kevin,

> Which version of gdb are you using?  Which host and target?

Acording to the package id I am using 5.0-148. gdb produces the following
output.

-> gdb -v
GNU gdb 20010316

This is on Linux running on Intel IA32.

Thanks,
Robert

Robert Schweikert                   MAY THE SOURCE BE WITH YOU
(Robert.Schweikert@hks.com)                   LINUX


^ permalink raw reply	[flat|nested] 8+ messages in thread
* Shared library problems
@ 2002-09-19  5:35 Robert Schweikert
  2002-09-19 10:46 ` Kevin Buettner
  0 siblings, 1 reply; 8+ messages in thread
From: Robert Schweikert @ 2002-09-19  5:35 UTC (permalink / raw)
  To: gdb; +Cc: rjschwei

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




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2002-09-24 15:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-23 18:02 Shared library problems Robert Schweikert
2002-09-23 18:29 ` Daniel Jacobowitz
2002-09-24  8:21   ` Robert Schweikert
2002-09-24  8:25     ` Daniel Jacobowitz
2002-09-24  8:27       ` Robert Schweikert
2002-09-24  8:30         ` Daniel Jacobowitz
  -- strict thread matches above, loose matches on Subject: below --
2002-09-19  5:35 Robert Schweikert
2002-09-19 10:46 ` Kevin Buettner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox