On Wed, Sep 07, 2005 at 11:00:07PM -0400, Gregory (Grisha) Trubetskoy wrote:
> Anybody got FreeBSD? I'm getting this. This is an old and possibly 
> misconfigured system, so the problem could be on my end.
> 
> FreeBSD 4.9
> apache 2.0.53 (from ports)
> python 2.3.3
...
> -I/home/grisha/src/tmp/mod_python-3.2.1b/src/include 
> -I/usr/local/include/apache2 -I/usr/local/include/python2.3  -c -o 
> mod_python.lo mod_python.c && touch mod_python.slo
> mod_python.c:34: syntax error before `*'
> mod_python.c:34: warning: data definition has no type or storage class
> mod_python.c: In function `python_cleanup':
> mod_python.c:238: warning: passing arg 1 of `free' discards qualifiers from 
> pointer target type
> mod_python.c: In function `python_init':
> mod_python.c:517: `APR_THREAD_MUTEX_UNNESTED' undeclared (first use in this 

On older releases of FreeBSD, APR is not build with threads support, 
which is probably the failure here.

To work around this in mod_python you can use:

#if APR_HAS_THREADS

...

#endif

around all code dependant on APR threads support.

Regards,

joe

Reply via email to