Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Aug 2009 15:39:20 +0100
From:      David Southwell <david@vizion2000.net>
To:        freebsd-ports@freebsd.org
Subject:   Re: pth.h errors while compiling portupgrade -rf python26-2.6.2_1 -RESOLVED
Message-ID:  <200908041539.20674.david@vizion2000.net>
In-Reply-To: <200908041516.07086.david@atf4.com>
References:  <200908041516.07086.david@atf4.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> problems with pth.h
>
> In file included from extensions/pyexpat.c:5:
> /usr/local/include/python2.6/Python.h:168:17: error: pth.h: No such file or
> directory
> error: command 'cc' failed with exit status 1
> *** Error code 1
>
> sr/local/include -IModules/_sqlite -I/usr/local/include/python2.6 -c
> _sqlite/cache.c -o
> build/temp.freebsd-7.2-RELEASE-p2-amd64-2.6/_sqlite/cache.o In file
> included from _sqlite/cache.h:26,
>                  from _sqlite/cache.c:24:
> /usr/local/include/python2.6/Python.h:168:17: error: pth.h: No such file or
> directory
> error: command 'cc' failed with exit status 1
> *** Error code 1
>
> cc -DNDEBUG -O2 -fno-strict-aliasing -pipe -D__wchar_t=wchar_t -
> DTHREAD_STACK_SIZE=0x100000 -O2 -fno-strict-aliasing -pipe -fPIC -
> DMODULE_NAME="sqlite3" -I/usr/local/include -IModules/_sqlite -
> I/usr/local/include/python2.6 -c _sqlite/cache.c -o build/temp.freebsd-7.2-
> RELEASE-p2-amd64-2.6/_sqlite/cache.o
> In file included from _sqlite/cache.h:26,
>                  from _sqlite/cache.c:24:
> /usr/local/include/python2.6/Python.h:168:17: error: pth.h: No such file or
> directory
> error: command 'cc' failed with exit status 1
> *** Error code 1
>
> Stop in /usr/ports/databases/py-sqlite3.
> *** Error code 1
>
> I tried compiling /usr/ports/devel/pth but that failed with the same
> error!!!
>
> David
I finally resolved this problem set with:

dns1# ln -s /usr/local/include/pth/pth.h /usr/local/include/python2.6/
dns1# ln -s /usr/local/include/pth/pthread.h /usr/local/include/python2.6/

david




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