Created attachment 304639 [details] build.log on ~amd64 # emerge -v dev-php/pecl-memcache These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] dev-php/pecl-memcache-3.0.6-r1 USE="session" PHP_TARGETS="php5-4 -php5-3" 54 kB ... libtool: compile: x86_64-pc-linux-gnu-gcc -I/usr/lib64/php5.4/include/php -I. -I/var/tmp/portage/dev-php/pecl-memcache-3.0.6-r1/work/php5.4 -DPHP_ATOM_INC -I/var/tmp/portage/dev-php/pecl-memcache-3.0.6-r1/work/php5.4/include -I/var/tmp/portage/dev-php/pecl-memcache-3.0.6-r1/work/php5.4/main -I/var/tmp/portage/dev-php/pecl-memcache-3.0.6-r1/work/php5.4 -I/usr/lib64/php5.4/include/php -I/usr/lib64/php5.4/include/php/main -I/usr/lib64/php5.4/include/php/TSRM -I/usr/lib64/php5.4/include/php/Zend -I/usr/lib64/php5.4/include/php/ext -I/usr/lib64/php5.4/include/php/ext/date/lib -DHAVE_CONFIG_H -march=native -mtune=k8-sse3 -O2 -pipe -c /var/tmp/portage/dev-php/pecl-memcache-3.0.6-r1/work/php5.4/memcache_ascii_protocol.c -fPIC -DPIC -o .libs/memcache_ascii_protocol.o In file included from /var/tmp/portage/dev-php/pecl-memcache-3.0.6-r1/work/php5.4/memcache.c:30:0: /var/tmp/portage/dev-php/pecl-memcache-3.0.6-r1/work/php5.4/php_memcache.h:75:0: warning: "IS_CALLABLE" redefined /usr/lib64/php5.4/include/php/Zend/zend.h:576:0: note: this is the location of the previous definition /var/tmp/portage/dev-php/pecl-memcache-3.0.6-r1/work/php5.4/memcache.c: In function 'mmc_find_persistent': /var/tmp/portage/dev-php/pecl-memcache-3.0.6-r1/work/php5.4/memcache.c:721:4: error: too few arguments to function 'zend_list_insert' /usr/lib64/php5.4/include/php/Zend/zend_list.h:73:45: note: declared here /var/tmp/portage/dev-php/pecl-memcache-3.0.6-r1/work/php5.4/memcache.c:738:4: error: too few arguments to function 'zend_list_insert' /usr/lib64/php5.4/include/php/Zend/zend_list.h:73:45: note: declared here /var/tmp/portage/dev-php/pecl-memcache-3.0.6-r1/work/php5.4/memcache.c: In function 'php_mmc_pool_addserver': /var/tmp/portage/dev-php/pecl-memcache-3.0.6-r1/work/php5.4/memcache.c:778:3: error: too few arguments to function 'zend_list_insert' /usr/lib64/php5.4/include/php/Zend/zend_list.h:73:45: note: declared here /var/tmp/portage/dev-php/pecl-memcache-3.0.6-r1/work/php5.4/memcache.c: In function 'php_mmc_connect': /var/tmp/portage/dev-php/pecl-memcache-3.0.6-r1/work/php5.4/memcache.c:839:3: error: too few arguments to function 'zend_list_insert' /usr/lib64/php5.4/include/php/Zend/zend_list.h:73:45: note: declared here make: *** [memcache.lo] Error 1 make: *** Waiting for unfinished jobs.... emake failed ... [ebuild R ] dev-lang/php-5.4.0 USE="apache2 berkdb bzip2 cli crypt ctype exif fileinfo filter ftp gd gdbm hash iconv json nls phar posix readline session simplexml spell sqlite3 ssl threads tokenizer truetype unicode xml zlib -bcmath -calendar -cdb -cgi -cjk -curl -curlwrappers -debug -doc -embed -enchant -firebird -flatfile -fpm (-frontbase) -gmp -imap -inifile -intl -iodbc -ipv6 -kerberos -kolab -ldap -ldap-sasl -libedit -mhash -mssql -mysql -mysqli -mysqlnd -oci8-instant-client -odbc -pcntl -pdo -pic -postgres -qdbm -recode -sharedmem -snmp -soap -sockets (-sybase-ct) -sysvipc -tidy -wddx -xmlreader -xmlrpc -xmlwriter -xpm -xsl -zip"
Created attachment 304641 [details] emerge --info
Try with USE=-threads.
(In reply to comment #2) > Try with USE=-threads. thanks, this works, but this solution not even workaround, because apache depend on USE=-threads, etc
(In reply to comment #3) > (In reply to comment #2) > > Try with USE=-threads. > > thanks, > this works, > but this solution not even workaround, because apache depend on > USE=-threads, etc You can use -threads for apache as well.
yes, but I do not want this additional info here https://bugs.php.net/bug.php?id=61289 http://svn.php.net/viewvc?view=revision&revision=319585 just need to backport patch
Sorry, but the 3.x branch is unstable upstream and this package is unstable in the tree, so we'll rather wait for an upstream stable release.
Created attachment 304865 [details, diff] php-5.4_compatibility.patch this patch works for me
(In reply to comment #7) > Created attachment 304865 [details, diff] [details, diff] > php-5.4_compatibility.patch > > this patch works for me That patch seems applied upstream in their SVN trunk.
If this bug isn't fixed with the patch, it should be fixed by adding a use flag dependency: dev-lang/php[-threads]
add the live ebuild for pecl-memcache. https://bugs.gentoo.org/show_bug.cgi?id=431716
I copied the 3.0.6-r1 ebuild to 3.0.7 and it compiled and installed fine for me. http://pecl.php.net/package/memcache/3.0.7