V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
MySQL 5.5 Community Server
MySQL 5.6 Community Server
Percona Configuration Wizard
XtraBackup 搭建主从复制
Great Sites on MySQL
Percona
MySQL Performance Blog
Severalnines
推荐管理工具
Sequel Pro
phpMyAdmin
推荐书目
MySQL Cookbook
MySQL 相关项目
MariaDB
Drizzle
参考文档
http://mysql-python.sourceforge.net/MySQLdb.html
li734462972
V2EX  ›  MySQL

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

  •  
  •   li734462972 · 2016-10-28 16:35:42 +08:00 · 6175 次点击
    这是一个创建于 2947 天前的主题,其中的信息可能已经有所发展或是发生改变。

    错误如下

    /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

    3 条回复    2020-01-17 12:32:52 +08:00
    gouchaoer
        1
    gouchaoer  
       2016-10-28 21:19:37 +08:00 via Android
    去看 docker file 啦
    Achiii
        2
    Achiii  
       2020-01-17 11:35:25 +08:00
    同遇到问题,咋解决,哭哭
    Achiii
        3
    Achiii  
       2020-01-17 12:32:52 +08:00
    最后重新编译 php 了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2645 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 04:39 · PVG 12:39 · LAX 20:39 · JFK 23:39
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.