Apache2.0.39(40)+PHP4.2.1/4.2.2在make时错误的解决方法

[入库:2005年9月21日] [更新:2007年3月24日]

本文简介:


作者:fei
到4.2.2也还没改过来--会出现php_functions.c:93: parse error 
make[3]: *** [php_functions.lo] Error 1 
make[3]: Leaving directory `/root/php-4.2.2/sapi/apache2filter' 
make[2]: *** [all-recursive] Error 1 
make[2]: Leaving directory `/root/php-4.2.2/sapi/apache2filter' 
make[1]: *** [all-recursive] Error 1 
make[1]: Leaving directory `/root/php-4.2.2/sapi' 
make: *** [all-recursive] Error 1 
1.configure 
2.改php源码的sapi/apache2filter/php_functions.c的93行在MODULE前面加上AP_ 
3.make 
4.make install 
5.libtool --finish --不做也行-少做这步可能会有段错误。--那时再试试--。 
2.0.40的解决办法--除了上面的还要把sapi/apache2filter/sapi_apache2.c的534和535行改成 
ap_register_output_filter("PHP", php_output_filter, NULL, AP_FTYPE_RESOURCE); 
ap_register_input_filter("PHP", php_input_filter, NULL, AP_FTYPE_RESOURCE); 
就是加NULL即可。

 zhqh1 回复于:2003-01-17 16:54:33
在哪个LINUX版本下出现的错误

 南非蜘蛛 回复于:2003-01-17 17:09:59
我想这个问题是针对apache这个版本的,不是针对平台,在freebsd,linux,solaris都有可能出现这个问题

 wangbin 回复于:2003-06-26 06:59:24
谢谢!我也遇到了!

本文关键:Apache2.0.39(40)+PHP4.2.1/4.2.2在make时错误的解决方法
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top