From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16918 invoked by alias); 6 Jan 2004 22:10:32 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 16910 invoked from network); 6 Jan 2004 22:10:31 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 6 Jan 2004 22:10:31 -0000 Received: from drow by nevyn.them.org with local (Exim 4.30 #1 (Debian)) id 1AdzP2-0002Ij-VZ; Tue, 06 Jan 2004 17:10:20 -0500 Date: Tue, 06 Jan 2004 22:10:00 -0000 From: Daniel Jacobowitz To: "Drummonds, Scott B" Cc: gdb@sources.redhat.com Subject: Re: GDB and Shared Libraries Message-ID: <20040106221020.GA8820@nevyn.them.org> Mail-Followup-To: "Drummonds, Scott B" , gdb@sources.redhat.com References: <92E67798C43ECE4691CCEE09662D2698011E3E82@scsmsx402.sc.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <92E67798C43ECE4691CCEE09662D2698011E3E82@scsmsx402.sc.intel.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2004-01/txt/msg00060.txt.bz2 On Tue, Jan 06, 2004 at 02:06:57PM -0800, Drummonds, Scott B wrote: > Hi, everyone, > > I'm noticing a discrepancy between the way that GDB handles shared > libraries and my Linux system does during execution. Specifically, my > program works on the command line (well, except for the actual run-time > but that I'm trying to find) but aborts in GDB for lack of shared > libraries. Specifically: > > > (gdb) run > Starting program: > : error while loading shared libraries: libtcl8.0.so: cannot > open shared object file: No such file or directory > > Program exited with code 0177. > > > Can anyone tell me why this is happening? This is an old version of GDB > (5.2-2) but I can't imagine that the problem here is anything other than > my incorrect or incomplete understanding of GDB. This usually means that you have a shell startup script (.bashrc, .profile, et cetera) which is clobbering the library path. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer