php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59276 libmemcached 0.40 make failure
Submitted: 2010-06-21 18:00 UTC Modified: 2012-03-07 17:39 UTC
Votes:3
Avg. Score:4.3 ± 0.9
Reproduced:3 of 3 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: mike at digitalstruct dot com Assigned: andrei (profile)
Status: Closed Package: memcached (PECL)
PHP Version: 5.2.10 OS: RHEL 5.4
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 !
Your email address:
MUST BE VALID
Solve the problem:
4 + 11 = ?
Subscribe to this entry?

 
 [2010-06-21 18:00 UTC] mike at digitalstruct dot com
Description:
------------
During an upgrade:
pecl upgrade memcached using Zend Server 5.2.10 (community 
edition) I encounter a make failure.

See actual result for full stack.

Reproduce code:
---------------
pecl install memcached when installing libmemcached-0.40 with libevent 1.4.14.

Expected result:
----------------
well a make succeeded. 

Actual result:
--------------
creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/sh /var/tmp/pear-build-root/memcached-1.0.2/libtool --
mode=compile cc -I/usr/local/zend/include/php  -I. -
I/temp/pear/memcached -DPHP_ATOM_INC -I/var/tmp/pear-build-
root/memcached-1.0.2/include -I/var/tmp/pear-build-
root/memcached-1.0.2/main -I/temp/pear/memcached -
I/usr/local/zend/include/php -
I/usr/local/zend/include/php/main -
I/usr/local/zend/include/php/TSRM -
I/usr/local/zend/include/php/Zend -
I/usr/local/zend/include/php/ext -
I/usr/local/zend/include/php/ext/date/lib  -DHAVE_CONFIG_H  
-g -O2   -c /temp/pear/memcached/php_memcached.c -o 
php_memcached.lo
mkdir .libs
 cc -I/usr/local/zend/include/php -I. -I/temp/pear/memcached 
-DPHP_ATOM_INC -I/var/tmp/pear-build-root/memcached-
1.0.2/include -I/var/tmp/pear-build-root/memcached-
1.0.2/main -I/temp/pear/memcached -
I/usr/local/zend/include/php -
I/usr/local/zend/include/php/main -
I/usr/local/zend/include/php/TSRM -
I/usr/local/zend/include/php/Zend -
I/usr/local/zend/include/php/ext -
I/usr/local/zend/include/php/ext/date/lib -DHAVE_CONFIG_H -g 
-O2 -c /temp/pear/memcached/php_memcached.c  -fPIC -DPIC -o 
.libs/php_memcached.o
/temp/pear/memcached/php_memcached.c:168: warning: useless 
storage class specifier in empty declaration
/temp/pear/memcached/php_memcached.c:203: error: expected 
declaration specifiers or '...' before 
'memcached_server_instance_st'
/temp/pear/memcached/php_memcached.c:204: error: expected 
declaration specifiers or '...' before 
'memcached_server_instance_st'
/temp/pear/memcached/php_memcached.c:205: error: expected 
declaration specifiers or '...' before 
'memcached_server_instance_st'
/temp/pear/memcached/php_memcached.c: In function 
'php_memc_get_impl':
/temp/pear/memcached/php_memcached.c:382: warning: passing 
argument 4 of 'memcached_mget_by_key' from incompatible 
pointer type
/temp/pear/memcached/php_memcached.c:451: warning: passing 
argument 4 of 'memcached_mget_by_key' from incompatible 
pointer type
/temp/pear/memcached/php_memcached.c: In function 
'php_memc_getMulti_impl':
/temp/pear/memcached/php_memcached.c:588: warning: passing 
argument 4 of 'memcached_mget_by_key' from incompatible 
pointer type
/temp/pear/memcached/php_memcached.c: In function 
'php_memc_getDelayed_impl':
/temp/pear/memcached/php_memcached.c:737: warning: passing 
argument 4 of 'memcached_mget_by_key' from incompatible 
pointer type
/temp/pear/memcached/php_memcached.c: In function 
'zim_Memcached_getServerList':
/temp/pear/memcached/php_memcached.c:1500: warning: 
assignment from incompatible pointer type
/temp/pear/memcached/php_memcached.c: In function 
'zim_Memcached_getStats':
/temp/pear/memcached/php_memcached.c:1569: warning: 
assignment from incompatible pointer type
/temp/pear/memcached/php_memcached.c: In function 
'zim_Memcached_getVersion':
/temp/pear/memcached/php_memcached.c:1604: warning: 
assignment from incompatible pointer type
/temp/pear/memcached/php_memcached.c: In function 
'zim_Memcached_getResultMessage':
/temp/pear/memcached/php_memcached.c:1826: warning: 
initialization discards qualifiers from pointer target type
/temp/pear/memcached/php_memcached.c: At top level:
/temp/pear/memcached/php_memcached.c:1886: error: expected 
declaration specifiers or '...' before 
'memcached_server_instance_st'
/temp/pear/memcached/php_memcached.c: In function 
'php_memc_do_serverlist_callback':
/temp/pear/memcached/php_memcached.c:1892: error: 'instance' 
undeclared (first use in this function)
/temp/pear/memcached/php_memcached.c:1892: error: (Each 
undeclared identifier is reported only once
/temp/pear/memcached/php_memcached.c:1892: error: for each 
function it appears in.)
/temp/pear/memcached/php_memcached.c: At top level:
/temp/pear/memcached/php_memcached.c:1899: error: expected 
declaration specifiers or '...' before 
'memcached_server_instance_st'
/temp/pear/memcached/php_memcached.c: In function 
'php_memc_do_stats_callback':
/temp/pear/memcached/php_memcached.c:1904: error: 'instance' 
undeclared (first use in this function)
/temp/pear/memcached/php_memcached.c: At top level:
/temp/pear/memcached/php_memcached.c:1942: error: expected 
declaration specifiers or '...' before 
'memcached_server_instance_st'
/temp/pear/memcached/php_memcached.c: In function 
'php_memc_do_version_callback':
/temp/pear/memcached/php_memcached.c:1949: error: 'instance' 
undeclared (first use in this function)
make: *** [php_memcached.lo] Error 1
ERROR: `make' failed


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-08-19 06:45 UTC] daniz at rocketmail dot com
Same here on ubuntu 10.04 64bit


/app/sources/memcached-1.0.2/php_memcached.c:168: warning: useless storage class specifier in empty declaration
/app/sources/memcached-1.0.2/php_memcached.c:203: error: expected declaration specifiers or '...' before 'memcached_server_instance_st'
/app/sources/memcached-1.0.2/php_memcached.c:204: error: expected declaration specifiers or '...' before 'memcached_server_instance_st'
/app/sources/memcached-1.0.2/php_memcached.c:205: error: expected declaration specifiers or '...' before 'memcached_server_instance_st'
/app/sources/memcached-1.0.2/php_memcached.c: In function 'php_memc_get_impl':
/app/sources/memcached-1.0.2/php_memcached.c:382: warning: passing argument 4 of 'memcached_mget_by_key' from incompatible pointer type
/usr/include/libmemcached/memcached_get.h:39: note: expected 'const char * const*' but argument is of type 'char **'
/app/sources/memcached-1.0.2/php_memcached.c:451: warning: passing argument 4 of 'memcached_mget_by_key' from incompatible pointer type
/usr/include/libmemcached/memcached_get.h:39: note: expected 'const char * const*' but argument is of type 'char **'
/app/sources/memcached-1.0.2/php_memcached.c: In function 'php_memc_getMulti_impl':
/app/sources/memcached-1.0.2/php_memcached.c:588: warning: passing argument 4 of 'memcached_mget_by_key' from incompatible pointer type
/usr/include/libmemcached/memcached_get.h:39: note: expected 'const char * const*' but argument is of type 'char **'
/app/sources/memcached-1.0.2/php_memcached.c: In function 'php_memc_getDelayed_impl':
/app/sources/memcached-1.0.2/php_memcached.c:737: warning: passing argument 4 of 'memcached_mget_by_key' from incompatible pointer type
/usr/include/libmemcached/memcached_get.h:39: note: expected 'const char * const*' but argument is of type 'char **'
/app/sources/memcached-1.0.2/php_memcached.c: In function 'zim_Memcached_getServerList':
/app/sources/memcached-1.0.2/php_memcached.c:1500: warning: assignment from incompatible pointer type
/app/sources/memcached-1.0.2/php_memcached.c: In function 'zim_Memcached_getStats':
/app/sources/memcached-1.0.2/php_memcached.c:1569: warning: assignment from incompatible pointer type
/app/sources/memcached-1.0.2/php_memcached.c: In function 'zim_Memcached_getVersion':
/app/sources/memcached-1.0.2/php_memcached.c:1604: warning: assignment from incompatible pointer type
/app/sources/memcached-1.0.2/php_memcached.c: At top level:
/app/sources/memcached-1.0.2/php_memcached.c:1886: error: expected declaration specifiers or '...' before 'memcached_server_instance_st'
/app/sources/memcached-1.0.2/php_memcached.c: In function 'php_memc_do_serverlist_callback':
/app/sources/memcached-1.0.2/php_memcached.c:1892: error: 'instance' undeclared (first use in this function)
/app/sources/memcached-1.0.2/php_memcached.c:1892: error: (Each undeclared identifier is reported only once
/app/sources/memcached-1.0.2/php_memcached.c:1892: error: for each function it appears in.)
/app/sources/memcached-1.0.2/php_memcached.c: At top level:
/app/sources/memcached-1.0.2/php_memcached.c:1899: error: expected declaration specifiers or '...' before 'memcached_server_instance_st'
/app/sources/memcached-1.0.2/php_memcached.c: In function 'php_memc_do_stats_callback':
/app/sources/memcached-1.0.2/php_memcached.c:1904: error: 'instance' undeclared (first use in this function)
/app/sources/memcached-1.0.2/php_memcached.c: At top level:
/app/sources/memcached-1.0.2/php_memcached.c:1942: error: expected declaration specifiers or '...' before 'memcached_server_instance_st'
/app/sources/memcached-1.0.2/php_memcached.c: In function 'php_memc_do_version_callback':
/app/sources/memcached-1.0.2/php_memcached.c:1949: error: 'instance' undeclared (first use in this function)
make: *** [php_memcached.lo] Error 1
 [2010-09-30 18:55 UTC] kuteninja at gmail dot com
The same here, although I'm on this versions (all installed 
using portage):

memcached-1.4.5
libmemcached-0.39
pecl-memcached-1.0.0

When I try to update or manually compile the 1.0.2 version, 
"making" it fails with the same error output than the first 
one that's posted here (I'm not going to copypaste it 
again).

In case this helps, I'm also using this versions, and I'm 
running Gentoo on an old Pentium IV (x86):

libtool-2.2.10
gcc-4.4.4-r2
php-5.3.3-r1
autoconf-2.67
make-3.81-r2
automake-1.11.1
 [2011-11-08 20:40 UTC] devon dot noonan at gmail dot com
I am seeing a similar error. PHP5.3, Pecel memcached 1.0.2, libmemcached 0.31  
on Centos 5.7 

running: make
/bin/sh /tmp/pear/install/pear-build-rootimIJKE/memcached-1.0.2/libtool --
mode=compile cc -I/usr/include/php  -I. -I/tmp/pear/install/memcached -
DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootimIJKE/memcached-1.0.2/include 
-I/tmp/pear/install/pear-build-rootimIJKE/memcached-1.0.2/main -
I/tmp/pear/install/memcached -I/usr/include/php -I/usr/include/php/main -
I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -
I/usr/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c 
/tmp/pear/install/memcached/php_memcached.c -o php_memcached.lo
mkdir .libs
 cc -I/usr/include/php -I. -I/tmp/pear/install/memcached -DPHP_ATOM_INC -
I/tmp/pear/install/pear-build-rootimIJKE/memcached-1.0.2/include -
I/tmp/pear/install/pear-build-rootimIJKE/memcached-1.0.2/main -
I/tmp/pear/install/memcached -I/usr/include/php -I/usr/include/php/main -
I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -
I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c 
/tmp/pear/install/memcached/php_memcached.c  -fPIC -DPIC -o 
.libs/php_memcached.o
/tmp/pear/install/memcached/php_memcached.c:168: warning: useless storage class 
specifier in empty declaration
/tmp/pear/install/memcached/php_memcached.c:203: error: expected declaration 
specifiers or '...' before 'memcached_server_instance_st'
/tmp/pear/install/memcached/php_memcached.c:204: error: expected declaration 
specifiers or '...' before 'memcached_server_instance_st'
/tmp/pear/install/memcached/php_memcached.c:205: error: expected declaration 
specifiers or '...' before 'memcached_server_instance_st'
/tmp/pear/install/memcached/php_memcached.c: In function 
'zim_Memcached_getServerList':
/tmp/pear/install/memcached/php_memcached.c:1500: warning: assignment from 
incompatible pointer type
/tmp/pear/install/memcached/php_memcached.c: In function 
'zim_Memcached_getStats':
/tmp/pear/install/memcached/php_memcached.c:1569: warning: assignment from 
incompatible pointer type
/tmp/pear/install/memcached/php_memcached.c: In function 
'zim_Memcached_getVersion':
/tmp/pear/install/memcached/php_memcached.c:1604: warning: assignment from 
incompatible pointer type
/tmp/pear/install/memcached/php_memcached.c: At top level:
/tmp/pear/install/memcached/php_memcached.c:1886: error: expected declaration 
specifiers or '...' before 'memcached_server_instance_st'
/tmp/pear/install/memcached/php_memcached.c: In function 
'php_memc_do_serverlist_callback':
/tmp/pear/install/memcached/php_memcached.c:1892: error: 'instance' undeclared 
(first use in this function)
/tmp/pear/install/memcached/php_memcached.c:1892: error: (Each undeclared 
identifier is reported only once
/tmp/pear/install/memcached/php_memcached.c:1892: error: for each function it 
appears in.)
/tmp/pear/install/memcached/php_memcached.c: At top level:
/tmp/pear/install/memcached/php_memcached.c:1899: error: expected declaration 
specifiers or '...' before 'memcached_server_instance_st'
/tmp/pear/install/memcached/php_memcached.c: In function 
'php_memc_do_stats_callback':
/tmp/pear/install/memcached/php_memcached.c:1904: error: 'instance' undeclared 
(first use in this function)
/tmp/pear/install/memcached/php_memcached.c: At top level:
/tmp/pear/install/memcached/php_memcached.c:1942: error: expected declaration 
specifiers or '...' before 'memcached_server_instance_st'
/tmp/pear/install/memcached/php_memcached.c: In function 
'php_memc_do_version_callback':
/tmp/pear/install/memcached/php_memcached.c:1949: error: 'instance' undeclared 
(first use in this function)
make: *** [php_memcached.lo] Error 1
ERROR: `make' failed
 [2012-03-07 17:39 UTC] andrei@php.net
Please try newer versions of libmemcached and php-memcached.
 [2012-03-07 17:39 UTC] andrei@php.net
-Status: Assigned +Status: Closed
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Oct 27 18:01:23 2020 UTC