View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0009897CMakeModulespublic2009-11-15 12:032016-06-10 14:31
Reporterthomas weidner 
Assigned ToMarcus D. Hanwell 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionmoved 
PlatformOSOS Version
Product VersionCMake-2-6 
Target VersionFixed in Version 
Summary0009897: FindPythonLibs.cmake fails to call python-config to find dependant libraries
DescriptionHi,

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. ;-)
Additional InformationCMake 2.6.4 on openSUSE 11.2
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0041617)
Kitware Robot (administrator)
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.

 Issue History
Date Modified Username Field Change
2009-11-15 12:03 thomas weidner New Issue
2009-11-22 05:22 Alex Neundorf Category CMake => Modules
2010-12-14 17:06 David Cole Status new => assigned
2010-12-14 17:06 David Cole Assigned To => Marcus D. Hanwell
2016-06-10 14:27 Kitware Robot Note Added: 0041617
2016-06-10 14:27 Kitware Robot Status assigned => resolved
2016-06-10 14:27 Kitware Robot Resolution open => moved
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team