Summary: | dev-python/m2crypto-0.18 fails to build | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jeroen Roovers (RETIRED) <jer> |
Component: | Current packages | Assignee: | Ali Polatel (RETIRED) <hawking> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | python |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Jeroen Roovers (RETIRED)
2007-09-08 19:20:10 UTC
This happens with all versions currently in the tree except 0.16. [ebuild U ] dev-python/m2crypto-0.18 [0.17-r1] USE="doc" 0 kB The error - redefinition of typedef ‘Py_ssize_t’ - is caused by this check: m2crypto/SWIG/_lib.h: #if PY_VERSION_HEX < 0x02050000 typedef int Py_ssize_t; #endif m2crypto includes this file more than once when compiling swig stuff. I've extended the check so that the file can be included many times: #if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN) typedef int Py_ssize_t; #define PY_SSIZE_T_MAX INT_MAX #define PY_SSIZE_T_MIN INT_MIN #endif as mentioned in PEP 353[1]. It compiles fine here with python2.4. Thanks for reporting ;) [1]: http://www.python.org/dev/peps/pep-0353/ |