I am trying to compile php 5.6.1 with apc 3.1.9 as its the newest default lsws options. but getting a compilation error. In theory I have all apc compilation requirements on my ubuntu server..
here is the last given logs.. any idea? tks
In file included from /usr/local/lsws/lsphp5/include/php/main/php.h:398:0,
from /usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9/apc.h:61,
from /usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9/apc.c:34:
/usr/local/lsws/lsphp5/include/php/main/php_streams.h:549:28: note: expected ‘const char **’ but argument is of type ‘char **’
PHPAPI php_stream_wrapper *php_stream_locate_url_wrapper(const char *path, const char **path_for_open, int options TSRMLS_DC);
^
/usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9/apc.c:360:20: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
exec_fname = zend_get_executed_filename(TSRMLS_C);
^
/bin/bash /usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9/libtool --mode=compile cc -I. -I/usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9 -DPHP_ATOM_INC -I/usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9/include -I/usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9/main -I/usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9 -I/usr/local/lsws/lsphp5/include/php -I/usr/local/lsws/lsphp5/include/php/main -I/usr/local/lsws/lsphp5/include/php/TSRM -I/usr/local/lsws/lsphp5/include/php/Zend -I/usr/local/lsws/lsphp5/include/php/ext -I/usr/local/lsws/lsphp5/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9/php_apc.c -o php_apc.lo
cc -I. -I/usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9 -DPHP_ATOM_INC -I/usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9/include -I/usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9/main -I/usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9 -I/usr/local/lsws/lsphp5/include/php -I/usr/local/lsws/lsphp5/include/php/main -I/usr/local/lsws/lsphp5/include/php/TSRM -I/usr/local/lsws/lsphp5/include/php/Zend -I/usr/local/lsws/lsphp5/include/php/ext -I/usr/local/lsws/lsphp5/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9/php_apc.c -fPIC -DPIC -o .libs/php_apc.o
/bin/bash /usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9/libtool --mode=compile cc -I. -I/usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9 -DPHP_ATOM_INC -I/usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9/include -I/usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9/main -I/usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9 -I/usr/local/lsws/lsphp5/include/php -I/usr/local/lsws/lsphp5/include/php/main -I/usr/local/lsws/lsphp5/include/php/TSRM -I/usr/local/lsws/lsphp5/include/php/Zend -I/usr/local/lsws/lsphp5/include/php/ext -I/usr/local/lsws/lsphp5/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9/apc_cache.c -o apc_cache.lo
cc -I. -I/usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9 -DPHP_ATOM_INC -I/usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9/include -I/usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9/main -I/usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9 -I/usr/local/lsws/lsphp5/include/php -I/usr/local/lsws/lsphp5/include/php/main -I/usr/local/lsws/lsphp5/include/php/TSRM -I/usr/local/lsws/lsphp5/include/php/Zend -I/usr/local/lsws/lsphp5/include/php/ext -I/usr/local/lsws/lsphp5/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9/apc_cache.c -fPIC -DPIC -o .libs/apc_cache.o
/usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9/apc_cache.c: In function ‘_apc_cache_user_update’:
/usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9/apc_cache.c:815:63: error: ‘IS_CONSTANT_INDEX’ undeclared (first use in this function)
switch(Z_TYPE_P((*slot)->value->data.user.val) & ~IS_CONSTANT_INDEX) {
^
/usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9/apc_cache.c:815:63: note: each undeclared identifier is reported only once for each function it appears in
/usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9/apc_cache.c:817:22: error: ‘IS_CONSTANT_ARRAY’ undeclared (first use in this function)
case IS_CONSTANT_ARRAY:
^
make: *** [apc_cache.lo] Error 1
**ERROR** Could not compile APC extension
here is the last given logs.. any idea? tks
In file included from /usr/local/lsws/lsphp5/include/php/main/php.h:398:0,
from /usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9/apc.h:61,
from /usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9/apc.c:34:
/usr/local/lsws/lsphp5/include/php/main/php_streams.h:549:28: note: expected ‘const char **’ but argument is of type ‘char **’
PHPAPI php_stream_wrapper *php_stream_locate_url_wrapper(const char *path, const char **path_for_open, int options TSRMLS_DC);
^
/usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9/apc.c:360:20: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
exec_fname = zend_get_executed_filename(TSRMLS_C);
^
/bin/bash /usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9/libtool --mode=compile cc -I. -I/usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9 -DPHP_ATOM_INC -I/usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9/include -I/usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9/main -I/usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9 -I/usr/local/lsws/lsphp5/include/php -I/usr/local/lsws/lsphp5/include/php/main -I/usr/local/lsws/lsphp5/include/php/TSRM -I/usr/local/lsws/lsphp5/include/php/Zend -I/usr/local/lsws/lsphp5/include/php/ext -I/usr/local/lsws/lsphp5/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9/php_apc.c -o php_apc.lo
cc -I. -I/usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9 -DPHP_ATOM_INC -I/usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9/include -I/usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9/main -I/usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9 -I/usr/local/lsws/lsphp5/include/php -I/usr/local/lsws/lsphp5/include/php/main -I/usr/local/lsws/lsphp5/include/php/TSRM -I/usr/local/lsws/lsphp5/include/php/Zend -I/usr/local/lsws/lsphp5/include/php/ext -I/usr/local/lsws/lsphp5/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9/php_apc.c -fPIC -DPIC -o .libs/php_apc.o
/bin/bash /usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9/libtool --mode=compile cc -I. -I/usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9 -DPHP_ATOM_INC -I/usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9/include -I/usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9/main -I/usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9 -I/usr/local/lsws/lsphp5/include/php -I/usr/local/lsws/lsphp5/include/php/main -I/usr/local/lsws/lsphp5/include/php/TSRM -I/usr/local/lsws/lsphp5/include/php/Zend -I/usr/local/lsws/lsphp5/include/php/ext -I/usr/local/lsws/lsphp5/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9/apc_cache.c -o apc_cache.lo
cc -I. -I/usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9 -DPHP_ATOM_INC -I/usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9/include -I/usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9/main -I/usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9 -I/usr/local/lsws/lsphp5/include/php -I/usr/local/lsws/lsphp5/include/php/main -I/usr/local/lsws/lsphp5/include/php/TSRM -I/usr/local/lsws/lsphp5/include/php/Zend -I/usr/local/lsws/lsphp5/include/php/ext -I/usr/local/lsws/lsphp5/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9/apc_cache.c -fPIC -DPIC -o .libs/apc_cache.o
/usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9/apc_cache.c: In function ‘_apc_cache_user_update’:
/usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9/apc_cache.c:815:63: error: ‘IS_CONSTANT_INDEX’ undeclared (first use in this function)
switch(Z_TYPE_P((*slot)->value->data.user.val) & ~IS_CONSTANT_INDEX) {
^
/usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9/apc_cache.c:815:63: note: each undeclared identifier is reported only once for each function it appears in
/usr/local/lsws/phpbuild/php-5.6.1/APC-3.1.9/apc_cache.c:817:22: error: ‘IS_CONSTANT_ARRAY’ undeclared (first use in this function)
case IS_CONSTANT_ARRAY:
^
make: *** [apc_cache.lo] Error 1
**ERROR** Could not compile APC extension