This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GDB and Shared Libraries


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:
> 
> <quote>
> (gdb) run <my_args>
> Starting program: <my_binary> <my_args>
> <my_binary>: error while loading shared libraries: libtcl8.0.so: cannot
> open shared object file: No such file or directory
> 
> Program exited with code 0177.
> </quote>
> 
> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]