From owner-freebsd-python@FreeBSD.ORG Sun Apr 7 05:24:05 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 A98DE85F; Sun, 7 Apr 2013 05:24:05 +0000 (UTC) (envelope-from douglas@douglasthrift.net) Received: from slowhand.douglasthrift.net (slowhand.douglasthrift.net [69.55.236.40]) by mx1.freebsd.org (Postfix) with ESMTP id 9142A36B; Sun, 7 Apr 2013 05:24:05 +0000 (UTC) Received: from [192.168.3.128] (laguna.douglasthrift.net [72.194.217.88]) (authenticated bits=0) by slowhand.douglasthrift.net (8.14.6/8.14.5) with ESMTP id r375NsSf085603 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NOT); Sat, 6 Apr 2013 22:23:55 -0700 (PDT) (envelope-from douglas@douglasthrift.net) DomainKey-Signature: a=rsa-sha1; s=dt-2007050501; d=douglasthrift.net; c=nofws; q=dns; h=message-id:date:from:user-agent:mime-version:to:cc:subject: references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding; b=KWQfBqRejlfi5NuPqaugNMA4/Y/ow6S73ygm1K2Qpwpy7zYnGVHkI64cUroOrTZZs ZTIgRFm4V2TF7m/ZymLHw== Message-ID: <516102EF.4090102@douglasthrift.net> Date: Sat, 06 Apr 2013 22:23:59 -0700 From: Douglas Thrift User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; 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> In-Reply-To: <1365299328.57643.YahooMailNeo@web125804.mail.ne1.yahoo.com> X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-apache@freebsd.org, 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 05:24:05 -0000 On 4/6/2013 6:48 PM, Jaret Bartsch wrote: > Hi there. I have been for a couple days now trying to get mod_wsgi / > mod_wsgi3 working in FreeBSD, but it will not complete the build and > install. I checked to verify pth.h did in fact exist, but it doesn't > exist where the port is looking for it and even if you symlink it to the > expected location, the second output is yet another problem. Could you > perhaps look into this? Thanks. > > First output: > ======================= ATTENTION! ====================== > > If you want to use daemon mode you will need to make sure > Apache and APR include thread support. > > ========================================================= > ===> License AL2 accepted by the user > ===> Fetching all distfiles required by ap22-mod_wsgi-3.4 for building > ===> Extracting for ap22-mod_wsgi-3.4 > => SHA256 Checksum OK for mod_wsgi-3.4.tar.gz. > ===> Patching for ap22-mod_wsgi-3.4 > ===> ap22-mod_wsgi-3.4 depends on file: /usr/local/bin/python2.7 - found > ===> ap22-mod_wsgi-3.4 depends on file: /usr/local/sbin/apxs - found > ===> Configuring for ap22-mod_wsgi-3.4 > checking Apache version... 2.2.24 > configure: creating ./config.status > config.status: creating Makefile > ===> Building for ap22-mod_wsgi-3.4 > /usr/local/sbin/apxs -c -I/usr/local/include/python2.7 -DNDEBUG -Wc,-O2 > -Wc,-pipe -Wc,-fno-strict-aliasing mod_wsgi.c -L/usr/local/lib > -L/usr/local/lib/python2.7/config -lpython2.7 -lpth -lutil -lm > /usr/local/share/apr/build-1/libtool --silent --mode=compile cc > -prefer-pic -O2 -pipe -I/usr/local/include -fno-strict-aliasing -g > -I/usr/local/include/apache22 -I/usr/local/include/apr-1 > -I/usr/local/include/apr-1 -I/usr/local/include > -I/usr/local/include/db42 -O2 -pipe -fno-strict-aliasing > -I/usr/local/include/python2.7 -DNDEBUG -c -o mod_wsgi.lo mod_wsgi.c && > touch mod_wsgi.slo > 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. > > > > Second output: > ======================= ATTENTION! ====================== > > If you want to use daemon mode you will need to make sure > Apache and APR include thread support. > > ========================================================= > ===> License AL2 accepted by the user > ===> Fetching all distfiles required by ap22-mod_wsgi-3.4 for building > ===> Extracting for ap22-mod_wsgi-3.4 > => SHA256 Checksum OK for mod_wsgi-3.4.tar.gz. > ===> Patching for ap22-mod_wsgi-3.4 > ===> ap22-mod_wsgi-3.4 depends on file: /usr/local/bin/python2.7 - found > ===> ap22-mod_wsgi-3.4 depends on file: /usr/local/sbin/apxs - found > ===> Configuring for ap22-mod_wsgi-3.4 > checking Apache version... 2.2.24 > configure: creating ./config.status > config.status: creating Makefile > ===> Building for ap22-mod_wsgi-3.4 > /usr/local/sbin/apxs -c -I/usr/local/include/python2.7 -DNDEBUG -Wc,-O2 > -Wc,-pipe -Wc,-fno-strict-aliasing mod_wsgi.c -L/usr/local/lib > -L/usr/local/lib/python2.7/config -lpython2.7 -lpth -lutil -lm > /usr/local/share/apr/build-1/libtool --silent --mode=compile cc > -prefer-pic -O2 -pipe -I/usr/local/include -fno-strict-aliasing -g > -I/usr/local/include/apache22 -I/usr/local/include/apr-1 > -I/usr/local/include/apr-1 -I/usr/local/include > -I/usr/local/include/db42 -O2 -pipe -fno-strict-aliasing > -I/usr/local/include/python2.7 -DNDEBUG -c -o mod_wsgi.lo mod_wsgi.c && > touch mod_wsgi.slo > mod_wsgi.c: In function 'wsgi_discard_output': > mod_wsgi.c:12318: error: 'apr_bucket_type_t' has no member named 'pth_read' > mod_wsgi.c: In function 'wsgi_execute_remote': > mod_wsgi.c:12835: error: 'apr_bucket_type_t' has no member named 'pth_read' > 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. -- Douglas William Thrift