php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59759 Compilation fails
Submitted: 2011-05-10 04:27 UTC Modified: 2011-05-12 06:55 UTC
From: michael dot wamser at web dot de Assigned:
Status: Closed Package: memcached (PECL)
PHP Version: 5.2.10 OS: CentOS release 5.6 (Final)
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: michael dot wamser at web dot de
New email:
PHP Version: OS:

 

 [2011-05-10 04:27 UTC] michael dot wamser at web dot de
Description:
------------
Memcached compilation fails. I tried stable & beta versions.

Actual result:
--------------
# pecl install memcached
downloading memcached-2.0.0b1.tgz ...
Starting to download memcached-2.0.0b1.tgz (34,708 bytes)
.........done: 34,708 bytes
8 source files, building
running: phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
building in /var/tmp/pear-build-root/memcached-2.0.0b1
running: /usr/share/php5/temp/memcached/configure
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-redhat-linux-gnu
checking host system type... x86_64-redhat-linux-gnu
checking target system type... x86_64-redhat-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -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
checking for PHP extension directory... /usr/lib64/php/modules
checking for PHP installed headers prefix... /usr/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
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/include/php
checking for memcached session support... enabled
checking for memcached igbinary support... disabled
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sasl/sasl.h usability... yes
checking sasl/sasl.h presence... yes
checking for sasl/sasl.h... yes
checking whether to enable sasl support... yes
checking for libmemcached location... /usr
checking for ld used by cc... /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 whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... f95
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether f95 accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc 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
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
configure: creating libtool
appending configuration tag "CXX" to libtool
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for f95 option to produce PIC... -fPIC
checking if f95 PIC flag -fPIC works... yes
checking if f95 static flag -static works... yes
checking if f95 supports -c -o file.o... yes
checking whether the f95 linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/sh /var/tmp/pear-build-root/memcached-2.0.0b1/libtool --mode=compile cc -I/usr/include/php  -I. -I/usr/share/php5/temp/memcached -DPHP_ATOM_INC -I/var/tmp/pear-build-root/memcached-2.0.0b1/include -I/var/tmp/pear-build-root/memcached-2.0.0b1/main -I/usr/share/php5/temp/memcached -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 /usr/share/php5/temp/memcached/php_memcached.c -o php_memcached.lo
mkdir .libs
 cc -I/usr/include/php -I. -I/usr/share/php5/temp/memcached -DPHP_ATOM_INC -I/var/tmp/pear-build-root/memcached-2.0.0b1/include -I/var/tmp/pear-build-root/memcached-2.0.0b1/main -I/usr/share/php5/temp/memcached -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 /usr/share/php5/temp/memcached/php_memcached.c  -fPIC -DPIC -o .libs/php_memcached.o
/usr/share/php5/temp/memcached/php_memcached.c:314: error: expected declaration specifiers or '...' before 'memcached_server_instance_st'
/usr/share/php5/temp/memcached/php_memcached.c:315: error: expected declaration specifiers or '...' before 'memcached_server_instance_st'
/usr/share/php5/temp/memcached/php_memcached.c:316: error: expected declaration specifiers or '...' before 'memcached_server_instance_st'
/usr/share/php5/temp/memcached/php_memcached.c: In function 'php_memc_get_impl':
/usr/share/php5/temp/memcached/php_memcached.c:531: warning: passing argument 4 of 'memcached_mget_by_key' from incompatible pointer type
/usr/share/php5/temp/memcached/php_memcached.c:594: warning: passing argument 4 of 'memcached_mget_by_key' from incompatible pointer type
/usr/share/php5/temp/memcached/php_memcached.c: In function 'php_memc_getMulti_impl':
/usr/share/php5/temp/memcached/php_memcached.c:718: warning: passing argument 2 of 'add_assoc_null_ex' discards qualifiers from pointer target type
/usr/share/php5/temp/memcached/php_memcached.c:741: warning: passing argument 4 of 'memcached_mget_by_key' from incompatible pointer type
/usr/share/php5/temp/memcached/php_memcached.c: In function 'php_memc_getDelayed_impl':
/usr/share/php5/temp/memcached/php_memcached.c:915: warning: passing argument 4 of 'memcached_mget_by_key' from incompatible pointer type
/usr/share/php5/temp/memcached/php_memcached.c: In function 'zim_Memcached_getServerList':
/usr/share/php5/temp/memcached/php_memcached.c:1788: warning: assignment from incompatible pointer type
/usr/share/php5/temp/memcached/php_memcached.c: In function 'zim_Memcached_getStats':
/usr/share/php5/temp/memcached/php_memcached.c:1860: warning: assignment from incompatible pointer type
/usr/share/php5/temp/memcached/php_memcached.c: In function 'zim_Memcached_getVersion':
/usr/share/php5/temp/memcached/php_memcached.c:1894: warning: assignment from incompatible pointer type
/usr/share/php5/temp/memcached/php_memcached.c: In function 'zim_Memcached_getAllKeys':
/usr/share/php5/temp/memcached/php_memcached.c:1918: warning: assignment from incompatible pointer type
/usr/share/php5/temp/memcached/php_memcached.c: At top level:
/usr/share/php5/temp/memcached/php_memcached.c:2351: error: expected declaration specifiers or '...' before 'memcached_server_instance_st'
/usr/share/php5/temp/memcached/php_memcached.c: In function 'php_memc_do_serverlist_callback':
/usr/share/php5/temp/memcached/php_memcached.c:2357: error: 'instance' undeclared (first use in this function)
/usr/share/php5/temp/memcached/php_memcached.c:2357: error: (Each undeclared identifier is reported only once
/usr/share/php5/temp/memcached/php_memcached.c:2357: error: for each function it appears in.)
/usr/share/php5/temp/memcached/php_memcached.c: At top level:
/usr/share/php5/temp/memcached/php_memcached.c:2364: error: expected declaration specifiers or '...' before 'memcached_server_instance_st'
/usr/share/php5/temp/memcached/php_memcached.c: In function 'php_memc_do_stats_callback':
/usr/share/php5/temp/memcached/php_memcached.c:2369: error: 'instance' undeclared (first use in this function)
/usr/share/php5/temp/memcached/php_memcached.c: At top level:
/usr/share/php5/temp/memcached/php_memcached.c:2407: error: expected declaration specifiers or '...' before 'memcached_server_instance_st'
/usr/share/php5/temp/memcached/php_memcached.c: In function 'php_memc_do_version_callback':
/usr/share/php5/temp/memcached/php_memcached.c:2414: error: 'instance' undeclared (first use in this function)
make: *** [php_memcached.lo] Error 1
ERROR: `make' failed


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-05-10 11:18 UTC] andrei@php.net
What version of libmemcached are you compiling against?
 [2011-05-11 04:09 UTC] michael dot wamser at web dot de
Name       : libmemcached
Arch       : x86_64
Version    : 0.31
Release    : 1.1.el5
 [2011-05-11 12:20 UTC] andrei@php.net
That version is pretty ancient. 2.0.0b1 won't work with it. 
Can you try upgrading it and compiling again?
 [2011-05-12 06:55 UTC] michael dot wamser at web dot de
ok problem solved with latest libmemcached version. thank you!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 06:01:30 2024 UTC