php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59243 Memcached compile error
Submitted: 2010-05-30 09:21 UTC Modified: 2012-03-07 17:34 UTC
From: hemicalyaction at gmail dot com Assigned: andrei (profile)
Status: Closed Package: memcached (PECL)
PHP Version: Trunk SVN-2010-05-30 (dev) OS: Debian 5.0.4 amd64
Private report: No CVE-ID: None
 [2010-05-30 09:21 UTC] hemicalyaction at gmail dot com
Description:
------------
Memcached compilation fails. I tried versions 1.0.0, 1.0.1, 1.0.2 and latest version from GIT.

Actual result:
--------------
s1:/usr/src/memcached-git# php -v
PHP 5.3.99-dev (cli) (built: May 30 2010 11:35:48)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2010 Zend Technologies
s1:/usr/src/memcached-git# make clean
find . -name \*.gcno -o -name \*.gcda | xargs rm -f
find . -name \*.lo -o -name \*.o | xargs rm -f
find . -name \*.la -o -name \*.a | xargs rm -f
find . -name \*.so | xargs rm -f
find . -name .libs -a -type d|xargs rm -rf
rm -f libphp.la   modules/* libs/*
s1:/usr/src/memcached-git# ./configure
loading cache ./config.cache
checking for Cygwin environment... (cached) no
checking for mingw32 environment... (cached) no
checking for egrep... (cached) grep -E
checking for a sed that does not truncate output... (cached) /bin/sed
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for icc... no
checking for suncc... no
checking whether gcc and cc understand -c and -o together... (cached) yes
checking for system library directory... lib
checking if compiler supports -R... (cached) no
checking if compiler supports -Wl,-rpath,... (cached) yes
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr/local
checking for PHP includes... -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
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20100525
checking for PHP installed headers prefix... /usr/local/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... (cached) re2c
checking for re2c version... (cached) 0.13.5 (ok)
checking for gawk... (cached) nawk
checking if nawk is broken... no
checking whether to enable memcached support... yes, shared
checking for libmemcached... yes, shared
checking whether to enable memcached session handler support... yes
checking whether to enable memcached igbinary serializer support... no
checking whether to enable memcached json serializer support... no
checking for ZLIB... yes, shared
checking for zlib location... /usr
checking for session includes... /usr/local/include/php
checking for memcached session support... enabled
checking for memcached igbinary support... disabled
checking for libmemcached location... /usr
checking build system type... x86_64-unknown-linux-gnu
checking for ld used by gcc... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking for /usr/bin/ld option to reload object files... (cached) -r
checking for BSD-compatible nm... (cached) /usr/bin/nm -B
checking whether ln -s works... (cached) yes
checking how to recognize dependent libraries... (cached) pass_all
checking for object suffix... (cached) o
checking for executable suffix... (cached) no
checking for dlfcn.h... (cached) yes
checking the maximum length of command line arguments... (cached) 98304
checking command to parse /usr/bin/nm -B output from gcc object... (cached) ok
checking for objdir... (cached) .libs
checking for ar... (cached) ar
checking for ranlib... (cached) ranlib
checking for strip... (cached) strip
checking if gcc supports -fno-rtti -fno-exceptions... (cached) no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... (cached) yes
checking if gcc static flag -static works... (cached) yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
(cached) (cached) checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool
creating ./config.status
creating config.h
config.h is unchanged
s1:/usr/src/memcached-git# make
/bin/sh /usr/src/memcached-git/libtool --mode=compile gcc -I/usr/local/include/php  -I. -I/usr/src/memcached-git -DPHP_ATOM_INC -I/usr/src/memcached-git/include -I/usr/src/memcached-git/main -I/usr/src/memcached-git -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  -DHAVE_CONFIG_H  -g -O2   -c /usr/src/memcached-git/php_memcached.c -o php_memcached.lo
mkdir .libs
 gcc -I/usr/local/include/php -I. -I/usr/src/memcached-git -DPHP_ATOM_INC -I/usr/src/memcached-git/include -I/usr/src/memcached-git/main -I/usr/src/memcached-git -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 -DHAVE_CONFIG_H -g -O2 -c /usr/src/memcached-git/php_memcached.c  -fPIC -DPIC -o .libs/php_memcached.o
/usr/src/memcached-git/php_memcached.c: In function 'php_memc_get_impl':
/usr/src/memcached-git/php_memcached.c:502: warning: assignment discards qualifiers from pointer target type
/usr/src/memcached-git/php_memcached.c: In function 'php_memc_getMulti_impl':
/usr/src/memcached-git/php_memcached.c:704: warning: assignment discards qualifiers from pointer target type
/usr/src/memcached-git/php_memcached.c:707: warning: assignment discards qualifiers from pointer target type
/usr/src/memcached-git/php_memcached.c: In function 'zim_Memcached_fetch':
/usr/src/memcached-git/php_memcached.c:921: warning: assignment discards qualifiers from pointer target type
/usr/src/memcached-git/php_memcached.c:924: warning: assignment discards qualifiers from pointer target type
/usr/src/memcached-git/php_memcached.c: In function 'zim_Memcached_fetchAll':
/usr/src/memcached-git/php_memcached.c:975: warning: assignment discards qualifiers from pointer target type
/usr/src/memcached-git/php_memcached.c:978: warning: assignment discards qualifiers from pointer target type
/usr/src/memcached-git/php_memcached.c: In function 'zim_Memcached_getServerByKey':
/usr/src/memcached-git/php_memcached.c:1766: warning: assignment discards qualifiers from pointer target type
/usr/src/memcached-git/php_memcached.c: In function 'php_memc_new':
/usr/src/memcached-git/php_memcached.c:2252: error: 'zend_class_entry' has no member named 'default_properties'
/usr/src/memcached-git/php_memcached.c: In function 'php_memc_do_serverlist_callback':
/usr/src/memcached-git/php_memcached.c:2277: warning: passing argument 4 of 'add_assoc_string_ex' discards qualifiers from pointer target type
/usr/src/memcached-git/php_memcached.c: In function 'php_memc_do_result_callback':
/usr/src/memcached-git/php_memcached.c:2842: warning: assignment discards qualifiers from pointer target type
/usr/src/memcached-git/php_memcached.c:2845: warning: assignment discards qualifiers from pointer target type
make: *** [php_memcached.lo] Error 1
s1:/usr/src/memcached-git#


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-05-30 23:47 UTC] andrei@php.net
WHat version of PHP are you compiling against?
 [2010-05-31 01:25 UTC] hemicalyaction at gmail dot com
PHP Version 5.3.99-dev (SVN trunk)
 [2010-05-31 12:26 UTC] andrei@php.net
Well, obviously there have been some incompatible changes in 
the PHP codebase and I'm going to have to wait to fix it in 
memcached stable release when 5.4 or whatever is stabilized.
 [2010-08-12 18:32 UTC] jason at brightestyoungthings dot com
I'm getting this same error, with php 5.2.6 and igbinary 
enabled (doesn't occur without igbinary). I've verified that 
igbinary is in place and correctly found by configure
 [2011-07-26 19:22 UTC] phpaction at gmail dot com
Same error here on compile against PHP5.4alpha2

PHP:

'./configure' '--prefix=/usr/local/Cellar/php54latest/5.4.0-
latest' '--disable-debug' '--with-config-file-
path=/usr/local/etc' '--with-iconv-dir=/usr' '--enable-exif' 
'--enable-soap' '--enable-sqlite-utf8' '--enable-wddx' '--
enable-ftp' '--enable-sockets' '--enable-zip' '--enable-
pcntl' '--enable-shmop' '--enable-sysvsem' '--enable-
sysvshm' '--enable-sysvmsg' '--enable-mbstring' '--enable-
bcmath' '--enable-calendar' '--with-openssl=/usr' '--with-
zlib=/usr' '--with-bz2=/usr' '--with-ldap' '--with-ldap-
sasl=/usr' '--with-xmlrpc' '--with-iodbc' '--with-
kerberos=/usr' '--with-libxml-
dir=/usr/local/Cellar/libxml2/2.7.8' '--with-xsl=/usr' '--
with-curl=/usr' '--with-gd' '--enable-gd-native-ttf' '--
with-mcrypt=/usr/local/Cellar/mcrypt/2.5.8' '--with-jpeg-
dir=/usr/local/Cellar/jpeg/8c' '--with-png-dir=/usr/X11' '--
with-gettext=/usr/local/Cellar/gettext/0.18.1.1' '--with-
tidy' '--mandir=/usr/local/Cellar/php54latest/5.4.0-
latest/share/man' '--enable-fpm' '--with-mysql-
sock=/tmp/mysql.sock' '--with-mysqli=mysqlnd' '--with-
mysql=mysqlnd' '--with-pdo-mysql=mysqlnd' '--with-
readline=/usr/local/Cellar/readline/6.2.1'

$ phpize -v
Configuring for:
PHP Api Version:         20100412
Zend Module Api No:      20100525
Zend Extension Api No:   220100525

/private/tmp/homebrew-memcached-php-2.0.0b2-aRnZ/memcached-
2.0.0b2/php_memcached.c: In function ?php_memc_new?:
/private/tmp/homebrew-memcached-php-2.0.0b2-aRnZ/memcached-
2.0.0b2/php_memcached.c:2463: error: ?zend_class_entry? has 
no member named ?default_properties?
make: *** [php_memcached.lo] Error 1
make: *** Waiting for unfinished jobs....
 /usr/bin/cc -I/usr/local/Cellar/php54latest/5.4.0-
latest/include/php -I. -I/private/tmp/homebrew-memcached-
php-2.0.0b2-aRnZ/memcached-2.0.0b2 -DPHP_ATOM_INC -
I/private/tmp/homebrew-memcached-php-2.0.0b2-aRnZ/memcached-
2.0.0b2/include -I/private/tmp/homebrew-memcached-php-
2.0.0b2-aRnZ/memcached-2.0.0b2/main -I/private/tmp/homebrew-
memcached-php-2.0.0b2-aRnZ/memcached-2.0.0b2 -
I/usr/local/Cellar/php54latest/5.4.0-latest/include/php -
I/usr/local/Cellar/php54latest/5.4.0-latest/include/php/main 
-I/usr/local/Cellar/php54latest/5.4.0-
latest/include/php/TSRM -
I/usr/local/Cellar/php54latest/5.4.0-latest/include/php/Zend 
-I/usr/local/Cellar/php54latest/5.4.0-latest/include/php/ext 
-I/usr/local/Cellar/php54latest/5.4.0-
latest/include/php/ext/date/lib -I/usr/local/include -
DHAVE_CONFIG_H -O3 -march=core2 -w -pipe -c 
/private/tmp/homebrew-memcached-php-2.0.0b2-aRnZ/memcached-
2.0.0b2/g_fmt.c  -fno-common -DPIC -o .libs/g_fmt.o
==> Exit Status: 2


can u please fix it ?
we need memcache for some speed tests.

contact me, if u need a ready testing box for remote ssh 
into.

best regards,
Daniel.
 [2011-07-26 20:03 UTC] andrei@php.net
Just committed a fix to Github. Please check that it works for 
you.
 [2012-01-06 21:31 UTC] weierophinney@php.net
Andrei -- I've tried against the repo at php-memcached-dev/php-memcached on 
github, but with no avail; I get slightly different errors, though -- more in 
line with https://bugs.php.net/bug.php?id=59413

Either way, cannot compile. Architecture is x86_64, against PHP 5.3.8.
 [2012-03-07 17:34 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: Thu Dec 26 10:01:29 2024 UTC