php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61832 error when make
Submitted: 2012-04-24 09:11 UTC Modified: 2017-10-24 06:59 UTC
From: sevchenko_hs at hotmail dot com Assigned:
Status: Open Package: memcache (PECL)
PHP Version: 5.3.10 OS: CentOS 6
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2012-04-24 09:11 UTC] sevchenko_hs at hotmail dot com
Description:
------------
when I build PHP 5.3.10 source with memcache extension, throw an error

/usr/local/src/php-5.3.10/ext/memcache/memcache_session.c:39: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ps_mod_memcache’

and in the same environment, I build PHP 5.3.8 with the memcache-2.2.6, it's all OK

so I read the source, I found in 5.3.10, there is no define HAVE_MEMCACHE_SESSION, which I found in php-5.3.8/main/php_config.h, but not in any file of php-5.3.10

I guess php-5.3.10's configure file may have a mistake:
when use the parameter: --enable-memcache
not write 
#define HAVE_MEMCACHE 1
#define HAVE_MEMCACHE_SESSION 1
to the php_config.h

Test script:
---------------
tar zxf php-5.3.10.tar.gz

tar zxf memcache-2.2.6.tgz
mv memcache-2.2.6 php-5.3.10/ext/memcache
tar zxf APC-3.1.9.tgz
mv APC-3.1.9 php-5.3.10/ext/apc

cd php-5.3.10
rm -f configure
PHP_AUTOCONF=/usr/bin/autoconf-2.13 ./buildconf --force
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-libdir=lib64 --with-jpeg-dir --with-png-dir --with-gd --with-freetype-dir --enable-mbstring --with-zlib --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-gettext --with-imap=/usr/local/src/imap-2007f --with-imap-ssl --with-curl --with-pear --with-mcrypt --with-openssl --with-ldap --with-regex --enable-soap --with-snmp=/usr --enable-gd-native-ttf --enable-mysqlnd --enable-apc --enable-memcache --enable-sockets --enable-fpm
make



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-07-05 13:46 UTC] hradtke@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: hradtke
 [2017-10-24 06:59 UTC] kalle@php.net
-Status: Assigned +Status: Open -Assigned To: hradtke +Assigned To:
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun Dec 15 19:01:25 2019 UTC