Problem
/bin/sh /tmp/pear/temp/pear-build-rootqMrKzw/APC-3.1.13/libtool --mode=compile cc -D_GNU_SOURCE -I. -I/tmp/pear/temp/APC -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootqMrKzw/APC-3.1.13/include -I/tmp/pear/temp/pear-build-rootqMrKzw/APC-3.1.13/main -I/tmp/pear/temp/APC -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/APC/apc.c -o apc.lo
libtool: compile: cc -D_GNU_SOURCE -I. -I/tmp/pear/temp/APC -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootqMrKzw/APC-3.1.13/include -I/tmp/pear/temp/pear-build-rootqMrKzw/APC-3.1.13/main -I/tmp/pear/temp/APC -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/APC/apc.c -fPIC -DPIC -o .libs/apc.o
/tmp/pear/temp/APC/apc.c: In function 'apc_search_paths':
/tmp/pear/temp/APC/apc.c:416:20: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
/bin/sh /tmp/pear/temp/pear-build-rootqMrKzw/APC-3.1.13/libtool --mode=compile cc -D_GNU_SOURCE -I. -I/tmp/pear/temp/APC -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootqMrKzw/APC-3.1.13/include -I/tmp/pear/temp/pear-build-rootqMrKzw/APC-3.1.13/main -I/tmp/pear/temp/APC -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/APC/php_apc.c -o php_apc.lo
libtool: compile: cc -D_GNU_SOURCE -I. -I/tmp/pear/temp/APC -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootqMrKzw/APC-3.1.13/include -I/tmp/pear/temp/pear-build-rootqMrKzw/APC-3.1.13/main -I/tmp/pear/temp/APC -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/APC/php_apc.c -fPIC -DPIC -o .libs/php_apc.o
/bin/sh /tmp/pear/temp/pear-build-rootqMrKzw/APC-3.1.13/libtool --mode=compile cc -D_GNU_SOURCE -I. -I/tmp/pear/temp/APC -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootqMrKzw/APC-3.1.13/include -I/tmp/pear/temp/pear-build-rootqMrKzw/APC-3.1.13/main -I/tmp/pear/temp/APC -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/APC/apc_cache.c -o apc_cache.lo
libtool: compile: cc -D_GNU_SOURCE -I. -I/tmp/pear/temp/APC -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootqMrKzw/APC-3.1.13/include -I/tmp/pear/temp/pear-build-rootqMrKzw/APC-3.1.13/main -I/tmp/pear/temp/APC -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/APC/apc_cache.c -fPIC -DPIC -o .libs/apc_cache.o
/bin/sh /tmp/pear/temp/pear-build-rootqMrKzw/APC-3.1.13/libtool --mode=compile cc -D_GNU_SOURCE -I. -I/tmp/pear/temp/APC -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootqMrKzw/APC-3.1.13/include -I/tmp/pear/temp/pear-build-rootqMrKzw/APC-3.1.13/main -I/tmp/pear/temp/APC -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/APC/apc_compile.c -o apc_compile.lo
libtool: compile: cc -D_GNU_SOURCE -I. -I/tmp/pear/temp/APC -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootqMrKzw/APC-3.1.13/include -I/tmp/pear/temp/pear-build-rootqMrKzw/APC-3.1.13/main -I/tmp/pear/temp/APC -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/APC/apc_compile.c -fPIC -DPIC -o .libs/apc_compile.o
/tmp/pear/temp/APC/apc_compile.c: In function 'my_copy_class_entry':
/tmp/pear/temp/APC/apc_compile.c:755:9: warning: assignment from incompatible pointer type [enabled by default]
/tmp/pear/temp/APC/apc_compile.c: In function 'apc_copy_class_entry_for_execution':
/tmp/pear/temp/APC/apc_compile.c:1956:9: warning: assignment from incompatible pointer type [enabled by default]
/tmp/pear/temp/APC/apc_compile.c: In function 'apc_copy_trait_alias':
/tmp/pear/temp/APC/apc_compile.c:2379:12: error: 'zend_trait_alias' has no member named 'function'
/tmp/pear/temp/APC/apc_compile.c:2380:9: error: 'zend_trait_alias' has no member named 'function'
/tmp/pear/temp/APC/apc_compile.c:2380:9: error: 'zend_trait_alias' has no member named 'function'
/tmp/pear/temp/APC/apc_compile.c: In function 'apc_copy_trait_precedence':
/tmp/pear/temp/APC/apc_compile.c:2416:12: error: 'zend_trait_precedence' has no member named 'function'
/tmp/pear/temp/APC/apc_compile.c:2417:9: error: 'zend_trait_precedence' has no member named 'function'
/tmp/pear/temp/APC/apc_compile.c:2417:9: error: 'zend_trait_precedence' has no member named 'function'
make: *** [apc_compile.lo] Error 1
ERROR: `make' failed
Solution
PHP 5.5 has built-in opcode optimizer OPcache making APC obsolete.
According to APC changelogs, PHP up to only 5.4 is supported.
Please use OPcache with PHP 5.5+ http://www.php.net/manual/en/opcache.installation.php
No comments:
Post a Comment