[vtk-developers] Remaining issue with AIX / aka python libs requires pthread (#2257)

Dave Partyka dave.partyka at kitware.com
Sun Aug 2 08:24:49 EDT 2009


I think this answers your question. Let me know if you want me to do anymore
digging.

noibm34 at v20n17 $ ldd python
~/software/python23/bin
python needs:
         /usr/lib/libdl.a(shr.o)
         /usr/lib/libpthreads.a(shr_comm.o)
         /usr/lib/libpthreads.a(shr_xpg5.o)
         /usr/lib/threads/libc.a(shr.o)
         /usr/lib/librtl.a(shr.o)
         /unix
         /usr/lib/libcrypt.a(shr.o)
noibm34 at v20n17 $ ldd python2.3
 ~/software/python23/bin
python2.3 needs:
         /usr/lib/libdl.a(shr.o)
         /usr/lib/libpthreads.a(shr_comm.o)
         /usr/lib/libpthreads.a(shr_xpg5.o)
         /usr/lib/threads/libc.a(shr.o)
         /usr/lib/librtl.a(shr.o)
         /unix
         /usr/lib/libcrypt.a(shr.o)


On Sun, Aug 2, 2009 at 5:27 AM, Mathieu Malaterre <
mathieu.malaterre at gmail.com> wrote:

> 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
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20090802/3377d9a3/attachment.html>


More information about the vtk-developers mailing list