This is the mail archive of the gdb@sourceware.org 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: Relocation error in gdb


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


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