From owner-freebsd-python@FreeBSD.ORG Sun Apr 7 20:13:23 2013 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 518446A9 for ; Sun, 7 Apr 2013 20:13:23 +0000 (UTC) (envelope-from ohauer@gmx.de) Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by mx1.freebsd.org (Postfix) with ESMTP id D64FEE29 for ; Sun, 7 Apr 2013 20:13:22 +0000 (UTC) Received: from mailout-de.gmx.net ([10.1.76.19]) by mrigmx.server.lan (mrigmx002) with ESMTP (Nemesis) id 0LnEix-1V5PiD0F9p-00hQwx for ; Sun, 07 Apr 2013 22:13:16 +0200 Received: (qmail invoked by alias); 07 Apr 2013 20:13:15 -0000 Received: from p578be941.dip0.t-ipconnect.de (EHLO [192.168.0.100]) [87.139.233.65] by mail.gmx.net (mp019) with SMTP; 07 Apr 2013 22:13:15 +0200 X-Authenticated: #1956535 X-Provags-ID: V01U2FsdGVkX1/U2+4GNmvUux/NoR2lDCtFHmtimEbOCvhhfLe+HX rD6LrLIjaJ9ya9 Message-ID: <5161D366.8040406@gmx.de> Date: Sun, 07 Apr 2013 22:13:26 +0200 From: olli hauer User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 MIME-Version: 1.0 To: Jaret Bartsch Subject: Re: mod_wsgi Port FreeBSD (Broken) References: <1365299328.57643.YahooMailNeo@web125804.mail.ne1.yahoo.com> <516102EF.4090102@douglasthrift.net> In-Reply-To: X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Cc: Douglas Thrift , freebsd-apache@freebsd.org, Li-Wen Hsu , freebsd-python@freebsd.org X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Apr 2013 20:13:23 -0000 On 2013-04-07 18:58, Li-Wen Hsu wrote: > On Sun, Apr 7, 2013 at 1:23 PM, Douglas Thrift > 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