[vtk-developers] Remaining issue with AIX / aka python libs requires pthread (#2257)
Mathieu Malaterre
mathieu.malaterre at gmail.com
Sun Aug 2 05:27:52 EDT 2009
Here is the issue:
http://www.cdash.org/CDash/viewBuildError.php?buildid=392329
...
Linking CXX executable ../../bin/vtkpython
ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock
...
Looking at what is done:
...
IF(CMAKE_SYSTEM_NAME MATCHES "AIX")
GET_FILENAME_COMPONENT(CMAKE_PYTHON_LIB_PREFIX "${PYTHON_LIBRARY}" PATH)
FIND_FILE(CMAKE_PYTHON_LIBRARY_EXPORT python.exp "${CMAKE_PYTHON_LIB_PREFIX}")
IF(CMAKE_PYTHON_LIBRARY_EXPORT)
SET(VTKPYTHON_LINK_FLAGS "-Wl,-bE:${CMAKE_PYTHON_LIBRARY_EXPORT}")
ENDIF(CMAKE_PYTHON_LIBRARY_EXPORT)
ENDIF(CMAKE_SYSTEM_NAME MATCHES "AIX")
...
I would think the right thing to do is fix FindPythonLibraries:
http://www.vtk.org/Bug/view.php?id=2257
I think the pthread* symbols are actually coming from the python lib
and not VTK itself.
Could someone with access on this AIX machine confirm that:
1. python lib are static
2. to allow linking to them, one is required to link to pthread libs
Thank you
--
Mathieu
More information about the vtk-developers
mailing list