From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5815 invoked by alias); 21 Mar 2007 15:59:29 -0000 Received: (qmail 5805 invoked by uid 22791); 21 Mar 2007 15:59:28 -0000 X-Spam-Check-By: sourceware.org Received: from return.false.org (HELO return.false.org) (66.207.162.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 21 Mar 2007 15:59:19 +0000 Received: from return.false.org (localhost [127.0.0.1]) by return.false.org (Postfix) with ESMTP id 669244B267; Wed, 21 Mar 2007 10:59:17 -0500 (CDT) Received: from caradoc.them.org (dsl093-172-095.pit1.dsl.speakeasy.net [66.93.172.95]) by return.false.org (Postfix) with ESMTP id 420F64B262; Wed, 21 Mar 2007 10:59:17 -0500 (CDT) Received: from drow by caradoc.them.org with local (Exim 4.63) (envelope-from ) id 1HU3DY-00021R-Fm; Wed, 21 Mar 2007 11:59:16 -0400 Date: Wed, 21 Mar 2007 15:59:00 -0000 From: Daniel Jacobowitz To: Don Mies Cc: gdb@sourceware.org Subject: Re: GDB Can't Find My Shared Libraries Message-ID: <20070321155916.GA7689@caradoc.them.org> Mail-Followup-To: Don Mies , gdb@sourceware.org References: <46015360.9070701@cox.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46015360.9070701@cox.net> User-Agent: Mutt/1.5.14+cvs20070313 (2007-03-13) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-03/txt/msg00254.txt.bz2 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