From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28155 invoked by alias); 21 Mar 2007 15:46:49 -0000 Received: (qmail 27991 invoked by uid 22791); 21 Mar 2007 15:46:48 -0000 X-Spam-Check-By: sourceware.org Received: from fed1rmmtao105.cox.net (HELO fed1rmmtao105.cox.net) (68.230.241.41) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 21 Mar 2007 15:46:40 +0000 Received: from fed1rmimpo01.cox.net ([70.169.32.71]) by fed1rmmtao105.cox.net (InterMail vM.7.05.02.00 201-2174-114-20060621) with ESMTP id <20070321154640.PFWU1312.fed1rmmtao105.cox.net@fed1rmimpo01.cox.net> for ; Wed, 21 Mar 2007 11:46:40 -0400 Received: from [127.0.0.1] ([68.5.129.201]) by fed1rmimpo01.cox.net with bizsmtp id dTme1W00L4LrGeU0000000; Wed, 21 Mar 2007 11:46:39 -0400 Message-ID: <46015360.9070701@cox.net> Date: Wed, 21 Mar 2007 15:46:00 -0000 From: Don Mies User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: gdb@sourceware.org Subject: GDB Can't Find My Shared Libraries Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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/msg00253.txt.bz2 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. I've done this on several different installation of Redhat Linux with the same results on each platform. For example, here is the configuration of one of the systems: % gdb --version GNU gdb Red Hat Linux (6.3.0.0-1.132.EL4rh) % uname -a Linux anand 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:27:17 EDT 2006 i686 i686 i386 GNU/Linux % cat /etc/redhat-release Red Hat Enterprise Linux AS release 4 (Nahant Update 4) I don't have a .gdbrc file but I do have a .dbxrc file (from when I debug on Sun systems). Can anyone tell me what is wrong here or how to give gdb the proper shared library paths? Thanks, Don