php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59087 cannot install
Submitted: 2010-02-25 12:28 UTC Modified: 2010-03-13 18:09 UTC
From: mailsort at gmail dot com Assigned:
Status: Not a bug Package: memcached (PECL)
PHP Version: 5.2.12 OS: Centos 5.14 64bit
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mailsort at gmail dot com
New email:
PHP Version: OS:

 

 [2010-02-25 12:28 UTC] mailsort at gmail dot com
Description:
------------
fails on make. using pecl install memcached or compile from source produce the same error.

Expected result:
----------------
it should compile

Actual result:
--------------
does not compile

In file included from /usr/local/include/libmemcached/storage.h:15,
                 from /usr/local/include/libmemcached/memcached.h:51,
                 from /tmp/pear/temp/memcached/php_memcached.c:42:
/usr/local/include/libmemcached/libmemcached/memcached.h:223: error: conflicting types for ?memcached_set_memory_allocators?
/usr/local/include/libmemcached/allocators.h:25: error: previous declaration of ?memcached_set_memory_allocators? was here
/usr/local/include/libmemcached/libmemcached/memcached.h:230: error: conflicting types for ?memcached_get_memory_allocators?
/usr/local/include/libmemcached/allocators.h:32: error: previous declaration of ?memcached_get_memory_allocators? was here
In file included from /tmp/pear/temp/memcached/php_memcached.c:42:
/usr/local/include/libmemcached/memcached.h:56: error: redefinition of ?struct memcached_st?
/usr/local/include/libmemcached/memcached.h:144: error: conflicting types for ?memcached_clone?
/usr/local/include/libmemcached/libmemcached/memcached.h:122: error: previous declaration of ?memcached_clone? was here
/usr/local/include/libmemcached/memcached.h:147: error: conflicting types for ?memcached_get_user_data?
/usr/local/include/libmemcached/libmemcached/memcached.h:233: error: previous declaration of ?memcached_get_user_data? was here
/tmp/pear/temp/memcached/php_memcached.c: In function ?php_memc_get_impl?:
/tmp/pear/temp/memcached/php_memcached.c:369: warning: passing argument 4 of ?memcached_mget_by_key? from incompatible pointer type
/tmp/pear/temp/memcached/php_memcached.c:406: warning: assignment discards qualifiers from pointer target type
/tmp/pear/temp/memcached/php_memcached.c:438: warning: passing argument 4 of ?memcached_mget_by_key? from incompatible pointer type
/tmp/pear/temp/memcached/php_memcached.c: In function ?php_memc_getMulti_impl?:
/tmp/pear/temp/memcached/php_memcached.c:575: warning: passing argument 4 of ?memcached_mget_by_key? from incompatible pointer type
/tmp/pear/temp/memcached/php_memcached.c:605: warning: assignment discards qualifiers from pointer target type
/tmp/pear/temp/memcached/php_memcached.c:608: warning: assignment discards qualifiers from pointer target type
/tmp/pear/temp/memcached/php_memcached.c: In function ?php_memc_getDelayed_impl?:
/tmp/pear/temp/memcached/php_memcached.c:724: warning: passing argument 4 of ?memcached_mget_by_key? from incompatible pointer type
/tmp/pear/temp/memcached/php_memcached.c: In function ?zim_Memcached_fetch?:
/tmp/pear/temp/memcached/php_memcached.c:799: warning: assignment discards qualifiers from pointer target type
/tmp/pear/temp/memcached/php_memcached.c:802: warning: assignment discards qualifiers from pointer target type
/tmp/pear/temp/memcached/php_memcached.c: In function ?zim_Memcached_fetchAll?:
/tmp/pear/temp/memcached/php_memcached.c:850: warning: assignment discards qualifiers from pointer target type
/tmp/pear/temp/memcached/php_memcached.c:853: warning: assignment discards qualifiers from pointer target type
/tmp/pear/temp/memcached/php_memcached.c: In function ?zim_Memcached_setOption?:
/tmp/pear/temp/memcached/php_memcached.c:1783: error: ?memcached_st? has no member named ?hash?
/tmp/pear/temp/memcached/php_memcached.c: In function ?zim_Memcached_getResultMessage?:
/tmp/pear/temp/memcached/php_memcached.c:1862: warning: initialization discards qualifiers from pointer target type
/tmp/pear/temp/memcached/php_memcached.c: In function ?php_memc_do_result_callback?:
/tmp/pear/temp/memcached/php_memcached.c:2322: warning: assignment discards qualifiers from pointer target type
/tmp/pear/temp/memcached/php_memcached.c:2325: warning: assignment discards qualifiers from pointer target type
make: *** [php_memcached.lo] Error 1
ERROR: `make' failed


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-02-25 12:55 UTC] andrei@php.net
Are you compiling against libmemcached-0.38?
 [2010-02-25 13:02 UTC] mailsort at gmail dot com
yes that is correct...
 [2010-02-25 13:06 UTC] andrei@php.net
It's a known problem. Libmemcached-0.38 broke binary compatibility. I'll try to make a release that fixes this soon.
 [2010-02-25 13:22 UTC] mailsort at gmail dot com
I apologize for not being aware of this existing issue.  Thank you again.
 [2010-03-02 00:50 UTC] krozinov at gmail dot com
I can confirm the same compilation problem on Ubuntu 8.04.4 LTS 64-bit.
 [2010-03-13 15:50 UTC] andrei@php.net
Thank you for your bug report. This issue has been fixed
in the latest released version of the package, which you can download at
http://pecl.php.net/get/memcached

Try 1.0.1 release.
 [2010-03-13 16:40 UTC] mailsort at gmail dot com
I was able to compile this in centos 5.14 32bit with version 5.2.13 and libmemcached 0.38.  However in 5.14 64bit and 5.2.13 and libmemcached 0.38 I get this:

/bin/sh /root/memcached-1.0.1/libtool --mode=compile cc -I/usr/local/include/php  -I. -I/root/memcached-1.0.1 -DPHP_ATOM_INC -I/root/memcached-1.0.1/include -I/root/memcached-1.0.1/main -I/root/memcached-1.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  -m64   -c /root/memcached-1.0.1/php_memcached.c -o php_memcached.lo
mkdir .libs
 cc -I/usr/local/include/php -I. -I/root/memcached-1.0.1 -DPHP_ATOM_INC -I/root/memcached-1.0.1/include -I/root/memcached-1.0.1/main -I/root/memcached-1.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 -m64 -c /root/memcached-1.0.1/php_memcached.c  -fPIC -DPIC -o .libs/php_memcached.o
In file included from /usr/local/include/libmemcached/storage.h:15,
                 from /usr/local/include/libmemcached/memcached.h:51,
                 from /root/memcached-1.0.1/php_memcached.c:42:
/usr/local/include/libmemcached/libmemcached/memcached.h:223: error: conflicting types for ?memcached_set_memory_allocators?
/usr/local/include/libmemcached/allocators.h:25: error: previous declaration of ?memcached_set_memory_allocators? was here
/usr/local/include/libmemcached/libmemcached/memcached.h:230: error: conflicting types for ?memcached_get_memory_allocators?
/usr/local/include/libmemcached/allocators.h:32: error: previous declaration of ?memcached_get_memory_allocators? was here
In file included from /root/memcached-1.0.1/php_memcached.c:42:
/usr/local/include/libmemcached/memcached.h:56: error: redefinition of ?struct memcached_st?
/usr/local/include/libmemcached/memcached.h:144: error: conflicting types for ?memcached_clone?
/usr/local/include/libmemcached/libmemcached/memcached.h:122: error: previous declaration of ?memcached_clone? was here
/usr/local/include/libmemcached/memcached.h:147: error: conflicting types for ?memcached_get_user_data?
/usr/local/include/libmemcached/libmemcached/memcached.h:233: error: previous declaration of ?memcached_get_user_data? was here
/root/memcached-1.0.1/php_memcached.c: In function ?php_memc_get_impl?:
/root/memcached-1.0.1/php_memcached.c:369: warning: passing argument 4 of ?memcached_mget_by_key? from incompatible pointer type
/root/memcached-1.0.1/php_memcached.c:406: warning: assignment discards qualifiers from pointer target type
/root/memcached-1.0.1/php_memcached.c:438: warning: passing argument 4 of ?memcached_mget_by_key? from incompatible pointer type
/root/memcached-1.0.1/php_memcached.c: In function ?php_memc_getMulti_impl?:
/root/memcached-1.0.1/php_memcached.c:575: warning: passing argument 4 of ?memcached_mget_by_key? from incompatible pointer type
/root/memcached-1.0.1/php_memcached.c:605: warning: assignment discards qualifiers from pointer target type
/root/memcached-1.0.1/php_memcached.c:608: warning: assignment discards qualifiers from pointer target type
/root/memcached-1.0.1/php_memcached.c: In function ?php_memc_getDelayed_impl?:
/root/memcached-1.0.1/php_memcached.c:724: warning: passing argument 4 of ?memcached_mget_by_key? from incompatible pointer type
/root/memcached-1.0.1/php_memcached.c: In function ?zim_Memcached_fetch?:
/root/memcached-1.0.1/php_memcached.c:799: warning: assignment discards qualifiers from pointer target type
/root/memcached-1.0.1/php_memcached.c:802: warning: assignment discards qualifiers from pointer target type
/root/memcached-1.0.1/php_memcached.c: In function ?zim_Memcached_fetchAll?:
/root/memcached-1.0.1/php_memcached.c:850: warning: assignment discards qualifiers from pointer target type
/root/memcached-1.0.1/php_memcached.c:853: warning: assignment discards qualifiers from pointer target type
/root/memcached-1.0.1/php_memcached.c: In function ?zim_Memcached_getResultMessage?:
/root/memcached-1.0.1/php_memcached.c:1868: warning: initialization discards qualifiers from pointer target type
/root/memcached-1.0.1/php_memcached.c: In function ?php_memc_do_result_callback?:
/root/memcached-1.0.1/php_memcached.c:2328: warning: assignment discards qualifiers from pointer target type
/root/memcached-1.0.1/php_memcached.c:2331: warning: assignment discards qualifiers from pointer target type
make: *** [php_memcached.lo] Error 1
 [2010-03-13 18:09 UTC] andrei@php.net
Sorry, but your problem does not imply a bug in PECL itself.  For a
list of more appropriate places to ask for help using PECL, please
visit http://pecl.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PECL.

This has nothing to do with pecl/memcached. It looks like you have both 0.37 and 0.38 installed at once and they are conflicting.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 10:01:29 2024 UTC