Re: mod_jk build: threading detection broken

2007-05-31 Thread Rainer Jung
Henri Gomez wrote: BTW, configure fail since some release and can't works with apx2-mpm (The SLES apxs2 for mpm mode). I located the problem in configure and will report it later. Yes, let me know. BTW, on i5/OS, the -D_REENTRANT is forced in module compilation. OK, so my proposal wouldn't

Re: mod_jk build: threading detection broken

2007-05-31 Thread Henri Gomez
The SLES 9 problem with apxs-worker is fixed (bad configuration). I just check the configure and build and -D_REENTRANT is set : powerpc32 ./configure --with-apxs=/usr/sbin/apxs2-worker make make[1]: Entering directory `/root/tomcat-connectors-1.2.23-src/native/common' /bin/sh

Re: mod_jk build: threading detection broken

2007-05-31 Thread Henri Gomez
BTW, the same configure with the apxs-prefork also set the -D_REENTRANT on SLES 9 ;( alaska:~/tomcat-connectors-1.2.23-src/native # make Making all in common make[1]: Entering directory `/root/tomcat-connectors-1.2.23-src/native/common' /bin/sh /usr/share/apache2/build/libtool --silent

Re: mod_jk build: threading detection broken

2007-05-31 Thread Rainer Jung
Hi Henri, Henri Gomez wrote: BTW, the same configure with the apxs-prefork also set the -D_REENTRANT on SLES 9 ;( Yes, those flags all come from apxs. The difference with my new commit is, that we don't use them to decide, if we should synchronize between threads. Now we only use

mod_jk build: threading detection broken

2007-05-30 Thread Rainer Jung
Hi, this while mail only concerns non Win and non Netware platforms. Our detection of multi-threading during configure for mod_jk is broken. We rely on the fact, that APR set -D_REENTRANT during build for multi-threaded APR. But in fact - APR doesn't set it for various platforms including

Re: mod_jk build: threading detection broken

2007-05-30 Thread Mladen Turk
Rainer Jung wrote: I suggest, that we build against httpd 2.x always thread-safe, at least unless the existing flag -enable-prefork is used and document this behaviour. +1 Regards, Mladen. - To unsubscribe, e-mail:

Re: mod_jk build: threading detection broken

2007-05-30 Thread William A. Rowe, Jr.
Rainer Jung wrote: I checked installed Apache httpd to find out, how we could detect the threading model of the apache httpd against we compile. Unfortunately we can only find out the name of the MPM, but not (at least not in a robust way) if it is threaded or not. ap_mpm_query (ap_mpm.h)

Re: mod_jk build: threading detection broken

2007-05-30 Thread Henri Gomez
When I build jk on SLES Linux, I used to build it for the threaded (mpm) and for the not-threaded (prefork) apache 2.x version. BTW, configure fail since some release and can't works with apx2-mpm (The SLES apxs2 for mpm mode). I located the problem in configure and will report it later. BTW,