V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
louiswi
V2EX  ›  Linux

php7 compile error:recipe for target 'ext/intl/intl_convertcpp.lo' failed

  •  
  •   louiswi · 2016-04-05 13:30:28 +08:00 · 3259 次点击
    这是一个创建于 2965 天前的主题,其中的信息可能已经有所发展或是发生改变。
    编译 php5 好好的,编译 7 就不行了

    /bin/bash /home/louiswi/source/php-7.0.5/libtool --silent --preserve-dup-deps --mode=compile g++ -I/usr/include -Wno-write-strings -D__STDC_LIMIT_MACROS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/intl/ -I/home/louiswi/source/php-7.0.5/ext/intl/ -DPHP_ATOM_INC -I/home/louiswi/source/php-7.0.5/include -I/home/louiswi/source/php-7.0.5/main -I/home/louiswi/source/php-7.0.5 -I/home/louiswi/source/php-7.0.5/ext/date/lib -I/usr/include/libxml2 -I/opt/openssl/include -I/opt/pcre/include -I/opt/zlib/include -I/opt/curl/include -I/usr/include/enchant -I/opt/libpng/include -I/usr/X11 -I/usr/include/freetype2 -I/opt/libgd/include -I/opt/firebird/include -I/opt/ldap/include -I/home/louiswi/source/php-7.0.5/ext/mbstring/oniguruma -I/home/louiswi/source/php-7.0.5/ext/mbstring/libmbfl -I/home/louiswi/source/php-7.0.5/ext/mbstring/libmbfl/mbfl -I/opt/libmcrypt/include -I/opt/postgresql/include -I/home/louiswi/source/php-7.0.5/ext/sqlite3/libsqlite -I/usr/include/pspell -I/usr/include/tidy -I/opt/anaconda3/include/libxml2 -I/home/louiswi/source/php-7.0.5/ext/zip/lib -I/home/louiswi/source/php-7.0.5/TSRM -I/home/louiswi/source/php-7.0.5/Zend -D_REENTRANT -DDMALLOC_FUNC_CHECK -O0 -fprofile-arcs -ftest-coverage -pthread -c /home/louiswi/source/php-7.0.5/ext/intl/intl_convertcpp.cpp -o ext/intl/intl_convertcpp.lo
    In file included from /home/louiswi/source/php-7.0.5/main/php.h:26:0,
    from /home/louiswi/source/php-7.0.5/ext/intl/intl_convertcpp.cpp:24:
    /home/louiswi/source/php-7.0.5/Zend/zend_string.h: In function ‘ void zend_string_free(zend_string*)’:
    /home/louiswi/source/php-7.0.5/Zend/zend_alloc.h:197:48: error: third operand to the conditional operator is of type ‘ void ’, but the second operand is neither a throw-expression nor of type ‘ void ’
    #define pefree(ptr, persistent) ((persistent)?free(ptr):efree(ptr))
    ^
    /home/louiswi/source/php-7.0.5/Zend/zend_string.h:263:3: note: in expansion of macro ‘ pefree ’
    pefree(s, GC_FLAGS(s) & IS_STR_PERSISTENT);
    ^
    /home/louiswi/source/php-7.0.5/Zend/zend_string.h: In function ‘ void zend_string_release(zend_string*)’:
    /home/louiswi/source/php-7.0.5/Zend/zend_alloc.h:197:48: error: third operand to the conditional operator is of type ‘ void ’, but the second operand is neither a throw-expression nor of type ‘ void ’
    #define pefree(ptr, persistent) ((persistent)?free(ptr):efree(ptr))
    ^
    /home/louiswi/source/php-7.0.5/Zend/zend_string.h:271:4: note: in expansion of macro ‘ pefree ’
    pefree(s, GC_FLAGS(s) & IS_STR_PERSISTENT);
    ^
    Makefile:1118: recipe for target 'ext/intl/intl_convertcpp.lo' failed
    make: *** [ext/intl/intl_convertcpp.lo] Error 1
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2476 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 06:14 · PVG 14:14 · LAX 23:14 · JFK 02:14
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.