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

  • Post author:
  • Post category:php

错误如下

/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


版权声明:本文为weixin_39886205原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。