Re: 2 - Compiling PHP4.0.6 in Linux 2.4.4 --> sapi_apache.c gives an error
| From: | Dan Roozemond | Date: | Mon, 01 Oct 2001 07:40:32 +0000 |
| Subject: | Re: 2 - Compiling PHP4.0.6 in Linux 2.4.4 --> sapi_apache.c gives an error | ||
| References: | 1 2 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-4460@lists.php.net to get a copy of this message | ||
"Yasuo Ohgaki" <yasuo_ohgaki@yahoo.com> wrote in message
news:3BB59301.10407@yahoo.com...
> I think you are better to use dev version of PHP for Apache2.
> Try 4.0.8-dev.
ok, i tried 4.0.8 from sat morning 7.35 (php4-200109290735), and had to
change the configure command a bit, you can find the new one attached.
I got one NEW error (wow!):
----------------------------------
Making all in session
make[2]: Entering directory `/src_dl/php-4.0.8/ext/session'
make[3]: Entering directory `/src_dl/php-4.0.8/ext/session'
/bin/sh /src_dl/php-4.0.8/libtool --mode=compile
gcc -I. -I/src_dl/php-4.0.8/ext/session -I/src_dl/php-4.0.8/main -I/src_dl/
php-4.0.8 -I/usr/local/httpd/include -I/src_dl/php-4.0.8/Zend -I/usr/include
/freetype2/freetype -I/usr/include/imap -I/src_dl/php-4.0.8/ext/mysql/libmys
ql -I/src_dl/php-4.0.8/ext/xml/expat -D_REENTRANT -I/src_dl/php-4.0.8/TSRM
-DTHREAD=1 -g -O2 -pthread -Wall -DZTS -prefer-pic -c mod_mm.c
gcc -I. -I/src_dl/php-4.0.8/ext/session -I/src_dl/php-4.0.8/main -I/src_dl/p
hp-4.0.8 -I/usr/local/httpd/include -I/src_dl/php-4.0.8/Zend -I/usr/include/
freetype2/freetype -I/usr/include/imap -I/src_dl/php-4.0.8/ext/mysql/libmysq
l -I/src_dl/php-4.0.8/ext/xml/expat -D_REENTRANT -I/src_dl/php-4.0.8/TSRM -D
THREAD=1 -g -O2 -pthread -Wall -DZTS -c mod_mm.c -fPIC -DPIC -o mod_mm.lo
mod_mm.c:35: #error mm is not thread-safe
make[3]: *** [mod_mm.lo] Error 1
make[3]: Leaving directory `/src_dl/php-4.0.8/ext/session'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/src_dl/php-4.0.8/ext/session'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/src_dl/php-4.0.8/ext'
make: *** [all-recursive] Error 1
----------------------------------
I "fixed" that (just deleted the lines that generated the error....), and
then i got my old errormessage back:
----------------------------------
Making all in apache2filter
make[2]: Entering directory `/src_dl/php-4.0.8/sapi/apache2filter'
make[3]: Entering directory `/src_dl/php-4.0.8/sapi/apache2filter'
/bin/sh /src_dl/php-4.0.8/libtool --mode=compile
gcc -I. -I/src_dl/php-4.0.8/sapi/apache2filter -I/src_dl/php-4.0.8/main -I/
src_dl/php-4.0.8 -I/usr/local/httpd/include -I/src_dl/php-4.0.8/Zend -I/usr/
include/freetype2/freetype -I/usr/include/imap -I/src_dl/php-4.0.8/ext/mysql
/libmysql -I/src_dl/php-4.0.8/ext/xml/expat -D_REENTRANT -I/src_dl/php-4.0.
8/TSRM -DTHREAD=1 -g -O2 -pthread -Wall -DZTS -prefer-pic -c sapi_apache2.c
gcc -I. -I/src_dl/php-4.0.8/sapi/apache2filter -I/src_dl/php-4.0.8/main -I/s
rc_dl/php-4.0.8 -I/usr/local/httpd/include -I/src_dl/php-4.0.8/Zend -I/usr/i
nclude/freetype2/freetype -I/usr/include/imap -I/src_dl/php-4.0.8/ext/mysql/
libmysql -I/src_dl/php-4.0.8/ext/xml/expat -D_REENTRANT -I/src_dl/php-4.0.8/
TSRM -DTHREAD=1 -g -O2 -pthread -Wall -DZTS -c
sapi_apache2.c -fPIC -DPIC -o sapi_apache2.lo
In file included from /usr/local/httpd/include/apr_buckets.h:61,
from /usr/local/httpd/include/util_filter.h:59,
from sapi_apache2.c:33:
/usr/local/httpd/include/apr_general.h:115: warning: `XtOffsetOf' redefined
/src_dl/php-4.0.8/main/php.h:345: warning: this is the location of the
previous definition
sapi_apache2.c: In function `php_input_filter':
sapi_apache2.c:252: too many arguments to function `ap_get_brigade'
sapi_apache2.c:259: too many arguments to function `ap_get_brigade'
sapi_apache2.c: In function `php_output_filter':
sapi_apache2.c:346: too many arguments to function `ap_save_brigade'
sapi_apache2.c: In function `php_register_hook':
sapi_apache2.c:468: warning: passing arg 2 of `ap_register_input_filter'
from incompatible pointer type
make[3]: *** [sapi_apache2.lo] Error 1
make[3]: Leaving directory `/src_dl/php-4.0.8/sapi/apache2filter'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/src_dl/php-4.0.8/sapi/apache2filter'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/src_dl/php-4.0.8/sapi'
make: *** [all-recursive] Error 1
----------------------------------
Please help me!!!
kind regards
dan roozemond