|
From: Abhijeet B. <ab...@qu...> - 2003-06-02 16:39:12
|
Hi, I just started using Valgrind and could successfully run it on some of my code. But on some executables that use pthreads, I get the following error: relocation error: /lib/librt.so.1: symbol __pthread_clock_settime, version GLIBC_VERSION not defined in file libpthread.so.0 with the link time reference. I am running this on redhat 7.3 and the code makes a call to clock_gettime and links with librt. I read in the FAQ that the valgrind has its own implementation of pthreads and so is it possible that this symbol is not defined in valgrind's libpthread? Any help on this would be appreciated. Thanks, Abhijeet |
|
From: Olly B. <ol...@su...> - 2003-06-02 16:56:25
|
On Mon, Jun 02, 2003 at 09:39:03AM -0700, Abhijeet Bisain wrote:
> relocation error: /lib/librt.so.1: symbol __pthread_clock_settime, version
> GLIBC_VERSION not defined in file libpthread.so.0 with the link time
> reference.
>
> I am running this on redhat 7.3 and the code makes a call to
> lock_gettime and links with librt. I read in the FAQ that the valgrind
> has its own implementation of pthreads and so is it possible that this
> symbol is not defined in valgrind's libpthread?
It's a symbol which is meant to be private to the pthread
implementation, but unfortunately librt uses it.
Did you fully read the answer to FAQ Q13? It has a suggestion for a way
to fix this problem, and notes it worked for at least one person. If it
works for other people too, it might be worth considering for a future
valgrind release, so it would be useful to try it...
Cheers,
Olly
|
|
From: Abhijeet B. <ab...@qu...> - 2003-06-02 17:25:21
|
I tried that same thing as the other user , removed GLIBC 2.2.3 block and it works. Thanks, Abhijeet At 05:55 PM 6/2/2003 +0100, Olly Betts wrote: >On Mon, Jun 02, 2003 at 09:39:03AM -0700, Abhijeet Bisain wrote: > > relocation error: /lib/librt.so.1: symbol __pthread_clock_settime, version > > GLIBC_VERSION not defined in file libpthread.so.0 with the link time > > reference. > > > > I am running this on redhat 7.3 and the code makes a call to > > lock_gettime and links with librt. I read in the FAQ that the valgrind > > has its own implementation of pthreads and so is it possible that this > > symbol is not defined in valgrind's libpthread? > >It's a symbol which is meant to be private to the pthread >implementation, but unfortunately librt uses it. > >Did you fully read the answer to FAQ Q13? It has a suggestion for a way >to fix this problem, and notes it worked for at least one person. If it >works for other people too, it might be worth considering for a future >valgrind release, so it would be useful to try it... > >Cheers, > Olly > > >------------------------------------------------------- >This SF.net email is sponsored by: eBay >Get office equipment for less on eBay! >http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 >_______________________________________________ >Valgrind-users mailing list >Val...@li... >https://lists.sourceforge.net/lists/listinfo/valgrind-users |