php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58788 Compile fails
Submitted: 2009-08-03 06:11 UTC Modified: 2009-12-03 12:42 UTC
From: matrix at alpha-force dot net Assigned:
Status: Closed Package: memcached (PECL)
PHP Version: 5.3.0RC4 OS: Debian test
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: matrix at alpha-force dot net
New email:
PHP Version: OS:

 

 [2009-08-03 06:11 UTC] matrix at alpha-force dot net
Description:
------------
Hi,

When trying to compile Memcached with igbinary support, I get the follow error:

/root/source/memcached-1.0.0/php_memcached.c: In function 'php_memc_zval_to_payload':
/root/source/memcached-1.0.0/php_memcached.c:1996: error: too few arguments to function 'php_json_encode'
/root/source/memcached-1.0.0/php_memcached.c: In function 'php_memc_zval_from_payload':
/root/source/memcached-1.0.0/php_memcached.c:2161: error: too few arguments to function 'php_json_decode'
make: *** [php_memcached.lo] Error 1


My configure line:
./configure --enable-memcached --disable-memcached-session --enable-memcached-igbinary --with-php-config=/opt/php/bin/php-config

My PHP is 5.3.0 with configure line:
./configure \
--prefix=/opt/php \
--disable-libxml \
--disable-simplexml \
--disable-xml \
--disable-xmlreader \
--disable-xmlwriter \
--disable-session \
--disable-dom \
--disable-ipv6 \
--disable-pdo \
--disable-posix \
--disable-phar \
--enable-json \
--enable-intl \
--enable-sockets \
--enable-mbstring \
--enable-mbregex \
--without-pear \
--without-iconv \
--without-sqlite \
--without-sqlite3 \
--with-mysqli=mysqlnd \
--with-mcrypt=/usr/bin/mcrypt \
--with-zlib \



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-08-03 06:12 UTC] matrix at alpha-force dot net
If I configure without igbinary support, it compiles and works perfectly.
 [2009-08-03 13:33 UTC] andrei@php.net
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.

This is being fixed in the next release.
 [2009-12-02 06:05 UTC] cmptuomp3 at gmail dot com
It does not seem to be fixed:
hed-1.0.0/include -I/root/A/memcached-1.0.0/main -I/root/A/memcached-1.0.0 -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 /root/A/memcached-1.0.0/php_memcached.c -o php_memcached.lo 
mkdir .libs
 cc -I/usr/include/php -I/usr/include/php -I. -I/root/A/memcached-1.0.0 -DPHP_ATOM_INC -I/root/A/memcached-1.0.0/include -I/root/A/memcached-1.0.0/main -I/root/A/memcached-1.0.0 -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 /root/A/memcached-1.0.0/php_memcached.c  -fPIC -DPIC -o .libs/php_memcached.o
/root/A/memcached-1.0.0/php_memcached.c: In function 'php_memc_get_impl':
/root/A/memcached-1.0.0/php_memcached.c:369: warning: passing argument 4 of 'memcached_mget_by_key' from incompatible pointer type
/root/A/memcached-1.0.0/php_memcached.c:438: warning: passing argument 4 of 'memcached_mget_by_key' from incompatible pointer type
/root/A/memcached-1.0.0/php_memcached.c: In function 'php_memc_getMulti_impl':
/root/A/memcached-1.0.0/php_memcached.c:575: warning: passing argument 4 of 'memcached_mget_by_key' from incompatible pointer type
/root/A/memcached-1.0.0/php_memcached.c: In function 'php_memc_getDelayed_impl':
/root/A/memcached-1.0.0/php_memcached.c:724: warning: passing argument 4 of 'memcached_mget_by_key' from incompatible pointer type
/root/A/memcached-1.0.0/php_memcached.c: In function 'php_memc_zval_to_payload':
/root/A/memcached-1.0.0/php_memcached.c:1996: error: too few arguments to function 'php_json_encode'
/root/A/memcached-1.0.0/php_memcached.c: In function 'php_memc_zval_from_payload':
/root/A/memcached-1.0.0/php_memcached.c:2161: error: too few arguments to function 'php_json_decode'
make: *** [php_memcached.lo] Error 1

if I remove --enable-igbinary from the configure options it compiles fine
 [2009-12-02 12:15 UTC] andrei@php.net
I didn't mean CVS, but rather the github repo: http://github.com/andreiz/php-memcached
 [2009-12-03 07:11 UTC] cmptuomp3 at gmail dot com
Thanks a lot, it works great!
Do you know if this will be merged to the pecl.php.net? I'm building a RPM package for this extension and was wondering. 

Ivo
 [2009-12-03 12:42 UTC] andrei@php.net
I've removed the source code for this from Subversion since it's hosted on GitHub. You can get the latest code from there.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 05:01:30 2024 UTC