python27-2.7.3_3 from current ports When trying to build gobject-introspection from ports/devel, it fails with "no suitable Python headers found" Fix: the gobject-introspection configure script performs a test similar to the following: test.cpp: #include <Python.h> gcc -I/usr/local/include/python2.7 test.cpp This fails with: # gcc -I/usr/local/include/python2.7 testpy.cppIn file included from testpy.cpp:2: /usr/local/include/python2.7/Python.h:166:17: error: pth.h: No such file or directory Python.h has #include <pth.h> but pth.h is in /usr/local/include/pth/pth.h Not sure if it's python, pth or gobject-introspection causing the problem, but here are some work-arounds to consider 1) Add -I/usr/local/include/pth to CPPFLAGS in gobject-introspection Makefile 2) Patch gobject-instrospection, add -I/usr/local/include/pth to CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES" line in configure 3) Patch Python.h in python27 port, change #include <pth.h> to #include <pth/pth.h> Thank you How-To-Repeat: cd /usr/ports/lang/python27 make install (with pth option selected) cd /usr/ports/devel/gobject-introspection make install
Responsible Changed From-To: freebsd-ports-bugs->freebsd-python Over to maintainer (via the GNATS Auto Assign Tool)
Responsible Changed From-To: freebsd-python->mva I'll take it.
State Changed From-To: open->closed This should be fixed now. Thanks for reporting!