php编译curl出错,紧急求助高手门!

php编译curl出错,紧急求助高手门!

源码php编译curl出错, 系统环境是linux下的AS4.2,始终无法解决,请高手指点

php-5.1.2/ext/curl/interface.c: In function `zm_startup_curl':
php-5.1.2/ext/curl/interface.c:220: error: `CURLOPT_FTPASCII' undeclared (first use in this function)
php-5.1.2/ext/curl/interface.c:220: error: (Each undeclared identifier is reported only once
php-5.1.2/ext/curl/interface.c:220: error: for each function it appears in.)
php-5.1.2/ext/curl/interface.c:260: error: `CURLOPT_PASSWDFUNCTION' undeclared (first use in this function)
make: *** [ext/curl/interface.lo] 错误 1


ext/curl/interface.c:220: error: `CURLOPT_FTPASCII' undeclared (first use in this function)
ext/curl/interface.c:220: error: (Each undeclared identifier is reported only once
ext/curl/interface.c:220: error: for each function it appears in.)
/ext/curl/interface.c:260: error: `CURLOPT_PASSWDFUNCTION' undeclared (first use in this function)
make: *** [ext/curl/interface.lo] 错误 1

.............................................................
偶也知道make源码时候一些代码路径会出错,这个问题在gd编译时修改gd_png.c解决,
这个问题也尝试修改了 interface.c中第92行的"#include "php_curl.h"修改路径为"php-5.1.2/ext/curl/php_curl.h"
这时候出错信息少了4个 ,还要修改那些呢? 函数出错的问题小弟不太懂,C语言学的差,唉
下面是修改interface.c后编译的出错信息
php-5.1.2/ext/curl/interface.c: In function `zm_startup_curl':
ext/curl/interface.c:220: error: `CURLOPT_FTPASCII' undeclared (first use in this function)
ext/curl/interface.c:220: error: (Each undeclared identifier is reported only once
ext/curl/interface.c:220: error: for each function it appears in.)
/ext/curl/interface.c:260: error: `CURLOPT_PASSWDFUNCTION' undeclared (first use in this function)
make: *** [ext/curl/interface.lo] 错误 1

........................

备注: 以上是curl-7.16.0 ,从curl官方网址下的,用curl-7.14.0依然问题依旧,应该属于php问题,感觉就像gd库编译libpng老是gd_png.c出错一样,结果还是gd库自己文件出错,另php版本已经是最新php-5.2.0.tar.gz了,
没有人跟帖么,顶,看来没有人碰到这个问题
顶到有高手回帖为止^_^
应该是PHP与CURL的板本兼容问题,我用PHP-5.1.0与curl-7.14.0是OK的.