can't compile Python modules that use C99
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Python |
Fix Released
|
Unknown
|
|||
zfec |
New
|
Unknown
|
|||
Nexenta Operating System |
New
|
Undecided
|
Unassigned |
Bug Description
Using Python 2.5.2-0nexenta2 . When I try to build a Python module that is written in C99 I get this failure:
gcc -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -O2 -O2 -fPIC -I/usr/
In file included from /usr/include/
/usr/include/
I believe that this is caused by this issue in Python:
http://
There is a patch (by me) on that ticket. Here is the patch:
Index: configure.in
=======
--- configure.in (revision 56514)
+++ configure.in (working copy)
@@ -208,9 +208,12 @@
# Marc Recht
NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
define_
- # On Solaris 2.6, sys/wait.h is inconsistent in the usage
- # of union __?sigval. Reported by Stuart Bishop.
- SunOS/5.6)
+ # From the perspective of Solaris, _XOPEN_SOURCE is not so much a
+ # request to enable features supported by the standard as a request
+ # to disable features not supported by the standard. The best way
+ # for Python to use Solaris is simply to leave _XOPEN_SOURCE out
+ # entirely and define __EXTENSIONS__ instead.
+ SunOS/*)
define_
# On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
# but used in /usr/include/
@@ -271,7 +274,7 @@
# except for Solaris 10, where it must not be defined,
# as it implies XPG4.2
case $ac_sys_
- SunOS/5.10)
+ SunOS/*)
;;
*)
Please apply that patch to the Nexenta packaging of Python.
Changed in python: | |
status: | Unknown → New |
Changed in zfec: | |
status: | Unknown → New |
Changed in python: | |
status: | New → Fix Committed |
Changed in python: | |
status: | Fix Committed → Fix Released |