mod_wsgi Port FreeBSD (Broken)

olli hauer ohauer at gmx.de
Sun Apr 7 20:13:23 UTC 2013


On 2013-04-07 18:58, Li-Wen Hsu wrote:
> On Sun, Apr 7, 2013 at 1:23 PM, Douglas Thrift
> <douglas at douglasthrift.net> wrote:
>> On 4/6/2013 6:48 PM, Jaret Bartsch wrote:
> 
> [...]
> 
>>> In file included from mod_wsgi.c:142:
>>> /usr/local/include/python2.7/Python.h:166:17: error: pth.h: No such file
>>> or directory
>>> apxs:Error: Command failed with rc=65536
>>> .
>>> *** [mod_wsgi.la] Error code 1
>>> 1 error
>>> *** [do-build] Error code 1
>>>
>>> Stop in /usr/ports/www/mod_wsgi3.
> 
> [...]
> 
>> Hello,
>>
>> I'm not sure what's going on, but this seems like a problem with how
>> Python and/or Apache are configured. I've CCed the FreeBSD mailing lists
>> for those.
>>
> 
> It looks like that PTH option is enabled when building Python.  I can
> build mod_wsgi{,3} correctly with default options of Python.  But I
> don't have time to check what's going wrong currently.  Is there
> anybody can help get into this?
> 


Just a guess ...

- python was build with the options "THREADS + PTH" and PTH was removed later
- it's a FreeBSD current machine with BSD_GREP enabled.
  (I have some reports where apache / apache module build fails with BSD_GREP on current.)

To get some more information please send use the output of the following script
http://people.freebsd.org/~ohauer/scripts/check_python_pth.sh

--
olli


More information about the freebsd-python mailing list