Board logo

标题: [求助] 多版本PHP7.3 安装membecached报错、不能安装memcached [打印本页]

作者: bit    时间: 2019-10-25 10:14     标题: 多版本PHP7.3 安装membecached报错、不能安装memcached

全新安装lanmp v3.3.7 然后安装多版本PHP 7.3.x 安装完成后执行 sh phps_memcache.sh 安装memcache 但执行报错,导致安装失败。
多次尝试同样的错误,编译不下去,其他多版本 7.2.x 都没问题。
报错内容:
  1. /www/wdlinux/phps/73/include/php/Zend/zend_smart_string.h:67:32: note: expected ‘struct smart_string *’ but argument is of type ‘struct smart_str *’
  2. static zend_always_inline void smart_string_free_ex(smart_string *str, zend_bool persistent) {
  3.                                 ^
  4. /root/src/pecl-memcache-php7/memcache.c: In function ‘php_mmc_connect’:
  5. /root/src/pecl-memcache-php7/memcache.c:1946:24: error: lvalue required as increment operand
  6.    GC_REFCOUNT(list_res)++;
  7.                         ^
  8. /root/src/pecl-memcache-php7/memcache.c:1965:24: error: lvalue required as increment operand
  9.    GC_REFCOUNT(list_res)++;
  10.                         ^
  11. /root/src/pecl-memcache-php7/memcache.c: In function ‘zif_memcache_add_server’:
  12. /root/src/pecl-memcache-php7/memcache.c:2057:24: error: lvalue required as increment operand
  13.    GC_REFCOUNT(list_res)++;
  14.                         ^
  15. /root/src/pecl-memcache-php7/memcache.c: In function ‘mmc_find_persistent’:
  16. /root/src/pecl-memcache-php7/memcache.c:2203:19: error: lvalue required as left operand of assignment
  17.    GC_REFCOUNT(le) = 1;
  18.                    ^
  19. /root/src/pecl-memcache-php7/memcache.c:2220:19: error: lvalue required as left operand of assignment
  20.    GC_REFCOUNT(le) = 1;
  21.                    ^
  22. make: *** [memcache.lo] Error 1
  23. make: *** Waiting for unfinished jobs....


  24. x86_64
  25. CentOS Linux release 7.6.1810 (Core)
复制代码





欢迎光临 WDlinux官方论坛 (http://www.wdlinux.cn/bbs/) Powered by Discuz! 7.2