<div>I think this answers your question. Let me know if you want me to do anymore digging.</div><div><br></div><div>noibm34@v20n17 $ ldd python                             ~/software/python23/bin</div><div>python needs:</div>
<div>         /usr/lib/libdl.a(shr.o)</div><div>         /usr/lib/libpthreads.a(shr_comm.o)</div><div>         /usr/lib/libpthreads.a(shr_xpg5.o)</div><div>         /usr/lib/threads/libc.a(shr.o)</div><div>         /usr/lib/librtl.a(shr.o)</div>
<div>         /unix</div><div>         /usr/lib/libcrypt.a(shr.o)</div><div>noibm34@v20n17 $ ldd python2.3                          ~/software/python23/bin</div><div>python2.3 needs:</div><div>         /usr/lib/libdl.a(shr.o)</div>
<div>         /usr/lib/libpthreads.a(shr_comm.o)</div><div>         /usr/lib/libpthreads.a(shr_xpg5.o)</div><div>         /usr/lib/threads/libc.a(shr.o)</div><div>         /usr/lib/librtl.a(shr.o)</div><div>         /unix</div>
<div>         /usr/lib/libcrypt.a(shr.o)</div><div><br></div><br><div class="gmail_quote">On Sun, Aug 2, 2009 at 5:27 AM, Mathieu Malaterre <span dir="ltr"><<a href="mailto:mathieu.malaterre@gmail.com">mathieu.malaterre@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Here is the issue:<br>
<a href="http://www.cdash.org/CDash/viewBuildError.php?buildid=392329" target="_blank">http://www.cdash.org/CDash/viewBuildError.php?buildid=392329</a><br>
<br>
...<br>
Linking CXX executable ../../bin/vtkpython<br>
<br>
ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock<br>
...<br>
<br>
Looking at what is done:<br>
...<br>
IF(CMAKE_SYSTEM_NAME MATCHES "AIX")<br>
  GET_FILENAME_COMPONENT(CMAKE_PYTHON_LIB_PREFIX "${PYTHON_LIBRARY}" PATH)<br>
  FIND_FILE(CMAKE_PYTHON_LIBRARY_EXPORT python.exp "${CMAKE_PYTHON_LIB_PREFIX}")<br>
  IF(CMAKE_PYTHON_LIBRARY_EXPORT)<br>
    SET(VTKPYTHON_LINK_FLAGS "-Wl,-bE:${CMAKE_PYTHON_LIBRARY_EXPORT}")<br>
  ENDIF(CMAKE_PYTHON_LIBRARY_EXPORT)<br>
ENDIF(CMAKE_SYSTEM_NAME MATCHES "AIX")<br>
...<br>
<br>
<br>
I would think the right thing to do is fix FindPythonLibraries:<br>
<a href="http://www.vtk.org/Bug/view.php?id=2257" target="_blank">http://www.vtk.org/Bug/view.php?id=2257</a><br>
<br>
I think the pthread* symbols are actually coming from the python lib<br>
and not VTK itself.<br>
<br>
Could someone with access on this AIX machine confirm that:<br>
1. python lib are static<br>
2. to allow linking to them, one is required to link to pthread libs<br>
<br>
Thank you<br>
--<br>
Mathieu<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
</blockquote></div><br>