From: Don Mies <don.mies@cox.net>
To: gdb@sourceware.org
Subject: GDB Can't Find My Shared Libraries
Date: Wed, 21 Mar 2007 15:46:00 -0000 [thread overview]
Message-ID: <46015360.9070701@cox.net> (raw)
I'm having a lot of trouble with gdb not finding my shared libraries.
When I
invoke gdb with the executable it appears to load it but when I try to
run the
program I get a message similar to the following:
/devl/obj/main/LX86/xxx: error while loading shared
libraries: libgorph.so: cannot open shared object file: No such file
or directory
However, all of the libraries needed are in my LD_LIBRARY_PATH and I can
execute an "ldd" command on the same executable that I started gdb with
and it
reports all of the libraries found and in their proper places.
I've done this on several different installation of Redhat Linux with
the same
results on each platform. For example, here is the configuration of one
of the
systems:
% gdb --version
GNU gdb Red Hat Linux (6.3.0.0-1.132.EL4rh)
% uname -a
Linux anand 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:27:17 EDT 2006 i686
i686 i386 GNU/Linux
% cat /etc/redhat-release
Red Hat Enterprise Linux AS release 4 (Nahant Update 4)
I don't have a .gdbrc file but I do have a .dbxrc file (from when I debug on
Sun systems).
Can anyone tell me what is wrong here or how to give gdb the proper shared
library paths?
Thanks,
Don
next reply other threads:[~2007-03-21 15:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-21 15:46 Don Mies [this message]
2007-03-21 15:59 ` Daniel Jacobowitz
2007-03-21 16:20 ` Don Mies
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46015360.9070701@cox.net \
--to=don.mies@cox.net \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox