Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upI can't compiled memcached-2.1.0 on CentOS 6.4 with libmemcached 1.0.17. #69
Comments
I get the same error on Debian 6: root@x:/php-memcached# make |
Exact same problem here as well with CentOS 6.4 64bit and libmemcached 1.0.17 was fine with 1.0.16 |
Yep, in version 2.0.1 php_libmemcached_compat.h had: typedef const struct memcached_server_st *memcached_server_instance_st; But then it was removed in 2.1.0. As it currently stands, you could consider PECL memcached 2.1.0 incompatible with libmemcached 1.0.17 (and probably future versions as well). Of course you could put the line above back into php_libmemcached_compat.h for version 2.1.0 and it will compile and work just fine. A new release of PECL memcached should be forthcoming at some point to be compatible with libmemcached >= 1.0.17. |
I got the same problem is this going to get fixed? |
Seems to be the same issue. https://gist.github.com/jdoss/5688399 Would be nice to not have to install memcached and libmemcached from alt sources to get this installed via PECL. # cat /etc/redhat-release
CentOS release 6.4 (Final) # rpm -qa |grep memcac
libmemcached-0.31-1.1.el6.x86_64
libmemcached-devel-0.31-1.1.el6.x86_64
memcached-devel-1.4.4-3.el6.x86_64
memcached-1.4.4-3.el6.x86_64 |
[root@localhost memcached-2.1.0]# make |
use libmemcached 1.0.16 is OK |
use libmemcached 1.0.16 as well and worked out OK |
Are you able to build using the PR mentioned above? Works for me on Mac OS X. |
A bit of general maintenance, mainly related to issue #69
…cached-dev#69" This reverts commit 3c4cca7.
…cached-dev#69" This reverts commit 3c4cca7.
@mkoppanen im still getting a failure when attempting to compile identical to the other, what was the solution for this issue? cat /etc/redhat-releaseCentOS release 6.4 (Final) rpm -qa |grep memcaclibmemcached-1.0.16-1.el6.remi.x86_64 |
Are you testing with current master or 2.1.0 release? |
i was attempting with 2.1.0 release from pecl but i just built it successfully from the current master. |
yep, that's the solution. I will do a release later once we finish the feature set for 2.2.0 release |
I tried to compile memcached-2.1.0 on CentOS 6.4. I executed following commands on console for compile it.
pecl install memcached
but compilation was faiured, because of following erros.
/var/tmp/memcached/php_memcached.c:318: error: expected declaration specifiers or ‘...’ before ‘memcached_server_instance_st’
/var/tmp/memcached/php_memcached.c:319: error: expected declaration specifiers or ‘...’ before ‘memcached_server_instance_st’
/var/tmp/memcached/php_memcached.c:320: error: expected declaration specifiers or ‘...’ before ‘memcached_server_instance_st’
/var/tmp/memcached/php_memcached.c: In function ‘php_memc_get_impl’:
/var/tmp/memcached/php_memcached.c:599: warning: assignment discards qualifiers from pointer target type
/var/tmp/memcached/php_memcached.c: In function ‘php_memc_getMulti_impl’:
/var/tmp/memcached/php_memcached.c:797: warning: assignment discards qualifiers from pointer target type
/var/tmp/memcached/php_memcached.c:800: warning: assignment discards qualifiers from pointer target type
/var/tmp/memcached/php_memcached.c: In function ‘zim_Memcached_fetch’:
/var/tmp/memcached/php_memcached.c:1014: warning: assignment discards qualifiers from pointer target type
/var/tmp/memcached/php_memcached.c:1017: warning: assignment discards qualifiers from pointer target type
/var/tmp/memcached/php_memcached.c: In function ‘zim_Memcached_fetchAll’:
/var/tmp/memcached/php_memcached.c:1068: warning: assignment discards qualifiers from pointer target type
/var/tmp/memcached/php_memcached.c:1071: warning: assignment discards qualifiers from pointer target type
/var/tmp/memcached/php_memcached.c: In function ‘zim_Memcached_getServerList’:
/var/tmp/memcached/php_memcached.c:1948: warning: assignment from incompatible pointer type
/var/tmp/memcached/php_memcached.c: In function ‘zim_Memcached_getServerByKey’:
/var/tmp/memcached/php_memcached.c:1977: warning: assignment from incompatible pointer type
/var/tmp/memcached/php_memcached.c: In function ‘zim_Memcached_getStats’:
/var/tmp/memcached/php_memcached.c:2056: warning: assignment from incompatible pointer type
/var/tmp/memcached/php_memcached.c: In function ‘zim_Memcached_getVersion’:
/var/tmp/memcached/php_memcached.c:2089: warning: assignment from incompatible pointer type
/var/tmp/memcached/php_memcached.c: At top level:
/var/tmp/memcached/php_memcached.c:2576: error: expected declaration specifiers or ‘...’ before ‘memcached_server_instance_st’
/var/tmp/memcached/php_memcached.c: In function ‘php_memc_do_serverlist_callback’:
/var/tmp/memcached/php_memcached.c:2583: error: ‘instance’ undeclared (first use in this function)
/var/tmp/memcached/php_memcached.c:2583: error: (Each undeclared identifier is reported only once
/var/tmp/memcached/php_memcached.c:2583: error: for each function it appears in.)
/var/tmp/memcached/php_memcached.c: At top level:
/var/tmp/memcached/php_memcached.c:2593: error: expected declaration specifiers or ‘...’ before ‘memcached_server_instance_st’
/var/tmp/memcached/php_memcached.c: In function ‘php_memc_do_stats_callback’:
/var/tmp/memcached/php_memcached.c:2599: error: ‘instance’ undeclared (first use in this function)
/var/tmp/memcached/php_memcached.c: At top level:
/var/tmp/memcached/php_memcached.c:2637: error: expected declaration specifiers or ‘...’ before ‘memcached_server_instance_st’
/var/tmp/memcached/php_memcached.c: In function ‘php_memc_do_version_callback’:
/var/tmp/memcached/php_memcached.c:2644: error: ‘instance’ undeclared (first use in this function)
/var/tmp/memcached/php_memcached.c: In function ‘php_memc_do_result_callback’:
/var/tmp/memcached/php_memcached.c:3191: warning: assignment discards qualifiers from pointer target type
/var/tmp/memcached/php_memcached.c:3194: warning: assignment discards qualifiers from pointer target type
make: *** [php_memcached.lo] Error 1
ERROR: `make' failed