php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61324 failure to build memcache module
Submitted: 2012-03-08 02:22 UTC Modified: 2012-03-08 03:38 UTC
From: dkelsey at bstage dot ca Assigned:
Status: Closed Package: memcache (PECL)
PHP Version: 5.4.0 OS: Solaris 10
Private report: No CVE-ID: None
 [2012-03-08 02:22 UTC] dkelsey at bstage dot ca
Description:
------------
I've got php5.4.0 build.  I'm trying to add memcache through pecl so I can use 
memcache.  building fails.



/opt/bstage/php5.3.8/bin/pecl download memcache
gtar xavf memcache-2.2.6.tgz
./configure --with-php-config=/opt/bstage/php5.4.0/gamefront/bin/php-config
make
/bin/bash /opt/bstage/php5.4.0/gamefront/bin/memcache-2.2.6/libtool --
mode=compile gcc -I/opt/bstage/php5.4.0/gamefront/include/php -I. -
I/opt/bstage/php5.4.0/gamefront/bin/memcache-2.2.6 -DPHP_ATOM_INC -
I/opt/bstage/php5.4.0/gamefront/bin/memcache-2.2.6/include -
I/opt/bstage/php5.4.0/gamefront/bin/memcache-2.2.6/main -
I/opt/bstage/php5.4.0/gamefront/bin/memcache-2.2.6 -
I/opt/bstage/php5.4.0/gamefront/include/php -
I/opt/bstage/php5.4.0/gamefront/include/php/main -
I/opt/bstage/php5.4.0/gamefront/include/php/TSRM -
I/opt/bstage/php5.4.0/gamefront/include/php/Zend -
I/opt/bstage/php5.4.0/gamefront/include/php/ext -
I/opt/bstage/php5.4.0/gamefront/include/php/ext/date/lib  -DHAVE_CONFIG_H  -
D_REENTRANT -D_THREAD_SAFE -O3 -pipe -pthreads   -c 
/opt/bstage/php5.4.0/gamefront/bin/memcache-2.2.6/memcache.c -o memcache.lo 
 gcc -I/opt/bstage/php5.4.0/gamefront/include/php -I. -
I/opt/bstage/php5.4.0/gamefront/bin/memcache-2.2.6 -DPHP_ATOM_INC -
I/opt/bstage/php5.4.0/gamefront/bin/memcache-2.2.6/include -
I/opt/bstage/php5.4.0/gamefront/bin/memcache-2.2.6/main -
I/opt/bstage/php5.4.0/gamefront/bin/memcache-2.2.6 -
I/opt/bstage/php5.4.0/gamefront/include/php -
I/opt/bstage/php5.4.0/gamefront/include/php/main -
I/opt/bstage/php5.4.0/gamefront/include/php/TSRM -
I/opt/bstage/php5.4.0/gamefront/include/php/Zend -
I/opt/bstage/php5.4.0/gamefront/include/php/ext -
I/opt/bstage/php5.4.0/gamefront/include/php/ext/date/lib -DHAVE_CONFIG_H -
D_REENTRANT -D_THREAD_SAFE -O3 -pipe -pthreads -c 
/opt/bstage/php5.4.0/gamefront/bin/memcache-2.2.6/memcache.c  -fPIC -DPIC -o 
.libs/memcache.o
/opt/bstage/php5.4.0/gamefront/bin/memcache-2.2.6/memcache.c: In function 
`php_mmc_connect':
/opt/bstage/php5.4.0/gamefront/bin/memcache-2.2.6/memcache.c:1970: error: too 
few arguments to function `zend_list_insert'
/opt/bstage/php5.4.0/gamefront/bin/memcache-2.2.6/memcache.c:1987: error: too 
few arguments to function `zend_list_insert'
/opt/bstage/php5.4.0/gamefront/bin/memcache-2.2.6/memcache.c: In function 
`zif_memcache_add_server':
/opt/bstage/php5.4.0/gamefront/bin/memcache-2.2.6/memcache.c:2047: error: called 
object is not a function
/opt/bstage/php5.4.0/gamefront/bin/memcache-2.2.6/memcache.c:2077: error: too 
few arguments to function `zend_list_insert'
/opt/bstage/php5.4.0/gamefront/bin/memcache-2.2.6/memcache.c: In function 
`zif_memcache_set_server_params':
/opt/bstage/php5.4.0/gamefront/bin/memcache-2.2.6/memcache.c:2133: error: called 
object is not a function
/opt/bstage/php5.4.0/gamefront/bin/memcache-2.2.6/memcache.c: In function 
`mmc_find_persistent':
/opt/bstage/php5.4.0/gamefront/bin/memcache-2.2.6/memcache.c:2232: error: too 
few arguments to function `zend_list_insert'
/opt/bstage/php5.4.0/gamefront/bin/memcache-2.2.6/memcache.c:2250: error: too 
few arguments to function `zend_list_insert'
*** Error code 1
make: Fatal error: Command failed for target `memcache.lo'


I've looked around and don't see anything on this.  zend_list_inset DOES have 2 
params.


Expected result:
----------------
I'd expect that I'd be able to compile.

Actual result:
--------------
error: too few arguments to function `zend_list_insert'

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-03-08 02:24 UTC] dkelsey at bstage dot ca
-Summary: failure to build +Summary: failure to build memcache module
 [2012-03-08 02:24 UTC] dkelsey at bstage dot ca
altered the summary to more accurately reflect the problem.
 [2012-03-08 03:38 UTC] dkelsey at bstage dot ca
-Status: Open +Status: Closed
 [2012-03-08 03:38 UTC] dkelsey at bstage dot ca
Ok solved it.  I looked through the php code base for calls for zend_list_insert 
and found that in every call the second parameter had TSRMLS_CC after it.

made the changes to memcache.c and the compile worked.
 [2012-05-12 16:49 UTC] pracanowo at gmail dot com
Can you share your FIX
 [2012-05-12 16:58 UTC] emial at adsad dot pl
OK i see now:

list_id = zend_list_insert(pool, le_memcache_pool TSRMLS_CC);

ADD to all error TSRMLS_CC on end
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 01 20:01:29 2024 UTC