MantisBT - CMake
View Issue Details
0013555CMakeCMakepublic2012-09-22 06:222013-03-04 08:38
amorilia 
Ben Boeckel 
normalminoralways
closedfixed 
linuxfedora17
CMake 2.8.9 
CMake 2.8.10 
0013555: PythonLibs 3.2 not found due to "mu" ABI tag
Under fedora, the python 3.2 library is called

/usr/lib64/libpython3.2mu.so

however cmake fails to find it. A simple workaround is to add the line

set(Python_ADDITIONAL_VERSIONS 3.2mu)

However, it would be nice if cmake would recognize python 3 on linux out of the box.
On Fedora 17, with python3 and python3-devel installed, run cmake on a project whose CMakeLists.txt contains:

find_package(PythonLibs 3.2 REQUIRED)
ABI tags are described in this PEP:

http://www.python.org/dev/peps/pep-3149/ [^]

This bug is reported upstream at various places, e.g.

https://bugzilla.redhat.com/show_bug.cgi?id=807780 [^]
http://cmake.3232098.n2.nabble.com/SWIG-python3-td7366955.html [^]
No tags attached.
Issue History
2012-09-22 06:22amoriliaNew Issue
2012-09-24 08:33Brad KingAssigned To => Ben Boeckel
2012-09-24 08:33Brad KingStatusnew => assigned
2012-09-24 11:17Ben BoeckelNote Added: 0031094
2012-09-24 13:20amoriliaNote Added: 0031096
2012-09-24 13:22Ben BoeckelNote Added: 0031097
2012-09-24 13:22Ben BoeckelStatusassigned => resolved
2012-09-24 13:22Ben BoeckelFixed in Version => CMake 2.8.10
2012-09-24 13:22Ben BoeckelResolutionopen => fixed
2013-03-04 08:38Robert MaynardNote Added: 0032458
2013-03-04 08:38Robert MaynardStatusresolved => closed

Notes
(0031094)
Ben Boeckel   
2012-09-24 11:17   
This relevant patches are in master. The merge commit is: 14be8dd264e2b8bc5a0c7c883bae4338d3c960e7 (made 25 Apr 2012) and the relevant fixes are in 6a46f5ce809185e0c7dbd3d618eb4bbde808827b and 4bdec581b3a5a32239370e87aa2f7cadcb058aae if you just want those patches. It should be in 2.8.10. If you could test it, it would be greatly appreciated. I'll set it to 'confirmed' for now and set it to 'resolved' if the patches work for you as well.
(0031096)
amorilia   
2012-09-24 13:20   
Splendid, thanks! I've tested the git master, and it indeed works for me.
(0031097)
Ben Boeckel   
2012-09-24 13:22   
Will be in 2.8.10 (already on master).
(0032458)
Robert Maynard   
2013-03-04 08:38   
Closing resolved issues that have not been updated in more than 4 months.