From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1603 invoked by alias); 14 Oct 2005 15:28:26 -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 1592 invoked by uid 22791); 14 Oct 2005 15:28:23 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Fri, 14 Oct 2005 15:28:23 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1EQRTp-0007KK-QJ; Fri, 14 Oct 2005 11:28:21 -0400 Date: Fri, 14 Oct 2005 15:28:00 -0000 From: Daniel Jacobowitz To: Kirk Hagberg Cc: gdb@sources.redhat.com Subject: Re: FW: fatal: libstdc++.so.6: open failed Message-ID: <20051014152821.GA28117@nevyn.them.org> Mail-Followup-To: Kirk Hagberg , gdb@sources.redhat.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.8i X-SW-Source: 2005-10/txt/msg00086.txt.bz2 On Thu, Oct 13, 2005 at 11:04:16AM -0500, Kirk Hagberg wrote: > $ g++ -g -m32 longsize.c -olongsize32cpp > $ gdb longsize32cpp > GNU gdb 6.3 > Copyright 2004 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you are > welcome to change it and/or distribute copies of it under certain conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB.  Type "show warranty" for details. > This GDB was configured as "sparc-sun-solaris2.8"... > (gdb) r > Starting program: /tmp/longsize32cpp > ld.so.1: /tmp/longsize32cpp: fatal: libstdc++.so.6: open failed: No such file or directory > > Program terminated with signal SIGKILL, Killed. > The program no longer exists. > > libstdc++.so.6 is in the LD_LIBRARY_PATH. GDB runs a shell in order to start your program. The shell is probably reloading its startup files; so your shell startup files are probably clobbering LD_LIBRARY_PATH. -- Daniel Jacobowitz CodeSourcery, LLC