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 JK_PREFORK, which gets set either when you are compiling
against Apache 1.3, or if you use --enable-prefork.
I committed these changes this morning in r543093.
Regards,
Rainer
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 --mode=compile gcc
-I/usr/include/apache2-prefork -g -O2 -O2 -fsigned-char
-fmessage-length=0 -Wall -fPIC -Wall -fno-strict-aliasing
-D_LARGEFILE_SOURCE -g -Wmissing-prototypes -Wstrict-prototypes
-Wmissing-declarations -pthread -DHAVE_APR
-I/usr/include/apache2-prefork -I/usr/include/apache2-prefork -g -O2
-DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE
-D_SVID_SOURCE -D_GNU_SOURCE -DAP_DEBUG -I /usr/lib/java/include -I
/usr/lib/java/include/ -c jk_ajp12_worker.c -o jk_ajp12_worker.lo
/bin/sh /usr/share/apache2/build/libtool --silent --mode=compile gcc
-I/usr/include/apache2-prefork -g -O2 -O2 -fsigned-char
-fmessage-length=0 -Wall -fPIC -Wall -fno-strict-aliasing
-D_LARGEFILE_SOURCE -g -Wmissing-prototypes -Wstrict-prototypes
-Wmissing-declarations -pthread -DHAVE_APR
-I/usr/include/apache2-prefork -I/usr/include/apache2-prefork -g -O2
-DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE
-D_SVID_SOURCE -D_GNU_SOURCE -DAP_DEBUG -I /usr/lib/java/include -I
/usr/lib/java/include/ -c jk_connect.c -o jk_connect.lo
2007/5/31, Henri Gomez <[EMAIL PROTECTED]>:
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 /usr/share/apache2/build/libtool --silent --mode=compile gcc
-I/usr/include/apache2-worker -g -O2 -O2 -fsigned-char
-fmessage-length=0 -Wall -fPIC -Wall -fno-strict-aliasing
-D_LARGEFILE_SOURCE -g -Wmissing-prototypes -Wstrict-prototypes
-Wmissing-declarations -pthread -DHAVE_APR
-I/usr/include/apache2-worker -I/usr/include/apache2-worker -g -O2
-DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE
-D_SVID_SOURCE -D_GNU_SOURCE -DAP_DEBUG -I /usr/lib/java/include -I
/usr/lib/java/include/ -c jk_ajp12_worker.c -o jk_ajp12_worker.lo
/bin/sh /usr/share/apache2/build/libtool --silent --mode=compile gcc
-I/usr/include/apache2-worker -g -O2 -O2 -fsigned-char
-fmessage-length=0 -Wall -fPIC -Wall -fno-strict-aliasing
-D_LARGEFILE_SOURCE -g -Wmissing-prototypes -Wstrict-prototypes
-Wmissing-declarations -pthread -DHAVE_APR
-I/usr/include/apache2-worker -I/usr/include/apache2-worker -g -O2
-DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE
-D_SVID_SOURCE -D_GNU_SOURCE -DAP_DEBUG -I /usr/lib/java/include -I
/usr/lib/java/include/ -c jk_connect.c -o jk_connect.lo
2007/5/31, Rainer Jung <[EMAIL PROTECTED]>:
> 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 make a difference on i5 too. Good.
>
> Regards,
>
> Rainer
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]