Bug #64595 [Opn]: memcached won't compile

From: Date: Fri, 05 Apr 2013 23:31:50 +0000
Subject: Bug #64595 [Opn]: memcached won't compile
References: 1  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-10506@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=64595&edit=1 ID: 64595 User updated by: thall at nerdie dot net Reported by: thall at nerdie dot net Summary: memcached won't compile Status: Open Type: Bug Package: PECL Operating System: CentOS 6 PHP Version: 5.3.23 Block user comment: N Private report: N New Comment: For the record, I've tried memcache-2.0.1 and memcache-2.1.0 and they both report the same error as well. Previous Comments: ------------------------------------------------------------------------ [2013-04-05 23:31:03] thall at nerdie dot net Description: ------------ libmemcached-1.0.17 (or .16) and memcached-2.1.0 don't want to compile. # make /bin/sh /root/tmp/memcached-2.0.1/libtool --mode=compile cc -I/usr/local/include/php -I. -I/root/tmp/memcached-2.0.1 -DPHP_ATOM_INC -I/root/tmp/memcached-2.0.1/include -I/root/tmp/memcached-2.0.1/main -I/root/tmp/memcached-2.0.1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /root/tmp/memcached-2.0.1/php_memcached.c -o php_memcached.lo cc -I/usr/local/include/php -I. -I/root/tmp/memcached-2.0.1 -DPHP_ATOM_INC -I/root/tmp/memcached-2.0.1/include -I/root/tmp/memcached-2.0.1/main -I/root/tmp/memcached-2.0.1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /root/tmp/memcached-2.0.1/php_memcached.c -fPIC -DPIC -o .libs/php_memcached.o /root/tmp/memcached-2.0.1/php_memcached.c: In function ‘php_memc_get_impl’: /root/tmp/memcached-2.0.1/php_memcached.c:595: warning: assignment discards qualifiers from pointer target type /root/tmp/memcached-2.0.1/php_memcached.c: In function ‘php_memc_getMulti_impl’: /root/tmp/memcached-2.0.1/php_memcached.c:793: warning: assignment discards qualifiers from pointer target type /root/tmp/memcached-2.0.1/php_memcached.c:796: warning: assignment discards qualifiers from pointer target type /root/tmp/memcached-2.0.1/php_memcached.c: In function ‘zim_Memcached_fetch’: /root/tmp/memcached-2.0.1/php_memcached.c:1010: warning: assignment discards qualifiers from pointer target type /root/tmp/memcached-2.0.1/php_memcached.c:1013: warning: assignment discards qualifiers from pointer target type /root/tmp/memcached-2.0.1/php_memcached.c: In function ‘zim_Memcached_fetchAll’: /root/tmp/memcached-2.0.1/php_memcached.c:1064: warning: assignment discards qualifiers from pointer target type /root/tmp/memcached-2.0.1/php_memcached.c:1067: warning: assignment discards qualifiers from pointer target type /root/tmp/memcached-2.0.1/php_memcached.c: In function ‘zim_Memcached_getServerByKey’: /root/tmp/memcached-2.0.1/php_memcached.c:1973: warning: assignment discards qualifiers from pointer target type /root/tmp/memcached-2.0.1/php_memcached.c: In function ‘php_memc_do_serverlist_callback’: /root/tmp/memcached-2.0.1/php_memcached.c:2585: warning: dereferencing ‘void *’ pointer /root/tmp/memcached-2.0.1/php_memcached.c:2585: error: request for member ‘hostname’ in something not a structure or union /root/tmp/memcached-2.0.1/php_memcached.c:2586: warning: dereferencing ‘void *’ pointer /root/tmp/memcached-2.0.1/php_memcached.c:2586: error: request for member ‘port’ in something not a structure or union /root/tmp/memcached-2.0.1/php_memcached.c:2587: warning: dereferencing ‘void *’ pointer /root/tmp/memcached-2.0.1/php_memcached.c:2587: error: request for member ‘weight’ in something not a structure or union /root/tmp/memcached-2.0.1/php_memcached.c: In function ‘php_memc_do_stats_callback’: /root/tmp/memcached-2.0.1/php_memcached.c:2598: warning: dereferencing ‘void *’ pointer /root/tmp/memcached-2.0.1/php_memcached.c:2598: error: request for member ‘hostname’ in something not a structure or union /root/tmp/memcached-2.0.1/php_memcached.c:2598: warning: dereferencing ‘void *’ pointer /root/tmp/memcached-2.0.1/php_memcached.c:2598: error: request for member ‘port’ in something not a structure or union /root/tmp/memcached-2.0.1/php_memcached.c: In function ‘php_memc_do_version_callback’: /root/tmp/memcached-2.0.1/php_memcached.c:2643: warning: dereferencing ‘void *’ pointer /root/tmp/memcached-2.0.1/php_memcached.c:2643: error: request for member ‘hostname’ in something not a structure or union /root/tmp/memcached-2.0.1/php_memcached.c:2643: warning: dereferencing ‘void *’ pointer /root/tmp/memcached-2.0.1/php_memcached.c:2643: error: request for member ‘port’ in something not a structure or union /root/tmp/memcached-2.0.1/php_memcached.c:2645: warning: dereferencing ‘void *’ pointer /root/tmp/memcached-2.0.1/php_memcached.c:2645: error: request for member ‘major_version’ in something not a structure or union /root/tmp/memcached-2.0.1/php_memcached.c:2645: warning: dereferencing ‘void *’ pointer /root/tmp/memcached-2.0.1/php_memcached.c:2645: error: request for member ‘minor_version’ in something not a structure or union /root/tmp/memcached-2.0.1/php_memcached.c:2646: warning: dereferencing ‘void *’ pointer /root/tmp/memcached-2.0.1/php_memcached.c:2646: error: request for member ‘micro_version’ in something not a structure or union /root/tmp/memcached-2.0.1/php_memcached.c: In function ‘php_memc_do_result_callback’: /root/tmp/memcached-2.0.1/php_memcached.c:3189: warning: assignment discards qualifiers from pointer target type /root/tmp/memcached-2.0.1/php_memcached.c:3192: warning: assignment discards qualifiers from pointer target type make: *** [php_memcached.lo] Error 1 Past bug reports about this seem it's an issue with libmemcached's version, however I've tried different versions and it seems to spit out the same error. Test script: --------------- phpize; configure ; make ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=64595&edit=1

« previous php.pecl.dev (#10506) next »