php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59192 php_memcached cannot be compiled
Submitted: 2010-05-06 07:45 UTC Modified: 2010-05-06 11:56 UTC
From: minaev at gmail dot com Assigned:
Status: Closed Package: memcached (PECL)
PHP Version: 5.3.2 OS: Ubuntu Linux 9.10
Private report: No CVE-ID:
 [2010-05-06 07:45 UTC] minaev at gmail dot com
Description:
------------
php_memcached v.1.0.2 compilation fails. See error messages in 'Actual result' section. Version 1.0.1 compiles successfully.

The same result was received with PHP 5.3.2, PHP-FPM 5.3.2, PHP 5.3.1. 

Actual result:
--------------
~/src/memcached-1.0.2$ make
/bin/sh /home/minaev/src/memcached-1.0.2/libtool --mode=compile gcc -I/usr/local/stow/php/include/php  -I. -I/home/minaev/src/memcached-1.0.2 -DPHP_ATOM_INC -I/home/minaev/src/memcached-1.0.2/include -I/home/minaev/src/memcached-1.0.2/main -I/home/minaev/src/memcached-1.0.2 -I/usr/local/stow/php/include/php -I/usr/local/stow/php/include/php/main -I/usr/local/stow/php/include/php/TSRM -I/usr/local/stow/php/include/php/Zend -I/usr/local/stow/php/include/php/ext -I/usr/local/stow/php/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /home/minaev/src/memcached-1.0.2/php_memcached.c -o php_memcached.lo 
 gcc -I/usr/local/stow/php/include/php -I. -I/home/minaev/src/memcached-1.0.2 -DPHP_ATOM_INC -I/home/minaev/src/memcached-1.0.2/include -I/home/minaev/src/memcached-1.0.2/main -I/home/minaev/src/memcached-1.0.2 -I/usr/local/stow/php/include/php -I/usr/local/stow/php/include/php/main -I/usr/local/stow/php/include/php/TSRM -I/usr/local/stow/php/include/php/Zend -I/usr/local/stow/php/include/php/ext -I/usr/local/stow/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/minaev/src/memcached-1.0.2/php_memcached.c  -fPIC -DPIC -o .libs/php_memcached.o
/home/minaev/src/memcached-1.0.2/php_memcached.c:168: warning: useless storage class specifier in empty declaration
/home/minaev/src/memcached-1.0.2/php_memcached.c:203: error: expected declaration specifiers or '...' before 'memcached_server_instance_st'
/home/minaev/src/memcached-1.0.2/php_memcached.c:204: error: expected declaration specifiers or '...' before 'memcached_server_instance_st'
/home/minaev/src/memcached-1.0.2/php_memcached.c:205: error: expected declaration specifiers or '...' before 'memcached_server_instance_st'
/home/minaev/src/memcached-1.0.2/php_memcached.c: In function 'zim_Memcached_getServerList':
/home/minaev/src/memcached-1.0.2/php_memcached.c:1500: warning: assignment from incompatible pointer type
/home/minaev/src/memcached-1.0.2/php_memcached.c: In function 'zim_Memcached_getStats':
/home/minaev/src/memcached-1.0.2/php_memcached.c:1569: warning: assignment from incompatible pointer type
/home/minaev/src/memcached-1.0.2/php_memcached.c: In function 'zim_Memcached_getVersion':
/home/minaev/src/memcached-1.0.2/php_memcached.c:1604: warning: assignment from incompatible pointer type
/home/minaev/src/memcached-1.0.2/php_memcached.c: At top level:
/home/minaev/src/memcached-1.0.2/php_memcached.c:1886: error: expected declaration specifiers or '...' before 'memcached_server_instance_st'
/home/minaev/src/memcached-1.0.2/php_memcached.c: In function 'php_memc_do_serverlist_callback':
/home/minaev/src/memcached-1.0.2/php_memcached.c:1892: error: 'instance' undeclared (first use in this function)
/home/minaev/src/memcached-1.0.2/php_memcached.c:1892: error: (Each undeclared identifier is reported only once
/home/minaev/src/memcached-1.0.2/php_memcached.c:1892: error: for each function it appears in.)
/home/minaev/src/memcached-1.0.2/php_memcached.c: At top level:
/home/minaev/src/memcached-1.0.2/php_memcached.c:1899: error: expected declaration specifiers or '...' before 'memcached_server_instance_st'
/home/minaev/src/memcached-1.0.2/php_memcached.c: In function 'php_memc_do_stats_callback':
/home/minaev/src/memcached-1.0.2/php_memcached.c:1904: error: 'instance' undeclared (first use in this function)
/home/minaev/src/memcached-1.0.2/php_memcached.c: At top level:
/home/minaev/src/memcached-1.0.2/php_memcached.c:1942: error: expected declaration specifiers or '...' before 'memcached_server_instance_st'
/home/minaev/src/memcached-1.0.2/php_memcached.c: In function 'php_memc_do_version_callback':
/home/minaev/src/memcached-1.0.2/php_memcached.c:1949: error: 'instance' undeclared (first use in this function)
make: *** [php_memcached.lo] Error 1

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-05-06 11:56 UTC] andrei@php.net
1.0.2 requires libmemcached 0.39+. I forgot to enforce that in configure script..
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Thu Apr 24 05:02:47 2014 UTC