From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2450 invoked by alias); 8 May 2007 16:06:29 -0000 Received: (qmail 2442 invoked by uid 22791); 8 May 2007 16:06:28 -0000 X-Spam-Check-By: sourceware.org Received: from return.false.org (HELO return.false.org) (66.207.162.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 08 May 2007 16:06:26 +0000 Received: from return.false.org (localhost [127.0.0.1]) by return.false.org (Postfix) with ESMTP id BA1444B267; Tue, 8 May 2007 11:06:24 -0500 (CDT) Received: from caradoc.them.org (dsl093-172-095.pit1.dsl.speakeasy.net [66.93.172.95]) by return.false.org (Postfix) with ESMTP id A28014B262; Tue, 8 May 2007 11:06:24 -0500 (CDT) Received: from drow by caradoc.them.org with local (Exim 4.67) (envelope-from ) id 1HlSCk-0002bd-0g; Tue, 08 May 2007 12:06:22 -0400 Date: Tue, 08 May 2007 16:06:00 -0000 From: Daniel Jacobowitz To: "Williams, Allen" Cc: gdb@sourceware.org Subject: Re: Relocation error in gdb Message-ID: <20070508160620.GA10002@caradoc.them.org> Mail-Followup-To: "Williams, Allen" , gdb@sourceware.org References: <6E19E11D3D7A5F4D937E5C2721FC310D058A7704@mlbe2k4.cs.myharris.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6E19E11D3D7A5F4D937E5C2721FC310D058A7704@mlbe2k4.cs.myharris.net> User-Agent: Mutt/1.5.15 (2007-04-09) 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-05/txt/msg00030.txt.bz2 On Tue, May 08, 2007 at 11:52:42AM -0400, Williams, Allen wrote: > I'm trying to run a debug version of the standard libraries in gdb. > They are located in /usr/lib/debug. After loading gdb ("gdb rssd"), I > do this: > > LD_PRELOAD /usr/lib/debug/libc.so.6 > > in an attempt to force the program (some odbc libraries in the program, > in particular) to pick up the debug versions. I receive this error: > > Starting program: /home/anw/SoftwareProducts/rss/rssd > /home/anw/SoftwareProducts/rss/rssd: relocation error: > /lib/tls/libpthread.so.0: symbol errno, version GLIBC_PRIVATE not > defined in file libc.so.6 with link time reference That won't work outside GDB either. You can't mix and match different versions of libc and libpthread. Try LD_LIBRARY_PATH=/usr/lib/debug instead. -- Daniel Jacobowitz CodeSourcery