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: 2021-03-25 16:47 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: sevchenko_hs at hotmail dot com Assigned: cmb (profile)
Status: Closed Package: memcache (PECL)
PHP Version: 5.3.10 OS: CentOS 6
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: sevchenko_hs at hotmail dot com
New email:
PHP Version: OS:

 

 [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:
 [2021-03-25 16:47 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2021-03-25 16:47 UTC] cmb@php.net
The official bug tracker for PECL/memcache is now at
<https://github.com/websupport-sk/pecl-memcache/issues>.

So, if this is still an issue with either of the current memcache
versions (4 or 8), please file an issue there.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 06:01:29 2024 UTC