Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Jan 2011 14:56:38 GMT
From:      "Peter C. Lai" <cowbert@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/153952: python26 + pth fails to reconfigure cflags to include -I${LOCALBASE}/include/pth in include path 
Message-ID:  <201101131456.p0DEucBp025878@red.freebsd.org>
Resent-Message-ID: <201101131500.p0DF0JX8010832@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         153952
>Category:       ports
>Synopsis:       python26 + pth fails to reconfigure cflags to include -I${LOCALBASE}/include/pth in include path
>Confidential:   no
>Severity:       critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 13 15:00:19 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Peter C. Lai
>Release:        8.2-RC1
>Organization:
Cesium Hyperfine Informatics
>Environment:
ports cvsup as of 13 Jan 2011, amd64 arch

>Description:
We ran into a problem building devel/gobject-introspection during 'make configure' with the following error related to python detection with python26 built with pth: (from config.log)

/usr/local/include/python2.6/Python.h:163:17: error: pth.h: No such file or directory

Obviously pth was present in:
% find /usr/ -name pth.h
/usr/obj/usr/ports/devel/pth/work/pth-2.0.7/pth.h
/usr/local/include/pth/pth.h

however, config wasn't picking it up:
% python2.6-config --clfags
Usage: /usr/local/bin/python2.6-config [--prefix|--exec-prefix|--includes|--libs|--cflags|--ldflags|--help]
uab# python2.6-config --cflags
-I/usr/local/include/python2.6 -I/usr/local/include/python2.6 -fno-strict-aliasing -O2 -pipe -D__wchar_t=wchar_t -DTHREAD_STACK_SIZE=0x100000 -fno-strict-aliasing -DNDEBUG -O2 -pipe -D__wchar_t=wchar_t -DTHREAD_STACK_SIZE=0x100000 -fno-strict-aliasing

During python26 installation, -I${LOCALBASE}/include/pth isn't being added to the default include path for python26...
>How-To-Repeat:
1. Build lang/python26 WITH_PTH
2. Attempt to build devel/gobject-introspection
TAD: configure will fail at: 
checking for headers required to compile python extensions... not found
configure: error: Python headers not found

>Fix:
that's for python@ to figure out :)
cc to bms@ since he originated the pth patch. 

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101131456.p0DEucBp025878>