[issue13398] _cursesmodule missing Python.h on Solaris

Maciej Bliziński report at bugs.python.org
Mon Nov 14 00:16:56 CET 2011


New submission from Maciej Bliziński <maciej.blizinski at gmail.com>:

Compilation of Python 3.2.2 fails on Solaris 9 as follows:

/opt/SUNWspro/bin/cc  -xcode=pic32 -xO3 -m32 -xarch=v8 -I/opt/csw/include  -c ./Modules/_cursesmodule.c -o Modules/_cursesmodule.o
"./Modules/_cursesmodule.c", line 105: cannot find include file: "Python.h"
"./Modules/_cursesmodule.c", line 117: cannot find include file: "py_curses.h"
"./Modules/_cursesmodule.c", line 130: warning: no explicit type given
"./Modules/_cursesmodule.c", line 130: syntax error before or at: attr_t
"./Modules/_cursesmodule.c", line 130: warning: old-style declaration or incorrect type for: attr_t
"./Modules/_cursesmodule.c", line 139: warning: no explicit type given
"./Modules/_cursesmodule.c", line 139: syntax error before or at: *
(...)

The problem seems to be a missing -I flag for the compiler, pointing at the Include directory in Python sources.

----------
components: Build
messages: 147578
nosy: automatthias
priority: normal
severity: normal
status: open
title: _cursesmodule missing Python.h on Solaris
type: compile error
versions: Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13398>
_______________________________________


More information about the Python-bugs-list mailing list