错误如下
/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