mod_wsgi Port FreeBSD (Broken)
Douglas Thrift
douglas at douglasthrift.net
Sun Apr 7 05:24:05 UTC 2013
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
<douglas at douglasthrift.net>
<http://douglasthrift.net/>
More information about the freebsd-python
mailing list