Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 07 Apr 2013 22:13:26 +0200
From:      olli hauer <ohauer@gmx.de>
To:        Jaret Bartsch <jaretbartsch@yahoo.ca>
Cc:        Douglas Thrift <douglas@douglasthrift.net>, freebsd-apache@freebsd.org, Li-Wen Hsu <lwhsu@FreeBSD.org>, freebsd-python@freebsd.org
Subject:   Re: mod_wsgi Port FreeBSD (Broken)
Message-ID:  <5161D366.8040406@gmx.de>
In-Reply-To: <CAKBkRUz5sQXi1Rch_=iXwj99qrzvSmpjzkp%2Bkn6_WoJKJwpoFw@mail.gmail.com>
References:  <1365299328.57643.YahooMailNeo@web125804.mail.ne1.yahoo.com> <516102EF.4090102@douglasthrift.net> <CAKBkRUz5sQXi1Rch_=iXwj99qrzvSmpjzkp%2Bkn6_WoJKJwpoFw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2013-04-07 18:58, Li-Wen Hsu wrote:
> On Sun, Apr 7, 2013 at 1:23 PM, Douglas Thrift
> <douglas@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



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