You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/bin/sh /home/ec2-user/aws-elasticache-cluster-client-memcached-for-php-master/libtool --mode=compile cc -I/usr/include/php/5.6/php -I/usr/include/php/5.6/php -I. -I/home/ec2-user/aws-elasticache-cluster-client-memcached-for-php-master -DPHP_ATOM_INC -I/home/ec2-user/aws-elasticache-cluster-client-memcached-for-php-master/include -I/home/ec2-user/aws-elasticache-cluster-client-memcached-for-php-master/main -I/home/ec2-user/aws-elasticache-cluster-client-memcached-for-php-master -I/usr/include/php/5.6/php -I/usr/include/php/5.6/php/main -I/usr/include/php/5.6/php/TSRM -I/usr/include/php/5.6/php/Zend -I/usr/include/php/5.6/php/ext -I/usr/include/php/5.6/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/ec2-user/aws-elasticache-cluster-client-memcached-for-php-master/php_memcached.c -o php_memcached.lo
libtool: compile: cc -I/usr/include/php/5.6/php -I/usr/include/php/5.6/php -I. -I/home/ec2-user/aws-elasticache-cluster-client-memcached-for-php-master -DPHP_ATOM_INC -I/home/ec2-user/aws-elasticache-cluster-client-memcached-for-php-master/include -I/home/ec2-user/aws-elasticache-cluster-client-memcached-for-php-master/main -I/home/ec2-user/aws-elasticache-cluster-client-memcached-for-php-master -I/usr/include/php/5.6/php -I/usr/include/php/5.6/php/main -I/usr/include/php/5.6/php/TSRM -I/usr/include/php/5.6/php/Zend -I/usr/include/php/5.6/php/ext -I/usr/include/php/5.6/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/ec2-user/aws-elasticache-cluster-client-memcached-for-php-master/php_memcached.c -fPIC -DPIC -o .libs/php_memcached.o
/home/ec2-user/aws-elasticache-cluster-client-memcached-for-php-master/php_memcached.c: In function 'php_memc_get_impl':
/home/ec2-user/aws-elasticache-cluster-client-memcached-for-php-master/php_memcached.c:613:15: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
payload = memcached_result_value(&result);
^
/home/ec2-user/aws-elasticache-cluster-client-memcached-for-php-master/php_memcached.c: In function 'php_memc_getMulti_impl':
/home/ec2-user/aws-elasticache-cluster-client-memcached-for-php-master/php_memcached.c:811:15: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
payload = memcached_result_value(&result);
^
/home/ec2-user/aws-elasticache-cluster-client-memcached-for-php-master/php_memcached.c:814:15: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
res_key = memcached_result_key_value(&result);
^
/home/ec2-user/aws-elasticache-cluster-client-memcached-for-php-master/php_memcached.c: In function 'zim_Memcached_fetch':
/home/ec2-user/aws-elasticache-cluster-client-memcached-for-php-master/php_memcached.c:1028:14: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
payload = memcached_result_value(&result);
^
/home/ec2-user/aws-elasticache-cluster-client-memcached-for-php-master/php_memcached.c:1031:14: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
res_key = memcached_result_key_value(&result);
^
/home/ec2-user/aws-elasticache-cluster-client-memcached-for-php-master/php_memcached.c: In function 'zim_Memcached_fetchAll':
/home/ec2-user/aws-elasticache-cluster-client-memcached-for-php-master/php_memcached.c:1082:15: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
payload = memcached_result_value(&result);
^
/home/ec2-user/aws-elasticache-cluster-client-memcached-for-php-master/php_memcached.c:1085:15: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
res_key = memcached_result_key_value(&result);
^
/home/ec2-user/aws-elasticache-cluster-client-memcached-for-php-master/php_memcached.c: In function 'zim_Memcached_getServerByKey':
/home/ec2-user/aws-elasticache-cluster-client-memcached-for-php-master/php_memcached.c:1992:9: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
server = memcached_server_by_key(m_obj->memc, server_key, server_key_len, &error);
^
/home/ec2-user/aws-elasticache-cluster-client-memcached-for-php-master/php_memcached.c: In function 'php_memc_do_serverlist_callback':
/home/ec2-user/aws-elasticache-cluster-client-memcached-for-php-master/php_memcached.c:2598:2: warning: passing argument 4 of 'add_assoc_string_ex' discards 'const' qualifier from pointer target type [enabled by default]
add_assoc_string(array, "host", memcached_server_name(instance), 1);
^
In file included from /usr/include/php/5.6/php/main/php.h:39:0,
from /home/ec2-user/aws-elasticache-cluster-client-memcached-for-php-master/php_memcached.c:42:
/usr/include/php/5.6/php/Zend/zend_API.h:384:14: note: expected 'char *' but argument is of type 'const char *'
ZEND_API int add_assoc_string_ex(zval *arg, const char *key, uint key_len, char *str, int duplicate);
^
/home/ec2-user/aws-elasticache-cluster-client-memcached-for-php-master/php_memcached.c: In function 'php_memc_do_result_callback':
/home/ec2-user/aws-elasticache-cluster-client-memcached-for-php-master/php_memcached.c:3215:14: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
payload = memcached_result_value(result);
^
/home/ec2-user/aws-elasticache-cluster-client-memcached-for-php-master/php_memcached.c:3218:14: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
res_key = memcached_result_key_value(result);
^
/home/ec2-user/aws-elasticache-cluster-client-memcached-for-php-master/php_memcached.c: In function 'php_memc_register_constants':
/home/ec2-user/aws-elasticache-cluster-client-memcached-for-php-master/php_memcached.c:3691:50: error: 'MEMCACHED_BEHAVIOR_CLIENT_MODE' undeclared (first use in this function)
REGISTER_MEMC_CLASS_CONST_LONG(OPT_CLIENT_MODE, MEMCACHED_BEHAVIOR_CLIENT_MODE);
^
/home/ec2-user/aws-elasticache-cluster-client-memcached-for-php-master/php_memcached.c:3644:131: note: in definition of macro 'REGISTER_MEMC_CLASS_CONST_LONG'
#define REGISTER_MEMC_CLASS_CONST_LONG(name, value) zend_declare_class_constant_long(php_memc_get_ce() , ZEND_STRS( #name ) - 1, value TSRMLS_CC)
^
/home/ec2-user/aws-elasticache-cluster-client-memcached-for-php-master/php_memcached.c:3691:50: note: each undeclared identifier is reported only once for each function it appears in
REGISTER_MEMC_CLASS_CONST_LONG(OPT_CLIENT_MODE, MEMCACHED_BEHAVIOR_CLIENT_MODE);
^
/home/ec2-user/aws-elasticache-cluster-client-memcached-for-php-master/php_memcached.c:3644:131: note: in definition of macro 'REGISTER_MEMC_CLASS_CONST_LONG'
#define REGISTER_MEMC_CLASS_CONST_LONG(name, value) zend_declare_class_constant_long(php_memc_get_ce() , ZEND_STRS( #name ) - 1, value TSRMLS_CC)
^
/home/ec2-user/aws-elasticache-cluster-client-memcached-for-php-master/php_memcached.c:3692:68: error: 'MEMCACHED_BEHAVIOR_DYNAMIC_POLLING_THRESHOLD_SECS' undeclared (first use in this function)
REGISTER_MEMC_CLASS_CONST_LONG(OPT_DYNAMIC_POLLING_INTERVAL_SECS, MEMCACHED_BEHAVIOR_DYNAMIC_POLLING_THRESHOLD_SECS);
^
/home/ec2-user/aws-elasticache-cluster-client-memcached-for-php-master/php_memcached.c:3644:131: note: in definition of macro 'REGISTER_MEMC_CLASS_CONST_LONG'
#define REGISTER_MEMC_CLASS_CONST_LONG(name, value) zend_declare_class_constant_long(php_memc_get_ce() , ZEND_STRS( #name ) - 1, value TSRMLS_CC)
^
/home/ec2-user/aws-elasticache-cluster-client-memcached-for-php-master/php_memcached.c:3773:65: error: 'MEMCACHED_NO_CONFIG_SERVER' undeclared (first use in this function)
REGISTER_MEMC_CLASS_CONST_LONG(RES_MEMCACHED_NO_CONFIG_SERVER, MEMCACHED_NO_CONFIG_SERVER);
^
/home/ec2-user/aws-elasticache-cluster-client-memcached-for-php-master/php_memcached.c:3644:131: note: in definition of macro 'REGISTER_MEMC_CLASS_CONST_LONG'
#define REGISTER_MEMC_CLASS_CONST_LONG(name, value) zend_declare_class_constant_long(php_memc_get_ce() , ZEND_STRS( #name ) - 1, value TSRMLS_CC)
^
/home/ec2-user/aws-elasticache-cluster-client-memcached-for-php-master/php_memcached.c:3788:53: error: 'STATIC_MODE' undeclared (first use in this function)
REGISTER_MEMC_CLASS_CONST_LONG(STATIC_CLIENT_MODE, STATIC_MODE);
^
/home/ec2-user/aws-elasticache-cluster-client-memcached-for-php-master/php_memcached.c:3644:131: note: in definition of macro 'REGISTER_MEMC_CLASS_CONST_LONG'
#define REGISTER_MEMC_CLASS_CONST_LONG(name, value) zend_declare_class_constant_long(php_memc_get_ce() , ZEND_STRS( #name ) - 1, value TSRMLS_CC)
^
/home/ec2-user/aws-elasticache-cluster-client-memcached-for-php-master/php_memcached.c:3789:54: error: 'DYNAMIC_MODE' undeclared (first use in this function)
REGISTER_MEMC_CLASS_CONST_LONG(DYNAMIC_CLIENT_MODE, DYNAMIC_MODE);
^
/home/ec2-user/aws-elasticache-cluster-client-memcached-for-php-master/php_memcached.c:3644:131: note: in definition of macro 'REGISTER_MEMC_CLASS_CONST_LONG'
#define REGISTER_MEMC_CLASS_CONST_LONG(name, value) zend_declare_class_constant_long(php_memc_get_ce() , ZEND_STRS( #name ) - 1, value TSRMLS_CC)
^
make: *** [php_memcached.lo] Error 1
The text was updated successfully, but these errors were encountered:
This PHP memcached client won't compile against the native libmemcached. You need to follow the compilation instructions and compile against our auto-discovery enabled libmemcached.
$ sudo yum -y remove php56-pecl-memcached
$ sudo yum install php56-devel php56-pecl-igbinary-devel libmemcached-devel libevent-devel
$ wget https://github.com/awslabs/aws-elasticache-cluster-client-memcached-for-php/archive/master.zip
$ unzip master.zip
$ cd aws-elasticache-cluster-client-memcached*
$ phpize
$ make
Error:
The text was updated successfully, but these errors were encountered: