从 FreeBSD 中的端口安装 php5-pdo_mysql 时出现“功能参数过多”错误

从 FreeBSD 中的端口安装 php5-pdo_mysql 时出现“功能参数过多”错误

我在 FreeBSD 环境中安装 php5-pdo_mysql 时遇到问题。每次我尝试执行 /usr/ports/databases/php5-pdo_mysql make install 时,控制台都会出现以下错误:

/usr/ports/databases/php5-pdo_mysql/work/php-5.3.5/ext/pdo_mysql/mysql_driver.c:
501: error: too many arguments to function 'pdo_mysql_globals.dbg->m->func_leave'

/usr/ports/databases/php5-pdo_mysql/work/php-5.3.5/ext/pdo_mysql/mysql_driver.c:
In function 'pdo_mysql_check_liveness':
/usr/ports/databases/php5-pdo_mysql/work/php-5.3.5/ext/pdo_mysql/mysql_driver.c:
519: error: too many arguments to function 'pdo_mysql_globals.dbg->m->func_leave'

/usr/ports/databases/php5-pdo_mysql/work/php-5.3.5/ext/pdo_mysql/mysql_driver.c:
534: error: too many arguments to function 'pdo_mysql_globals.dbg->m->func_leave'

/usr/ports/databases/php5-pdo_mysql/work/php-5.3.5/ext/pdo_mysql/mysql_driver.c: 
In function 'pdo_mysql_handle_factory':

/usr/ports/databases/php5-pdo_mysql/work/php-5.3.5/ext/pdo_mysql/mysql_driver.c:
763: error: too many arguments to function 'pdo_mysql_globals.dbg->m->func_leave'

*** Error code 1
1 error
*** Error code 1

Stop in /usr/ports/databases/php5-pdo_mysql.
*** Error code 1

Stop in /usr/ports/databases/php5-pdo_mysql.

我的php版本是5.3.3,pear 1.9.1。我尝试将 php5 的端口树升级到 5.3.5 但失败了。说我要先更新apache22,但后来更新apache22也失败了。我现在应该怎么做?

答案1

结合评论中留下的片段亚西尔·阿尔萨努卡耶夫用户3927

第一次尝试

cd /usr/ports && make clean
cd /usr/ports/ports-mgmt/portsnap && make install clean
portsnap fetch update

然后也许使用 升级 Apache 和 PHP5 make deinstall reinstall

最后,重新php5-pdo_mysql安装

cd /usr/ports/databases/php5-pdo_mysql && make deinstall reinstall

相关内容