[issue13398] _cursesmodule does not build, doesn't find Python.h on Solaris
Maciej Bliziński
report at bugs.python.org
Wed Nov 16 11:08:42 CET 2011
Maciej Bliziński <maciej.blizinski at gmail.com> added the comment:
It's not only the curses module, other two modules are failing as well, the same way - not finding Python.h.
maciej at unstable9s :~/src/opencsw/pkg/lang-python/python/branches/python-3.2 > grep ^PY_CPPFLAGS work/solaris9-sparc/build-isa-sparcv8/Python-3.2.2/Makefile
PY_CPPFLAGS= -I. -IInclude -I$(srcdir)/Include $(CONFIGURE_CPPFLAGS) $(CPPFLAGS)
Perhaps PY_CPPFLAGS does not get included in the compiler invocation? Poking around the Makefile, I find:
Modules/_cursesmodule.o: $(srcdir)/Modules/_cursesmodule.c; $(CC) $(CCSHARED) $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/Modules/_cursesmodule.c -o Modules/_cursesmodule.o
This line doesn't contain a reference to PY_CPPFLAGS.
Perhaps the answer is around line 220 in Modules/makesetup?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13398>
_______________________________________
More information about the Python-bugs-list
mailing list