This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: FW: fatal: libstdc++.so.6: open failed
- From: Daniel Jacobowitz <drow at false dot org>
- To: Kirk Hagberg <kirk dot hagberg at qlogic dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Fri, 14 Oct 2005 11:28:21 -0400
- Subject: Re: FW: fatal: libstdc++.so.6: open failed
- References: <E19D2D286A3784409DD574031C30D727BDB1A2@EPEXCH01.qlogic.org>
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