Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 06 Apr 2013 22:23:59 -0700
From:      Douglas Thrift <douglas@douglasthrift.net>
To:        Jaret Bartsch <jaretbartsch@yahoo.ca>
Cc:        freebsd-apache@freebsd.org, freebsd-python@freebsd.org
Subject:   Re: mod_wsgi Port FreeBSD (Broken)
Message-ID:  <516102EF.4090102@douglasthrift.net>
In-Reply-To: <1365299328.57643.YahooMailNeo@web125804.mail.ne1.yahoo.com>
References:  <1365299328.57643.YahooMailNeo@web125804.mail.ne1.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@douglasthrift.net>
<http://douglasthrift.net/>;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?516102EF.4090102>