thanks for reply
I've just find an issue here:  
http://code.google.com/p/modwsgi/issues/detail?id=111
the solution is the same.

On Mar 13, 7:22 pm, Graham Dumpleton <[email protected]>
wrote:
> On Mar 13, 10:12 pm, xlambda <[email protected]> wrote:
>
>
>
> > I've got the following errors when compiling mod_wsgi in freebsd
>
> > /home/apache/bin/apxs -c -I/usr/local/Python-2.4/include/python2.4 -
> > DNDEBUG -DTHREAD_STACK_SIZE=0x100000  mod_wsgi.c -L/usr/local/
> > Python-2.4/lib/python2.4/config -lpython2.4 -lutil
> > /home/apache-2.0.63/build/libtool --silent --mode=compile gcc -prefer-
> > pic  -DAP_HAVE_DESIGNATED_INITIALIZER -D_REENTRANT -D_THREAD_SAFE -g -
> > O2 -I/home/apache-2.0.63/include  -I/home/apache-2.0.63/include   -I/
> > home/apache-2.0.63/include -I/usr/local/include -I/usr/local/
> > Python-2.4/include/python2.4 -DNDEBUG -DTHREAD_STACK_SIZE=0x100000  -c
> > -o mod_wsgi.lo mod_wsgi.c && touch mod_wsgi.slo
> > mod_wsgi.c: In function `wsgi_hook_child_init':
> > mod_wsgi.c:10039: error: `WSGIProcessGroup' undeclared (first use in
> > this function)
> > mod_wsgi.c:10039: error: (Each undeclared identifier is reported only
> > once
> > mod_wsgi.c:10039: error: for each function it appears in.)
> > mod_wsgi.c:10039: error: `entries' undeclared (first use in this
> > function)
> > mod_wsgi.c:10040: error: `entry' undeclared (first use in this
> > function)
> > mod_wsgi.c:10047: error: syntax error before ')' token
> > apxs:Error: Command failed with rc=65536
> > .
> > *** Error code 1
>
> > the os is   5.4-RELEASE-p6 FreeBSD 5.4-RELEASE-p6
> > and gcc is    gcc (GCC) 3.4.2 [FreeBSD]
>
> > any suggestions? thx in front
>
> Your version of Apache/APR has not been compiled with threading
> support built into the APR library. Thus daemon mode is not available.
>
> Still not sure why FreeBSD systems don't trust there own thread
> libraries so as to build Apache or at least the APR it uses, with
> threading support.
>
> Unfortunately there was a slight stuff in mod_wsgi 2.3 code for this
> case of Apache 2.X, but not threaded APR.
>
> You need to apply the following patch to get it to compile.
>
> Index: mod_wsgi.c
> ===================================================================
> --- mod_wsgi.c  (revision 1030)
> +++ mod_wsgi.c  (revision 1029)
> @@ -10036,7 +10036,6 @@
>
>  static void wsgi_hook_child_init(apr_pool_t *p, server_rec *s)
>  {
> -#if defined(MOD_WSGI_WITH_DAEMONS)
>      WSGIProcessGroup *entries = NULL;
>      WSGIProcessGroup *entry = NULL;
>
> @@ -10054,7 +10053,6 @@
>              entry->listener_fd = -1;
>          }
>      }
> -#endif
>
>      /* Setup Python in Apache worker processes. */
>
> Graham
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to