php7 编译 pdo_mysql 问题, [mysql_driver.lo] Error 1

2016-10-28 16:35:42 +08:00
 li734462972

错误如下

/usr/local/PDO_MYSQL-1.0.2/mysql_driver.c: In function ‘ pdo_mysql_fetch_error_func ’: /usr/local/PDO_MYSQL-1.0.2/mysql_driver.c:132: error: too many arguments to function ‘ add_next_index_string ’ /usr/local/PDO_MYSQL-1.0.2/mysql_driver.c: In function ‘ mysql_handle_preparer ’: /usr/local/PDO_MYSQL-1.0.2/mysql_driver.c:183: warning: passing argument 5 of ‘ pdo_parse_params ’ from incompatible pointer type /usr/local/php/include/php/ext/pdo/php_pdo_driver.h:678: note: expected ‘ size_t *’ but argument is of type ‘ int *’ /usr/local/PDO_MYSQL-1.0.2/mysql_driver.c:336:64: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2 /usr/local/PDO_MYSQL-1.0.2/mysql_driver.c: In function ‘ pdo_mysql_get_attribute ’: /usr/local/PDO_MYSQL-1.0.2/mysql_driver.c:336: error: ‘ ZVAL_STRING ’ undeclared (first use in this function) /usr/local/PDO_MYSQL-1.0.2/mysql_driver.c:336: error: (Each undeclared identifier is reported only once /usr/local/PDO_MYSQL-1.0.2/mysql_driver.c:336: error: for each function it appears in.) /usr/local/PDO_MYSQL-1.0.2/mysql_driver.c:340:73: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2 /usr/local/PDO_MYSQL-1.0.2/mysql_driver.c:344:71: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2 /usr/local/PDO_MYSQL-1.0.2/mysql_driver.c:351:37: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2 /usr/local/PDO_MYSQL-1.0.2/mysql_driver.c: At top level: /usr/local/PDO_MYSQL-1.0.2/mysql_driver.c:385: warning: initialization from incompatible pointer type /usr/local/PDO_MYSQL-1.0.2/mysql_driver.c:386: warning: initialization from incompatible pointer type /usr/local/PDO_MYSQL-1.0.2/mysql_driver.c:387: warning: initialization from incompatible pointer type /usr/local/PDO_MYSQL-1.0.2/mysql_driver.c:392: warning: initialization from incompatible pointer type /usr/local/PDO_MYSQL-1.0.2/mysql_driver.c: In function ‘ pdo_mysql_handle_factory ’: /usr/local/PDO_MYSQL-1.0.2/mysql_driver.c:492: warning: assignment from incompatible pointer type /usr/local/PDO_MYSQL-1.0.2/mysql_driver.c:502: warning: assignment from incompatible pointer type /usr/local/PDO_MYSQL-1.0.2/mysql_driver.c:512: warning: assignment from incompatible pointer type make: *** [mysql_driver.lo] Error 1

6165 次点击
所在节点    MySQL
3 条回复
gouchaoer
2016-10-28 21:19:37 +08:00
去看 docker file 啦
Achiii
2020-01-17 11:35:25 +08:00
同遇到问题,咋解决,哭哭
Achiii
2020-01-17 12:32:52 +08:00
最后重新编译 php 了

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/316236

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX