another pthread issue
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
I am having a pthread issue during build. This machine is as follows:
Linux clusterName 2.6.9-34.0.2.ELsmp #1 SMP Fri Jun 30 10:33:58 EDT 2006 i686 i686 i386 GNU/Linux
Error is as follows:
[ 24%] Built target vtkfreetype
Linking CXX shared library ../../../lib/libvtkftgl-pv3.98.so
/usr/local/viz/paraview/support/Linux-angren-RHEL4-32-i686/install/Mesa-7.10.3/lib/libOSMesa.a(u_thread.o)(.text+0x1a): In function u_tsd_init': ../../../src/mapi/mapi/u_thread.c:75: undefined reference to
pthread_key_create'
/usr/local/viz/paraview/support/Linux-angren-RHEL4-32-i686/install/Mesa-7.10.3/lib/libOSMesa.a(u_thread.o)(.text+0x9e): In function u_tsd_set': ../../../src/mapi/mapi/u_thread.c:99: undefined reference to
pthread_setspecific'
/usr/local/viz/paraview/support/Linux-angren-RHEL4-32-i686/install/Mesa-7.10.3/lib/libOSMesa.a(u_thread.o)(.text+0x73): In function u_tsd_get': ../../../src/mapi/mapi/u_thread.c:89: undefined reference to
pthread_getspecific'
/usr/local/viz/paraview/support/Linux-angren-RHEL4-32-i686/install/Mesa-7.10.3/lib/libOSMesa.a(glapi_entrypoint.o)(.text+0x29): In function init_glapi_relocs_once': /usr/local/viz/paraview/support/Linux-angren-RHEL4-32-i686/src/Mesa-7.10.3/src/mapi/glapi/glapi_entrypoint.c:342: undefined reference to
pthread_once'
collect2: ld returned 1 exit status
gmake[2]: *** [lib/libvtkftgl-pv3.98.so.1] Error 1
gmake[1]: *** [VTK/ThirdParty/ftgl/CMakeFiles/vtkftgl.dir/all] Error 2
gmake: *** [all] Error 2
Fix is as follows: vi VTK/ThirdParty/ftgl/CMakeFiles/vtkftgl.dir/link.txt
After -lc, add -lpthread Exit. Make, all is well.
This really should be fixed for 3.98.0.
Marking as a crash, since build fails.