-
Notifications
You must be signed in to change notification settings - Fork 327
Memcached 2.0.1 build failed #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Now installed latest libmemcached (1.0.5) and it compiled properly. Probably libMemcached > 1.0 is required. |
Im having the same issue - are you running on CentOS? If so, did you install libmemcached 1.x from source or is there an RPM somewhere? |
I'm experiencing the same issue with Ubuntu 10.04 LTS. |
I have installed memcache from RPMs on a CentOS 6.2 server. The following memcache and libmemcached are installed:
We have PHP 5.3.10 installed (of unknown origin, but likely nor RPM packages). "pecl install memcaced" downloads "memcached-2.0.1.tgz", and begins compilation, but ultimately fails with the following errors:
Full make output is as follows:
|
Same here on Ubuntu Server 10.04.4 LTS. But since I've compiled the latest libmemcached it's now possible to install memcached-2.1.0 |
I have the problem too! I have libmemcached-1.0.12.tar.gz and memcached-2.1.0 any one who has some ideas? |
+1 for @lwx2615's issue. Downgrading from libmemcached 1.0.12 to 1.0.10 fixed this for me. Problem seems to be, at least on my install, that 1.0.12 libmemcached's configure.h leaves
But on 1.0.10, it is
I'm outside my comfort zone now in debugging further - just suffice to say that going down from 1.0.12 to 1.0.10 fixed the issue for me. (Don't forgot to do a "make distclean" to get rid of 1.0.12) |
It's that do with the php version? My php version at last , I want to say : thank you man ! I try it on another server, and it get success ! |
CentOS 6 |
Had the same issue with the command "pecl install memcached", downgraded to libmemcached 1.0.10 and now it works fine (tried to install memcached 1.4.15 but finally went back to CentOS repository's default 1.4.4). |
This has been fixed |
The following error happens when executing make:
/bin/sh /root/build/memcached-2.0.1/libtool --mode=compile cc -I/opt/php-5.4.0/include/php -I/opt/php-5.4.0/include/php -I. -I/root/build/memcached-2.0.1 -DPHP_ATOM_INC -I/root/build/memcached-2.0.1/include -I/root/build/memcached-2.0.1/main -I/root/build/memcached-2.0.1 -I/opt/php-5.4.0/include/php -I/opt/php-5.4.0/include/php/main -I/opt/php-5.4.0/include/php/TSRM -I/opt/php-5.4.0/include/php/Zend -I/opt/php-5.4.0/include/php/ext -I/opt/php-5.4.0/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/build/memcached-2.0.1/php_memcached.c -o php_memcached.lo
mkdir .libs
cc -I/opt/php-5.4.0/include/php -I/opt/php-5.4.0/include/php -I. -I/root/build/memcached-2.0.1 -DPHP_ATOM_INC -I/root/build/memcached-2.0.1/include -I/root/build/memcached-2.0.1/main -I/root/build/memcached-2.0.1 -I/opt/php-5.4.0/include/php -I/opt/php-5.4.0/include/php/main -I/opt/php-5.4.0/include/php/TSRM -I/opt/php-5.4.0/include/php/Zend -I/opt/php-5.4.0/include/php/ext -I/opt/php-5.4.0/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/build/memcached-2.0.1/php_memcached.c -fPIC -DPIC -o .libs/php_memcached.o
/root/build/memcached-2.0.1/php_memcached.c: In function ‘zim_Memcached___construct’:
/root/build/memcached-2.0.1/php_memcached.c:415: warning: assignment makes pointer from integer without a cast
/root/build/memcached-2.0.1/php_memcached.c: In function ‘php_memc_get_impl’:
/root/build/memcached-2.0.1/php_memcached.c:554: warning: passing argument 4 of ‘memcached_mget_by_key’ from incompatible pointer type
/usr/include/libmemcached/memcached_get.h:38: note: expected ‘char *’ but argument is of type ‘const char *’
/root/build/memcached-2.0.1/php_memcached.c:615: warning: passing argument 4 of ‘memcached_mget_by_key’ from incompatible pointer type
/usr/include/libmemcached/memcached_get.h:38: note: expected ‘char *’ but argument is of type ‘const char *’
/root/build/memcached-2.0.1/php_memcached.c: In function ‘php_memc_getMulti_impl’:
/root/build/memcached-2.0.1/php_memcached.c:762: warning: passing argument 4 of ‘memcached_mget_by_key’ from incompatible pointer type
/usr/include/libmemcached/memcached_get.h:38: note: expected ‘char *’ but argument is of type ‘const char *’
/root/build/memcached-2.0.1/php_memcached.c: In function ‘php_memc_getDelayed_impl’:
/root/build/memcached-2.0.1/php_memcached.c:936: warning: passing argument 4 of ‘memcached_mget_by_key’ from incompatible pointer type
/usr/include/libmemcached/memcached_get.h:38: note: expected ‘char *’ but argument is of type ‘const char *’
/root/build/memcached-2.0.1/php_memcached.c: In function ‘zim_Memcached_getServerList’:
/root/build/memcached-2.0.1/php_memcached.c:1944: warning: assignment from incompatible pointer type
/root/build/memcached-2.0.1/php_memcached.c: In function ‘zim_Memcached_getStats’:
/root/build/memcached-2.0.1/php_memcached.c:2058: warning: assignment from incompatible pointer type
/root/build/memcached-2.0.1/php_memcached.c: In function ‘zim_Memcached_getVersion’:
/root/build/memcached-2.0.1/php_memcached.c:2091: warning: assignment from incompatible pointer type
/root/build/memcached-2.0.1/php_memcached.c: In function ‘zim_Memcached_getAllKeys’:
/root/build/memcached-2.0.1/php_memcached.c:2115: warning: assignment from incompatible pointer type
/root/build/memcached-2.0.1/php_memcached.c: In function ‘php_memc_do_serverlist_callback’:
/root/build/memcached-2.0.1/php_memcached.c:2585: warning: passing argument 4 of ‘add_assoc_string_ex’ discards qualifiers from pointer target type
/opt/php-5.4.0/include/php/Zend/zend_API.h:374: note: expected ‘char ’ but argument is of type ‘const char *’
/root/build/memcached-2.0.1/php_memcached.c: In function ‘php_memc_register_constants’:
/root/build/memcached-2.0.1/php_memcached.c:3680: error: ‘MEMCACHED_BEHAVIOR_TCP_KEEPALIVE’ undeclared (first use in this function)
/root/build/memcached-2.0.1/php_memcached.c:3680: error: (Each undeclared identifier is reported only once
/root/build/memcached-2.0.1/php_memcached.c:3680: error: for each function it appears in.)
make: ** [php_memcached.lo] Error 1
I'm using libmemcached and libmemcached-devel versions 0.31-1.
Note: configure was executed with the "--enable-igbinary" option (igbinary installed from pecl).
The text was updated successfully, but these errors were encountered: