编译php5.2.5遇到Mysql的奇怪错误

Mysql版本是MySQL 4.1.0-alpha-log,出现如下错误:

ext/mysql/php_mysql.o(.text+0x300): In function zm_startup_mysql': /root/new_soft/php-5.2.5/ext/mysql/php_mysql.c:405: undefined reference tomysql_server_init’
ext/mysql/php_mysql.o(.text+0x31f): In function zm_shutdown_mysql': /root/new_soft/php-5.2.5/ext/mysql/php_mysql.c:426: undefined reference tomysql_server_end’
collect2: ld returned 1 exit status
make: * [sapi/cli/php] Error 1

在网上搜索了一下,没有找到合理的解释,5.2.4中有这样一个BUG,不过应该已经修补好了吧。难道是mysql版本的问题?