php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59082 Compile Failure in OS X
Submitted: 2010-02-22 10:34 UTC Modified: 2010-03-13 15:51 UTC
From: asuth at mit dot edu Assigned:
Status: Closed Package: memcached (PECL)
PHP Version: 5.3.1 OS: Mac OS X
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: asuth at mit dot edu
New email:
PHP Version: OS:

 

 [2010-02-22 10:34 UTC] asuth at mit dot edu
Description:
------------
Hey -- I'm trying to build an installable version for 
macports. libmemcached is set up as version 0.38. PECL 
memcached fails to compile, and I don't really understand the 
compiler complaints well enough to tell what's wrong.

Reproduce code:
---------------
This is the portfile that should work just fine. FYI, if using macports, this is how you make portfiles locally: http://guide.macports.org/chunked/development.local-repositories.html

PORT FILE BELOW
========================

# $Id: Portfile 61501 2009-12-13 12:48:05Z ryandesign@macports.org $

PortSystem              1.0
PortGroup               php5extension 1.0

php5extension.setup     memcached 1.0.0 pecl
categories-append       net devel
platforms               darwin freebsd openbsd
maintainers             ryandesign
license                 PHP-3.0

description             PHP5 bindings for memcache

long_description        Memcached is a caching daemon designed especially for \
                        dynamic web applications to decrease database load by storing objects in memory. This extension allows you \
                        to work with memcached through handy OO and \
                        procedural interfaces.

checksums               md5     b5b0b438aa8e444840a7a4aff515db2a \
                        sha1    e3086ebc4d15aabb224083e4a174c130f3bc4358 \
                        rmd160  074b2292d24dc618014adccbd75c414e68b4599f

depends_lib-append      port:libmemcached port:zlib

configure.args-append   --with-libmemcached-dir=${prefix} \
                        --with-zlib-dir=${prefix}


Expected result:
----------------
code should compile

Actual result:
--------------
Error: Target org.macports.build returned: shell command " 
cd 
"/opt/local/var/macports/build/_Users_andrew_ports_php_php5-
memcached/work/memcached-1.0.0" && /usr/bin/make -j2 all " 
returned error 2
Command output: /bin/sh 
/opt/local/var/macports/build/_Users_andrew_ports_php_php5-
memcached/work/memcached-1.0.0/libtool --mode=compile 
/usr/bin/gcc-4.2 -I/opt/local/include/php  -I. -
I/opt/local/var/macports/build/_Users_andrew_ports_php_php5-
memcached/work/memcached-1.0.0 -DPHP_ATOM_INC -
I/opt/local/var/macports/build/_Users_andrew_ports_php_php5-
memcached/work/memcached-1.0.0/include -
I/opt/local/var/macports/build/_Users_andrew_ports_php_php5-
memcached/work/memcached-1.0.0/main -
I/opt/local/var/macports/build/_Users_andrew_ports_php_php5-
memcached/work/memcached-1.0.0 -I/opt/local/include/php -
I/opt/local/include/php/main -I/opt/local/include/php/TSRM -
I/opt/local/include/php/Zend -I/opt/local/include/php/ext -
I/opt/local/include/php/ext/date/lib -I/opt/local/include -
I/opt/local/include  -I/opt/local/include -DHAVE_CONFIG_H  -
O2 -arch x86_64   -c 
/opt/local/var/macports/build/_Users_andrew_ports_php_php5-
memcached/work/memcached-1.0.0/php_memcached.c -o 
php_memcached.lo 
mkdir .libs
 /usr/bin/gcc-4.2 -I/opt/local/include/php -I. -
I/opt/local/var/macports/build/_Users_andrew_ports_php_php5-
memcached/work/memcached-1.0.0 -DPHP_ATOM_INC -
I/opt/local/var/macports/build/_Users_andrew_ports_php_php5-
memcached/work/memcached-1.0.0/include -
I/opt/local/var/macports/build/_Users_andrew_ports_php_php5-
memcached/work/memcached-1.0.0/main -
I/opt/local/var/macports/build/_Users_andrew_ports_php_php5-
memcached/work/memcached-1.0.0 -I/opt/local/include/php -
I/opt/local/include/php/main -I/opt/local/include/php/TSRM -
I/opt/local/include/php/Zend -I/opt/local/include/php/ext -
I/opt/local/include/php/ext/date/lib -I/opt/local/include -
I/opt/local/include -I/opt/local/include -DHAVE_CONFIG_H -O2 
-arch x86_64 -c 
/opt/local/var/macports/build/_Users_andrew_ports_php_php5-
memcached/work/memcached-1.0.0/php_memcached.c  -fno-common 
-DPIC -o .libs/php_memcached.o
/opt/local/var/macports/build/_Users_andrew_ports_php_php5-
memcached/work/memcached-1.0.0/php_memcached.c: In function 
'php_memc_get_impl':
/opt/local/var/macports/build/_Users_andrew_ports_php_php5-
memcached/work/memcached-1.0.0/php_memcached.c:369: warning: 
passing argument 4 of 'memcached_mget_by_key' from 
incompatible pointer type
/opt/local/var/macports/build/_Users_andrew_ports_php_php5-
memcached/work/memcached-1.0.0/php_memcached.c:406: warning: 
assignment discards qualifiers from pointer target type
/opt/local/var/macports/build/_Users_andrew_ports_php_php5-
memcached/work/memcached-1.0.0/php_memcached.c:438: warning: 
passing argument 4 of 'memcached_mget_by_key' from 
incompatible pointer type
/opt/local/var/macports/build/_Users_andrew_ports_php_php5-
memcached/work/memcached-1.0.0/php_memcached.c: In function 
'php_memc_getMulti_impl':
/opt/local/var/macports/build/_Users_andrew_ports_php_php5-
memcached/work/memcached-1.0.0/php_memcached.c:575: warning: 
passing argument 4 of 'memcached_mget_by_key' from 
incompatible pointer type
/opt/local/var/macports/build/_Users_andrew_ports_php_php5-
memcached/work/memcached-1.0.0/php_memcached.c:605: warning: 
assignment discards qualifiers from pointer target type
/opt/local/var/macports/build/_Users_andrew_ports_php_php5-
memcached/work/memcached-1.0.0/php_memcached.c:608: warning: 
assignment discards qualifiers from pointer target type
/opt/local/var/macports/build/_Users_andrew_ports_php_php5-
memcached/work/memcached-1.0.0/php_memcached.c: In function 
'php_memc_getDelayed_impl':
/opt/local/var/macports/build/_Users_andrew_ports_php_php5-
memcached/work/memcached-1.0.0/php_memcached.c:724: warning: 
passing argument 4 of 'memcached_mget_by_key' from 
incompatible pointer type
/opt/local/var/macports/build/_Users_andrew_ports_php_php5-
memcached/work/memcached-1.0.0/php_memcached.c: In function 
'zim_Memcached_fetch':
/opt/local/var/macports/build/_Users_andrew_ports_php_php5-
memcached/work/memcached-1.0.0/php_memcached.c:799: warning: 
assignment discards qualifiers from pointer target type
/opt/local/var/macports/build/_Users_andrew_ports_php_php5-
memcached/work/memcached-1.0.0/php_memcached.c:802: warning: 
assignment discards qualifiers from pointer target type
/opt/local/var/macports/build/_Users_andrew_ports_php_php5-
memcached/work/memcached-1.0.0/php_memcached.c: In function 
'zim_Memcached_fetchAll':
/opt/local/var/macports/build/_Users_andrew_ports_php_php5-
memcached/work/memcached-1.0.0/php_memcached.c:850: warning: 
assignment discards qualifiers from pointer target type
/opt/local/var/macports/build/_Users_andrew_ports_php_php5-
memcached/work/memcached-1.0.0/php_memcached.c:853: warning: 
assignment discards qualifiers from pointer target type
/opt/local/var/macports/build/_Users_andrew_ports_php_php5-
memcached/work/memcached-1.0.0/php_memcached.c: In function 
'zim_Memcached_setOption':
/opt/local/var/macports/build/_Users_andrew_ports_php_php5-
memcached/work/memcached-1.0.0/php_memcached.c:1783: error: 
'memcached_st' has no member named 'hash'
/opt/local/var/macports/build/_Users_andrew_ports_php_php5-
memcached/work/memcached-1.0.0/php_memcached.c: In function 
'php_memc_do_result_callback':
/opt/local/var/macports/build/_Users_andrew_ports_php_php5-
memcached/work/memcached-1.0.0/php_memcached.c:2322: 
warning: assignment discards qualifiers from pointer target 
type
/opt/local/var/macports/build/_Users_andrew_ports_php_php5-
memcached/work/memcached-1.0.0/php_memcached.c:2325: 
warning: assignment discards qualifiers from pointer target 
type
make: *** [php_memcached.lo] Error 1


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-02-22 12:02 UTC] andrei@php.net
libmemcached-0.38 broke API compatibility. I have to find a way to release an update that fixes it. I was hoping to do it with 2.0 version, but maybe something sooner is needed.
 [2010-03-13 15:51 UTC] andrei@php.net
Thank you for your bug report. This issue has been fixed
in the latest released version of the package, which you can download at
http://pecl.php.net/get/memcached

Try 1.0.1 release.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC