Bug #59276 [Com]: libmemcached 0.40 make failure
| From: | devon dot noonan at gmail dot com | Date: | Tue, 08 Nov 2011 20:40:02 +0000 |
| Subject: | Bug #59276 [Com]: libmemcached 0.40 make failure | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-164974@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=59276&edit=1
ID: 59276
Comment by: devon dot noonan at gmail dot com
Reported by: mike at digitalstruct dot com
Summary: libmemcached 0.40 make failure
Status: Assigned
Type: Bug
Package: memcached
Operating System: RHEL 5.4
PHP Version: 5.2.10
Assigned To: andrei
Block user comment: N
Private report: N
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[2010-09-30 18:55:47] 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
------------------------------------------------------------------------
[2010-08-19 06:45:35] 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-06-21 18:00:25] 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
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=59276&edit=1