Problems compiling php-mcache

Jon Valvatne jon at valvatne.com
Sat Apr 23 22:23:27 PDT 2005


Hello list,

I'm having some trouble compiling php-mcache with php-4.3.11 and
libmemcache-1.2.4. Now I suspect this is somehow caused by some aspect of
my PHP installation, but I have no idea how PHP extensions work, so I'm lost.

Any ideas?

$ phpize
Configuring for:
PHP Api Version:         20020918
Zend Module Api No:      20020429
Zend Extension Api No:   20021010

$ ./configure --with-mcache=/usr/src/libmemcache-1.2.4
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking for gcc... 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... yes
checking whether gcc accepts -g... yes
checking whether gcc and cc understand -c and -o together... yes
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
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
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20020429
checking for re2c... exit 0;
checking for mawk... mawk
checking for mcache support... yes, shared
checking for Cygwin environment... no
checking for mingw32 environment... no
checking how to run the C preprocessor... gcc -E
checking build system type... i686-pc-linux-gnu
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking for a sed that does not truncate output... /bin/sed
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking for object suffix... o
checking for executable suffix... no
checking command to parse /usr/bin/nm -B output... ok
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking whether -lc should be explicitly linked in... no
creating libtool
updating cache ./config.cache
creating ./config.status
creating config.h

$ make
/bin/sh /usr/src/php-mcache-ext-1.1.4/libtool --mode=compile gcc  -I. -I/usr/src/php-mcache-ext-1.1.4 -DPHP_ATOM_INC -I/usr/src/php-mcache-ext-1.1.4/include -I/usr/src/php-mcache-ext-1.1.4/main -I/usr/src/php-mcache-ext-1.1.4 -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/src/libmemcache-1.2.4  -DHAVE_CONFIG_H  -g -O2   -c /usr/src/php-mcache-ext-1.1.4/mcache.c -o mcache.lo 
gcc -I. -I/usr/src/php-mcache-ext-1.1.4 -DPHP_ATOM_INC -I/usr/src/php-mcache-ext-1.1.4/include -I/usr/src/php-mcache-ext-1.1.4/main -I/usr/src/php-mcache-ext-1.1.4 -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/src/libmemcache-1.2.4 -DHAVE_CONFIG_H -g -O2 -c /usr/src/php-mcache-ext-1.1.4/mcache.c   -fPIC -DPIC -o mcache.lo
In file included from /usr/src/php-mcache-ext-1.1.4/mcache.c:33:
<snip> standard libmemcache warnings ("assignment discards qualifiers from pointer target type")
/usr/src/php-mcache-ext-1.1.4/mcache.c: In function `zm_startup_mcache':
/usr/src/php-mcache-ext-1.1.4/mcache.c:158: parse error before `mcache_class_entry'
/usr/src/php-mcache-ext-1.1.4/mcache.c:159: `mcache_class_entry' undeclared (first use in this function)
/usr/src/php-mcache-ext-1.1.4/mcache.c:159: (Each undeclared identifier is reported only once
/usr/src/php-mcache-ext-1.1.4/mcache.c:159: for each function it appears in.)
/usr/src/php-mcache-ext-1.1.4/mcache.c: In function `zif_memcache':
/usr/src/php-mcache-ext-1.1.4/mcache.c:386: parse error before `new_le'
/usr/src/php-mcache-ext-1.1.4/mcache.c:391: `mc' undeclared (first use in this function)
/usr/src/php-mcache-ext-1.1.4/mcache.c:402: `id' undeclared (first use in this function)
/usr/src/php-mcache-ext-1.1.4/mcache.c: In function `zif_get':
/usr/src/php-mcache-ext-1.1.4/mcache.c:589: parse error before `int'
/usr/src/php-mcache-ext-1.1.4/mcache.c:592: warning: passing arg 4 of `zend_hash_get_current_key_ex' from incompatible pointer type
/usr/src/php-mcache-ext-1.1.4/mcache.c:598: `i' undeclared (first use in this function)
/usr/src/php-mcache-ext-1.1.4/mcache.c: In function `zif_set':
/usr/src/php-mcache-ext-1.1.4/mcache.c:667: parse error before `int'
/usr/src/php-mcache-ext-1.1.4/mcache.c:670: `ret' undeclared (first use in this function)
/usr/src/php-mcache-ext-1.1.4/mcache.c: In function `zif_add':
/usr/src/php-mcache-ext-1.1.4/mcache.c:699: parse error before `int'
/usr/src/php-mcache-ext-1.1.4/mcache.c:702: `ret' undeclared (first use in this function)
/usr/src/php-mcache-ext-1.1.4/mcache.c: In function `zif_replace':
/usr/src/php-mcache-ext-1.1.4/mcache.c:731: parse error before `int'
/usr/src/php-mcache-ext-1.1.4/mcache.c:734: `ret' undeclared (first use in this function)
/usr/src/php-mcache-ext-1.1.4/mcache.c: In function `zif_incr':
/usr/src/php-mcache-ext-1.1.4/mcache.c:762: parse error before `int'
/usr/src/php-mcache-ext-1.1.4/mcache.c:764: `ret' undeclared (first use in this function)
/usr/src/php-mcache-ext-1.1.4/mcache.c: In function `zif_decr':
/usr/src/php-mcache-ext-1.1.4/mcache.c:787: parse error before `int'
/usr/src/php-mcache-ext-1.1.4/mcache.c:789: `ret' undeclared (first use in this function)
make: *** [mcache.lo] Error 1

$ cat /proc/version 
Linux version 2.4.25-bf2.4 (root at oss) (gcc version 3.2.3 (Debian)) #1 SMP Wed Mar 10 10:35:09 PST 2004 


More information about the memcached mailing list