这是一个创建于 3158 天前的主题,其中的信息可能已经有所发展或是发生改变。
编译 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