我一直在寻找编译php memcached(不是memcache)的日子,并且绝对没有办法让它编译。我已经尝试了很多libmemcached,memcached扩展的versiosn,在./configure行中指定了libmemcached的目录,没有任何效果。
有什么想法吗?我在Ubuntu 11.10下运行
/home/memcached-1.0.2/php_memcached.c:168:1: warning: useless storage class specifier in empty declaration [enabled by default]
/home/memcached-1.0.2/php_memcached.c: In function 'php_memc_get_impl':
/home/memcached-1.0.2/php_memcached.c:382:3: warning: passing argument 4 of 'memcached_mget_by_key' from incompatible pointer type [enabled by default]
/usr/local/include/libmemcached-1.0/get.h:68:20: note: expected 'const char * const*' but argument is of type 'char **'
/home/memcached-1.0.2/php_memcached.c:419:15: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
/home/memcached-1.0.2/php_memcached.c:451:3: warning: passing argument 4 of 'memcached_mget_by_key' from incompatible pointer type [enabled by default]
/usr/local/include/libmemcached-1.0/get.h:68:20: note: expected 'const char * const*' but argument is of type 'char **'
/home/memcached-1.0.2/php_memcached.c: In function 'php_memc_getMulti_impl':
/home/memcached-1.0.2/php_memcached.c:588:2: warning: passing argument 4 of 'memcached_mget_by_key' from incompatible pointer type [enabled by default]
/usr/local/include/libmemcached-1.0/get.h:68:20: note: expected 'const char * const*' but argument is of type 'char **'
/home/memcached-1.0.2/php_memcached.c:618:15: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
/home/memcached-1.0.2/php_memcached.c:621:15: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
/home/memcached-1.0.2/php_memcached.c: In function 'php_memc_getDelayed_impl':
/home/memcached-1.0.2/php_memcached.c:737:2: warning: passing argument 4 of 'memcached_mget_by_key' from incompatible pointer type [enabled by default]/usr/local/include/libmemcached-1.0/get.h:68:20: note: expected 'const char * const*' but argument is of type 'char **'
/home/memcached-1.0.2/php_memcached.c: In function 'zim_Memcached_fetch':
/home/memcached-1.0.2/php_memcached.c:812:14: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
/home/memcached-1.0.2/php_memcached.c:815:14: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
/home/memcached-1.0.2/php_memcached.c: In function 'zim_Memcached_fetchAll':
/home/memcached-1.0.2/php_memcached.c:863:15: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
/home/memcached-1.0.2/php_memcached.c:866:15: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
/home/memcached-1.0.2/php_memcached.c: In function 'zim_Memcached_getServerList':
/home/memcached-1.0.2/php_memcached.c:1500:15: warning: assignment from incompatible pointer type [enabled by default]
/home/memcached-1.0.2/php_memcached.c: In function 'zim_Memcached_getServerByKey':
/home/memcached-1.0.2/php_memcached.c:1530:9: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
/home/memcached-1.0.2/php_memcached.c: In function 'zim_Memcached_getStats':
/home/memcached-1.0.2/php_memcached.c:1569:15: warning: assignment from incompatible pointer type [enabled by default]
/home/memcached-1.0.2/php_memcached.c: In function 'zim_Memcached_getVersion':
/home/memcached-1.0.2/php_memcached.c:1604:15: warning: assignment from incompatible pointer type [enabled by default]
/home/memcached-1.0.2/php_memcached.c: In function 'php_memc_new':
/home/memcached-1.0.2/php_memcached.c:1865:45: error: 'zend_class_entry' has no member named 'default_properties'
/home/memcached-1.0.2/php_memcached.c: In function 'php_memc_do_serverlist_callback':
/home/memcached-1.0.2/php_memcached.c:1892:2: warning: passing argument 4 of 'add_assoc_string_ex' discards 'const' qualifier from pointer target type [enabled by default]/usr/local/include/php/Zend/zend_API.h:374:14: note: expected 'char *' but argument is of type 'const char *'
/home/memcached-1.0.2/php_memcached.c: In function 'php_memc_zval_from_payload':
/home/memcached-1.0.2/php_memcached.c:2164:4: warning: assignment from incompatible pointer type [enabled by default]
/home/memcached-1.0.2/php_memcached.c: In function 'php_memc_do_result_callback':
/home/memcached-1.0.2/php_memcached.c:2359:14: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
/home/memcached-1.0.2/php_memcached.c:2362:14: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
make: *** [php_memcached.lo] Error 1