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 · 3341 次点击
    这是一个创建于 3179 天前的主题,其中的信息可能已经有所发展或是发生改变。
    编译 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   ·   实用小工具   ·   3790 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 05:08 · PVG 13:08 · LAX 21:08 · JFK 00:08
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.