MantisBT - CMake
View Issue Details
0009897CMakeModulespublic2009-11-15 12:032016-06-10 14:31
thomas weidner 
Marcus D. Hanwell 
normalminorhave not tried
closedmoved 
CMake-2-6 
 
0009897: FindPythonLibs.cmake fails to call python-config to find dependant libraries
Hi,

FindPythonLibs.cmake simply searches for a proper libpython<something> library. which seems to work most of the time but for example is not enough on opensuse 11.2 where linking with python results in
/usr/lib64/python2.6/config/libpython2.6.a(posixmodule.o): In function `posix_forkpty':
posixmodule.c:(.text.unlikely+0x22af): undefined reference to `forkpty'
/usr/lib64/python2.6/config/libpython2.6.a(posixmodule.o): In function `posix_openpty':
posixmodule.c:(.text.unlikely+0x22f8): undefined reference to `openpty'

OTOH python-config --libs advertises to use "-lpthread -ldl -lutil -lm -lpython2.6" as linker flags. There libutil is included, which contains the missing definitions.

so please query python-config (on unix?) instead of trying to be smart yourself. ;-)
CMake 2.6.4 on openSUSE 11.2
No tags attached.
Issue History
2009-11-15 12:03thomas weidnerNew Issue
2009-11-22 05:22Alex NeundorfCategoryCMake => Modules
2010-12-14 17:06David ColeStatusnew => assigned
2010-12-14 17:06David ColeAssigned To => Marcus D. Hanwell
2016-06-10 14:27Kitware RobotNote Added: 0041617
2016-06-10 14:27Kitware RobotStatusassigned => resolved
2016-06-10 14:27Kitware RobotResolutionopen => moved
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0041617)
Kitware Robot   
2016-06-10 14:27   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.