安装PHP5出现的错误!!!

前面的都安装顺利,到make出现的错误,请高手解决!
[root@localhost php-5.2.0]# make
/bin/sh /web/php-5.2.0/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/mysqli/ -I/web/php-5.2.0/ext/mysqli/ -DPHP_ATOM_INC -I/web/php-5.2.0/include -I/web/php-5.2.0/main -I/web/php-5.2.0 -I/usr/local/include/libxml2 -I/usr/local/zlib/include -I/web/php-5.2.0/ext/date/lib -I/web/php-5.2.0/ext/mbstring/oniguruma -I/web/php-5.2.0/ext/mbstring/libmbfl -I/web/php-5.2.0/ext/mbstring/libmbfl/mbfl -I/usr/local/mysql/include/mysql -I/web/php-5.2.0/TSRM -I/web/php-5.2.0/Zend -I/usr/include -g -O2 -prefer-non-pic -c /web/php-5.2.0/ext/mysqli/mysqli_api.c -o ext/mysqli/mysqli_api.lo
/web/php-5.2.0/ext/mysqli/mysqli_api.c: In function 'zif_mysqli_stmt_bind_param':
/web/php-5.2.0/ext/mysqli/mysqli_api.c:144: error: 'gptr' undeclared (first use in this function)
/web/php-5.2.0/ext/mysqli/mysqli_api.c:144: error: (Each undeclared identifier is reported only once
/web/php-5.2.0/ext/mysqli/mysqli_api.c:144: error: for each function it appears in.)
/web/php-5.2.0/ext/mysqli/mysqli_api.c: In function 'zif_mysqli_stmt_execute':
/web/php-5.2.0/ext/mysqli/mysqli_api.c:603: error: 'gptr' undeclared (first use in this function)
make: *** [ext/mysqli/mysqli_api.lo] 错误 1