php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62168 build fails
Submitted: 2012-05-26 17:53 UTC Modified: 2013-10-11 05:43 UTC
Votes:3
Avg. Score:4.7 ± 0.5
Reproduced:3 of 3 (100.0%)
Same Version:3 (100.0%)
Same OS:1 (33.3%)
From: symlink at gmail dot com Assigned: pajoye (profile)
Status: Closed Package: memcache (PECL)
PHP Version: 5.4.3 OS: OSX 10.7.3
Private report: No CVE-ID: None
 [2012-05-26 17:53 UTC] symlink at gmail dot com
Description:
------------
Im getting the following error on a download of 3.0.6 against php 5.4.3 during 
the make process:

/bin/sh /tmp/memcache-3.0.6/libtool --mode=compile cc -I/ampd/apps/include/php -
I. -I/tmp/memcache-3.0.6 -DPHP_ATOM_INC -I/tmp/memcache-3.0.6/include -
I/tmp/memcache-3.0.6/main -I/tmp/memcache-3.0.6 -I/ampd/apps/include/php -
I/ampd/apps/include/php/main -I/ampd/apps/include/php/TSRM -
I/ampd/apps/include/php/Zend -I/ampd/apps/include/php/ext -
I/ampd/apps/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/memcache-
3.0.6/memcache.c -o memcache.lo 
mkdir .libs
 cc -I/ampd/apps/include/php -I. -I/tmp/memcache-3.0.6 -DPHP_ATOM_INC -
I/tmp/memcache-3.0.6/include -I/tmp/memcache-3.0.6/main -I/tmp/memcache-3.0.6 -
I/ampd/apps/include/php -I/ampd/apps/include/php/main -
I/ampd/apps/include/php/TSRM -I/ampd/apps/include/php/Zend -
I/ampd/apps/include/php/ext -I/ampd/apps/include/php/ext/date/lib -DHAVE_CONFIG_H 
-g -O2 -c /tmp/memcache-3.0.6/memcache.c  -fno-common -DPIC -o .libs/memcache.o
In file included from /tmp/memcache-3.0.6/memcache.c:30:
./php_memcache.h:75:12: warning: 'IS_CALLABLE' macro redefined
#   define IS_CALLABLE(cb_zv, flags, cb_sp) zend_is_callable((cb_zv), (flags), 
(cb_sp) TSRMLS_CC)
           ^
/ampd/apps/include/php/Zend/zend.h:576:9: note: previous definition is here
#define IS_CALLABLE     10
        ^
/tmp/memcache-3.0.6/memcache.c:721:44: error: too few arguments to function call, 
expected 3, have 2
                        zend_list_insert(mmc, le_memcache_server);
                        ~~~~~~~~~~~~~~~~                        ^
/ampd/apps/include/php/Zend/zend_list.h:73:1: note: 'zend_list_insert' declared 
here
ZEND_API int zend_list_insert(void *ptr, int type TSRMLS_DC);
^
/ampd/apps/include/php/main/../main/php_config.h:6:19: note: expanded from macro 
'ZEND_API'
# define ZEND_API __attribute__ ((visibility("default")))
                  ^
/tmp/memcache-3.0.6/memcache.c:738:44: error: too few arguments to function call, 
expected 3, have 2
                        zend_list_insert(mmc, le_memcache_server);
                        ~~~~~~~~~~~~~~~~                        ^
/ampd/apps/include/php/Zend/zend_list.h:73:1: note: 'zend_list_insert' declared 
here
ZEND_API int zend_list_insert(void *ptr, int type TSRMLS_DC);
^
/ampd/apps/include/php/main/../main/php_config.h:6:19: note: expanded from macro 
'ZEND_API'
# define ZEND_API __attribute__ ((visibility("default")))
                  ^
/tmp/memcache-3.0.6/memcache.c:778:52: error: too few arguments to function call, 
expected 3, have 2
                list_id = zend_list_insert(pool, le_memcache_pool);
                          ~~~~~~~~~~~~~~~~                       ^
/ampd/apps/include/php/Zend/zend_list.h:73:1: note: 'zend_list_insert' declared 
here
ZEND_API int zend_list_insert(void *ptr, int type TSRMLS_DC);
^
/ampd/apps/include/php/main/../main/php_config.h:6:19: note: expanded from macro 
'ZEND_API'
# define ZEND_API __attribute__ ((visibility("default")))
                  ^
/tmp/memcache-3.0.6/memcache.c:839:52: error: too few arguments to function call, 
expected 3, have 2
                list_id = zend_list_insert(pool, le_memcache_pool);
                          ~~~~~~~~~~~~~~~~                       ^
/ampd/apps/include/php/Zend/zend_list.h:73:1: note: 'zend_list_insert' declared 
here
ZEND_API int zend_list_insert(void *ptr, int type TSRMLS_DC);
^
/ampd/apps/include/php/main/../main/php_config.h:6:19: note: expanded from macro 
'ZEND_API'
# define ZEND_API __attribute__ ((visibility("default")))
                  ^
1 warning and 4 errors generated.
make: *** [memcache.lo] Error 1


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-05-31 15:05 UTC] diego dot gaston dot gutierrez at gmail dot com
The Gentoo community has come up with a patch for this issue. While they haven't marked the issue as solved, the patch they submitted to their issue worked for me.

https://bugs.gentoo.org/show_bug.cgi?id=407441

My environment:
slackware64 13.37 with customizations, PHP 5.4.3 built from slackware64-current slackbuild.
 [2012-06-30 18:14 UTC] ab@php.net
You could also try this branch now (the current beta) 
http://svn.php.net/viewvc/pecl/memcache/branches/NON_BLOCKING_IO/ which has 
various new fixes.
 [2013-10-11 05:43 UTC] pajoye@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: pajoye
 [2013-10-11 05:43 UTC] pajoye@php.net
fixed in "nio" branch (3.x branch)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 01 20:01:29 2024 UTC