Hi,
I got the following while doing a clean configure+build. Installing the
python3-devel package solved the problem.Some kind of CHECK_HEADERS for
python3.3m/Python.h is probably needed in configure.ac, but I'm unsure
about hard coding the path and not sure about how to derive the correct
path. Probably something similar should be added in the python2 section
as well.
Dave
=== python ===
python setup.py build_ext --include-dirs=../../src/include
--library-dirs=../../src/libpcp/src:../../src/libpcp_pmda/src:../../src/libpcp_gui/src:../../src/libpcp_import/src:../../src/libpcp_mmv/src
python3 setup.py build_ext --include-dirs=../../src/include
--library-dirs=../../src/libpcp/src:../../src/libpcp_pmda/src:../../src/libpcp_gui/src:../../src/libpcp_import/src:../../src/libpcp_mmv/src
running build_ext
building 'cpmapi' extension
creating build
creating build/temp.linux-x86_64-2.7
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic
-D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic
-D_GNU_SOURCE -fPIC -fwrapv -fPIC -I../../src/include
-I/usr/include/python2.7 -c pmapi.c -o build/temp.linux-x86_64-2.7/pmapi.o
running build_ext
building 'cpmapi' extension
creating build/temp.linux-x86_64-3.3
gcc -pthread -Wno-unused-result -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG
-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -grecord-gcc-switches -m64
-mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I../../src/include
-I/usr/include/python3.3m -c pmapi.c -o build/temp.linux-x86_64-3.3/pmapi.o
pmapi.c:27:20: fatal error: Python.h: No such file or directory
#include <Python.h>
^
compilation terminated.
error: command 'gcc' failed with exit status 1
make[2]: *** [build_python3] Error 1
|