From: Nicholas N. <nj...@ca...> - 2003-04-23 07:51:32
|
On Tue, 22 Apr 2003, Alex Ivershen wrote: > I hope someone can give me a hand here - I am trying to build Valgrind > 1.9.5 on RedHat 8 with glibc 2.3.2-4.80 installed.=A0 When building, I ge= t > the following error: > > make[3]: Entering directory > `/home/agi/tmp/valgrind-1.9.5/corecheck/tests' > gcc=A0=A0 -Winline -Wall -Wshadow -g=A0=A0 -o pth_atfork1=A0 pth_atfork1.= o > -lpthread > pth_atfork1.o: In function `main': > /home/agi/tmp/valgrind-1.9.5/corecheck/tests/pth_atfork1.c:68: undefined > reference to `pthread_atfork' > collect2: ld returned 1 exit status > make[3]: *** [pth_atfork1] Error 1 > make[3]: Leaving directory `/home/agi/tmp/valgrind-1.9.5/corecheck/tests' > > Pthread library, bith static and dynamic, do have pthread_atfork symbol > defined. And the path to /usr/lib is the firs in LD_LIBRARY_PATH. Any > suggestions for me? Thanks beforehand! That's weird. What's the output of: nm /usr/lib/libpthread.so | grep pthread_atfork ? Does it define pthread_atfork? Can you compile any program that uses pthread_atfork? A temporary hack to workaround is to change the SUBDIRS variable in valgrind/memcheck/Makefile.in from this: SUBDIRS =3D . tests docs to this: SUBDIRS =3D . docs The 'tests' directory contains the regression tests, and missing those won't cause you any grief. N |