Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Don Mies <don.mies@cox.net>
Cc: gdb@sourceware.org
Subject: Re: GDB Can't Find My Shared Libraries
Date: Wed, 21 Mar 2007 15:59:00 -0000	[thread overview]
Message-ID: <20070321155916.GA7689@caradoc.them.org> (raw)
In-Reply-To: <46015360.9070701@cox.net>

On Wed, Mar 21, 2007 at 08:46:40AM -0700, Don Mies wrote:

> 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.

99% of the time, this symptom means that your shell startup files are
clobbering LD_LIBRARY_PATH.  GDB runs the program by invoking a
subshell to handle command line processing.  I recommend checking that.

-- 
Daniel Jacobowitz
CodeSourcery


  reply	other threads:[~2007-03-21 15:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-21 15:46 Don Mies
2007-03-21 15:59 ` Daniel Jacobowitz [this message]
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=20070321155916.GA7689@caradoc.them.org \
    --to=drow@false.org \
    --cc=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