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

2016-04-05 13:30:28 +08:00
 louiswi
编译 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
3263 次点击
所在节点    Linux
0 条回复

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/268644

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX