apache 2.0.28+php4.0.6编译出错?

apache 2.0.28+php4.0.6编译出错?

apache_2_0_28+php406已dso方式编译,结果编译php406时出错了,
编译过程如下
apache:
--------
./configure --prefix=/usr/local/httpd --enables-mods-shared=all
make;make install
成功编译
php406:
-------------------
./configure --with-mysql=/usr/local/mysql(我的mysql安装目录)
--with-apxs2=/usr/local/httpd/bin/apxs
--enable-track-vars
make
结果在此出现错误
sapi_apache2.c: In function `php_input_filter':
sapi_apache2.c:248: warning: passing arg 4 of `ap_get_brigade' from incompatible pointer type
sapi_apache2.c: In function `php_output_filter':
sapi_apache2.c:337: too few arguments to function `ap_save_brigade'
sapi_apache2.c: In function `php_register_hook':
sapi_apache2.c:443: warning: passing arg 2 of `ap_register_input_filter' from incompatible pointer type
make[3]: *** [sapi_apache2.lo] Error 1
make[3]: Leaving directory `/root/php-4.0.6/sapi/apache2filter'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/php-4.0.6/sapi/apache2filter'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/php-4.0.6/sapi'
make: *** [all-recursive] Error 1

无法继续,我在国外的一些论坛上见到了此问题的贴子,但没有解决方法,
请问有没有高手兄知道怎么解决?谢谢!!!      
好像apache2和php的编译是有一些问题。。。