Bug #517
closedPython bindings compilation error
100%
Description
When enabling python bindings, compilation fails with this error message:
lttng_wrap.c:125:20: fatal error: Python.h: No such file or directory
The Python.h file is installed properly.
Here is the compilation command:
[francis@blob python]$ /bin/bash ../../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I../../../.. -I../../../.. -I../../../../src -I../../../../include -include config.h -I-I/usr/include/python2.7 -I/usr/include/x86_64-linux-gnu/python2.7 -I../../../../lib/lttng-ctl -I../common -Wall -g -O2 -g -fno-strict-aliasing -MT lttng_wrap.lo -MD -MP -MF .deps/lttng_wrap.Tpo -c -o lttng_wrap.lo lttng_wrap.c
We see an include error with duplicated -I-I that prevent the include to works correctly.
python-config --libraries output already prepends "-I" to includes on ubuntu 13.04 and confirmed for 12.04 also