php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61447 pecl install memcached fails
Submitted: 2012-03-20 05:53 UTC Modified: 2012-03-28 16:22 UTC
Votes:3
Avg. Score:5.0 ± 0.0
Reproduced:3 of 3 (100.0%)
Same Version:2 (66.7%)
Same OS:2 (66.7%)
From: felix at rabinovich dot org Assigned: andrei (profile)
Status: Closed Package: memcached (PECL)
PHP Version: 5.3.10 OS: Centos 6.2
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: felix at rabinovich dot org
New email:
PHP Version: OS:

 

 [2012-03-20 05:53 UTC] felix at rabinovich dot org
Description:
------------
Running `pecl install memcached' fails at the compilation step of make

/var/tmp/memcached/php_memcached.c:3680: error: ‘MEMCACHED_BEHAVIOR_TCP_KEEPALIVE’ undeclared (first use in this function)
/var/tmp/memcached/php_memcached.c:3680: error: (Each undeclared identifier is reported only once
/var/tmp/memcached/php_memcached.c:3680: error: for each function it appears in.)

It might be that some library is missing. I *do* have kernel-devel; but if something else is a prerequisite, it's not obvious, and make doesn't complain about missing prerequisites.


Test script:
---------------
http://pastebin.com/nhVA9Czr

(it's not mine, and it's not really a script - but that's the output from make that I am getting as well)

Expected result:
----------------
memcached installed


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-03-28 14:07 UTC] adam at adamhahn dot com
I am also experiencing this problem.

Full output: http://pastebin.com/MSq5KCUG

I am using CentOS 5.8 and I have libmemcached, libmemcached-devel, zlib, and zlib-devel all installed for the required dependancies.

Punchline is the same as above:
/var/tmp/memcached/php_memcached.c:3680: error: 'MEMCACHED_BEHAVIOR_TCP_KEEPALIVE' undeclared (first use in this function)
/var/tmp/memcached/php_memcached.c:3680: error: (Each undeclared identifier is reported only once
/var/tmp/memcached/php_memcached.c:3680: error: for each function it appears in.)
make: *** [php_memcached.lo] Error 1
ERROR: `make' failed
 [2012-03-28 16:22 UTC] andrei@php.net
Please re-open this bug on Github Issues:

https://github.com/php-memcached-dev/php-memcached/issues

Also, provide the versions of libmemcached and libmemcached-devel that you're 
compiling against.
 [2012-03-28 16:22 UTC] andrei@php.net
-Summary: pecl install memcached fails +Summary: Add binary session support -Status: Open +Status: Closed -PHP Version: 5.3.10 +PHP Version: Irrelevant -Assigned To: +Assigned To: andrei
 [2012-03-28 16:22 UTC] andrei@php.net
Please re-open this bug on Github Issues:

https://github.com/php-memcached-dev/php-memcached/issues

Also, provide the versions of libmemcached and libmemcached-devel that you're 
compiling against.
 [2012-03-28 16:22 UTC] andrei@php.net
-Summary: Add binary session support +Summary: pecl install memcached fails -PHP Version: Irrelevant +PHP Version: 5.3.10
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 11:01:30 2024 UTC