php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59549 fail to compile memcached with igbinary 1.0.2
Submitted: 2010-12-24 00:46 UTC Modified: 2012-03-07 17:10 UTC
From: amiroot at yahoo dot com Assigned: andrei (profile)
Status: Closed Package: memcached (PECL)
PHP Version: 5.3.4 OS: Linux RHEL 5
Private report: No CVE-ID: None
 [2010-12-24 00:46 UTC] amiroot at yahoo dot com
Description:
------------
I'm using PHP 5.3.4. I installed the latest version of igbinary (downloaded from https://github.com/phadej/igbinary) and it works fine. Then I tried install php memcached. Again I tried install the latest version from https://github.com/php-memcached-dev/php-memcached. I used command phpize to create the package source file. Then I used the following directive to config memcached:

./configure --enable-memcached-igbinary --with-php-config=/usr/local/bin/php-config --with-libmemcached-dir=/usr/local

The libmemcached I'm using is 0.44. Then I tried make it prompt me the following error:

[root@localhost memcached-1.0.2]# make
/bin/sh /usr/local/src/memcached-1.0.2/libtool --mode=compile cc -I/usr/local/include/php -I/usr/local/include/php -I. -I/usr/local/src/memcached-1.0.2 -DPHP_ATOM_INC -I/usr/local/src/memcached-1.0.2/include -I/usr/local/src/memcached-1.0.2/main -I/usr/local/src/memcached-1.0.2 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include  -DHAVE_CONFIG_H  -g -O2   -c /usr/local/src/memcached-1.0.2/php_memcached.c -o php_memcached.lo
mkdir .libs
 cc -I/usr/local/include/php -I/usr/local/include/php -I. -I/usr/local/src/memcached-1.0.2 -DPHP_ATOM_INC -I/usr/local/src/memcached-1.0.2/include -I/usr/local/src/memcached-1.0.2/main -I/usr/local/src/memcached-1.0.2 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /usr/local/src/memcached-1.0.2/php_memcached.c  -fPIC -DPIC -o .libs/php_memcached.o
/usr/local/src/memcached-1.0.2/php_memcached.c: In function php_memcached_on_new_callbacke:
/usr/local/src/memcached-1.0.2/php_memcached.c:335: error: ‘tsrm_lse undeclared (first use in this function)
/usr/local/src/memcached-1.0.2/php_memcached.c:335: error: (Each undeclared identifier is reported only once
/usr/local/src/memcached-1.0.2/php_memcached.c:335: error: for each function it appears in.)
/usr/local/src/memcached-1.0.2/php_memcached.c: In function php_memc_get_imple:
/usr/local/src/memcached-1.0.2/php_memcached.c:559: warning: assignment discards qualifiers from pointer target type
/usr/local/src/memcached-1.0.2/php_memcached.c: In function php_memc_getMulti_imple:
/usr/local/src/memcached-1.0.2/php_memcached.c:759: warning: assignment discards qualifiers from pointer target type
/usr/local/src/memcached-1.0.2/php_memcached.c:762: warning: assignment discards qualifiers from pointer target type
/usr/local/src/memcached-1.0.2/php_memcached.c: In function zim_Memcached_fetche:
/usr/local/src/memcached-1.0.2/php_memcached.c:976: warning: assignment discards qualifiers from pointer target type
/usr/local/src/memcached-1.0.2/php_memcached.c:979: warning: assignment discards qualifiers from pointer target type
/usr/local/src/memcached-1.0.2/php_memcached.c: In function zim_Memcached_fetchAlle:
/usr/local/src/memcached-1.0.2/php_memcached.c:1030: warning: assignment discards qualifiers from pointer target type
/usr/local/src/memcached-1.0.2/php_memcached.c:1033: warning: assignment discards qualifiers from pointer target type
/usr/local/src/memcached-1.0.2/php_memcached.c: In function zim_Memcached_getServerByKeye:
/usr/local/src/memcached-1.0.2/php_memcached.c:1805: warning: assignment discards qualifiers from pointer target type
/usr/local/src/memcached-1.0.2/php_memcached.c: In function php_memc_do_serverlist_callbacke:
/usr/local/src/memcached-1.0.2/php_memcached.c:2314: warning: passing argument 4 of add_assoc_string_exe discards qualifiers from pointer target type
/usr/local/src/memcached-1.0.2/php_memcached.c: In function php_memc_zval_to_payloade:
/usr/local/src/memcached-1.0.2/php_memcached.c:2458: error: too few arguments to function igbinary_serializee
/usr/local/src/memcached-1.0.2/php_memcached.c: In function php_memc_zval_from_payloade:
/usr/local/src/memcached-1.0.2/php_memcached.c:2670: error: too few arguments to function igbinary_unserializee
/usr/local/src/memcached-1.0.2/php_memcached.c: In function php_memc_do_result_callbacke:
/usr/local/src/memcached-1.0.2/php_memcached.c:2879: warning: assignment discards qualifiers from pointer target type
/usr/local/src/memcached-1.0.2/php_memcached.c:2882: warning: assignment discards qualifiers from pointer target type
make: *** [php_memcached.lo] Error 1

Expected result:
----------------
successfully compile without error

Actual result:
--------------
[root@localhost memcached-1.0.2]# make
/bin/sh /usr/local/src/memcached-1.0.2/libtool --mode=compile cc -I/usr/local/include/php -I/usr/local/include/php -I. -I/usr/local/src/memcached-1.0.2 -DPHP_ATOM_INC -I/usr/local/src/memcached-1.0.2/include -I/usr/local/src/memcached-1.0.2/main -I/usr/local/src/memcached-1.0.2 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include  -DHAVE_CONFIG_H  -g -O2   -c /usr/local/src/memcached-1.0.2/php_memcached.c -o php_memcached.lo
mkdir .libs
 cc -I/usr/local/include/php -I/usr/local/include/php -I. -I/usr/local/src/memcached-1.0.2 -DPHP_ATOM_INC -I/usr/local/src/memcached-1.0.2/include -I/usr/local/src/memcached-1.0.2/main -I/usr/local/src/memcached-1.0.2 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /usr/local/src/memcached-1.0.2/php_memcached.c  -fPIC -DPIC -o .libs/php_memcached.o
/usr/local/src/memcached-1.0.2/php_memcached.c: In function php_memcached_on_new_callbacke:
/usr/local/src/memcached-1.0.2/php_memcached.c:335: error: ‘tsrm_lse undeclared (first use in this function)
/usr/local/src/memcached-1.0.2/php_memcached.c:335: error: (Each undeclared identifier is reported only once
/usr/local/src/memcached-1.0.2/php_memcached.c:335: error: for each function it appears in.)
/usr/local/src/memcached-1.0.2/php_memcached.c: In function php_memc_get_imple:
/usr/local/src/memcached-1.0.2/php_memcached.c:559: warning: assignment discards qualifiers from pointer target type
/usr/local/src/memcached-1.0.2/php_memcached.c: In function php_memc_getMulti_imple:
/usr/local/src/memcached-1.0.2/php_memcached.c:759: warning: assignment discards qualifiers from pointer target type
/usr/local/src/memcached-1.0.2/php_memcached.c:762: warning: assignment discards qualifiers from pointer target type
/usr/local/src/memcached-1.0.2/php_memcached.c: In function zim_Memcached_fetche:
/usr/local/src/memcached-1.0.2/php_memcached.c:976: warning: assignment discards qualifiers from pointer target type
/usr/local/src/memcached-1.0.2/php_memcached.c:979: warning: assignment discards qualifiers from pointer target type
/usr/local/src/memcached-1.0.2/php_memcached.c: In function zim_Memcached_fetchAlle:
/usr/local/src/memcached-1.0.2/php_memcached.c:1030: warning: assignment discards qualifiers from pointer target type
/usr/local/src/memcached-1.0.2/php_memcached.c:1033: warning: assignment discards qualifiers from pointer target type
/usr/local/src/memcached-1.0.2/php_memcached.c: In function zim_Memcached_getServerByKeye:
/usr/local/src/memcached-1.0.2/php_memcached.c:1805: warning: assignment discards qualifiers from pointer target type
/usr/local/src/memcached-1.0.2/php_memcached.c: In function php_memc_do_serverlist_callbacke:
/usr/local/src/memcached-1.0.2/php_memcached.c:2314: warning: passing argument 4 of ‘add_assoc_string_exe discards qualifiers from pointer target type
/usr/local/src/memcached-1.0.2/php_memcached.c: In function php_memc_zval_to_payloade:
/usr/local/src/memcached-1.0.2/php_memcached.c:2458: error: too few arguments to function ‘igbinary_serializee
/usr/local/src/memcached-1.0.2/php_memcached.c: In function php_memc_zval_from_payloade:
/usr/local/src/memcached-1.0.2/php_memcached.c:2670: error: too few arguments to function ‘igbinary_unserializee
/usr/local/src/memcached-1.0.2/php_memcached.c: In function php_memc_do_result_callbacke:
/usr/local/src/memcached-1.0.2/php_memcached.c:2879: warning: assignment discards qualifiers from pointer target type
/usr/local/src/memcached-1.0.2/php_memcached.c:2882: warning: assignment discards qualifiers from pointer target type
make: *** [php_memcached.lo] Error 1

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-24 00:50 UTC] amiroot at yahoo dot com
FYI here is my PHP config.

'./configure' '--with-apxs2=/usr/local/httpd/bin/apxs' '--with-gd' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-zlib-dir=/usr' '--with-freetype-dir=/usr' '--with-zlib' '--enable-ftp' '--enable-sockets' '--enable-mbstring=all' '--enable-zip' '--enable-soap' '--with-iconv=/usr/local' '--with-gdbm' '--with-mcrypt' '--with-curl' '--with-snmp' '--with-mysql=mysqlnd' '--with-mysqli' '--with-mssql'
 [2012-03-07 17:10 UTC] andrei@php.net
Closing because of age. Please try versionb 2.0.1 and reopen if this still 
occurs.
 [2012-03-07 17:10 UTC] andrei@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: andrei
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 01:01:28 2024 UTC