php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64595 memcached won't compile
Submitted: 2013-04-05 23:31 UTC Modified: 2020-09-27 04:22 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: thall at nerdie dot net Assigned: cmb (profile)
Status: No Feedback Package: memcached (PECL)
PHP Version: 5.3.23 OS: CentOS 6
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
25 - 22 = ?
Subscribe to this entry?

 
 [2013-04-05 23:31 UTC] 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 


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-04-05 23:31 UTC] thall at nerdie dot net
For the record, I've tried memcache-2.0.1 and memcache-2.1.0 and they both report the same error as well.
 [2015-09-07 22:35 UTC] cmb@php.net
-Package: PECL +Package: memcached
 [2020-09-18 07:37 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2020-09-18 07:37 UTC] cmb@php.net
Is that still an issue with latest memcached (3.1.5) with any of
the actively supported PHP versions[1]?

[1] <https://www.php.net/supported-versions.php>
 [2020-09-27 04:22 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Mon Jan 17 20:03:35 2022 UTC