From:             thall at nerdie dot net
Operating system: CentOS 6
PHP version:      5.3.23
Package:          PECL
Bug Type:         Bug
Bug description:memcached won't compile

Description:
------------
libmemcached-1.0.17 (or .16) and memcached-2.1.0 don't want to compile. 

# make
/bin/sh /root/tmp/memcached-2.0.1/libtool --mode=compile cc
-I/usr/local/include/php  -I. -I/root/tmp/memcached-2.0.1 -DPHP_ATOM_INC
-I/root/tmp/memcached-2.0.1/include -I/root/tmp/memcached-2.0.1/main
-I/root/tmp/memcached-2.0.1 -I/usr/local/include/php
-I/usr/local/include/php/main -I/usr/local/include/php/TSRM
-I/usr/local/include/php/Zend -I/usr/local/include/php/ext
-I/usr/local/include/php/ext/date/lib -I/usr/local/include  -DHAVE_CONFIG_H
 -g -O2   -c /root/tmp/memcached-2.0.1/php_memcached.c -o php_memcached.lo
 cc -I/usr/local/include/php -I. -I/root/tmp/memcached-2.0.1 -DPHP_ATOM_INC
-I/root/tmp/memcached-2.0.1/include -I/root/tmp/memcached-2.0.1/main
-I/root/tmp/memcached-2.0.1 -I/usr/local/include/php
-I/usr/local/include/php/main -I/usr/local/include/php/TSRM
-I/usr/local/include/php/Zend -I/usr/local/include/php/ext
-I/usr/local/include/php/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H
-g -O2 -c /root/tmp/memcached-2.0.1/php_memcached.c  -fPIC -DPIC -o
.libs/php_memcached.o
/root/tmp/memcached-2.0.1/php_memcached.c: In function
‘php_memc_get_impl’:
/root/tmp/memcached-2.0.1/php_memcached.c:595: warning: assignment discards
qualifiers from pointer target type
/root/tmp/memcached-2.0.1/php_memcached.c: In function
‘php_memc_getMulti_impl’:
/root/tmp/memcached-2.0.1/php_memcached.c:793: warning: assignment discards
qualifiers from pointer target type
/root/tmp/memcached-2.0.1/php_memcached.c:796: warning: assignment discards
qualifiers from pointer target type
/root/tmp/memcached-2.0.1/php_memcached.c: In function
‘zim_Memcached_fetch’:
/root/tmp/memcached-2.0.1/php_memcached.c:1010: warning: assignment
discards qualifiers from pointer target type
/root/tmp/memcached-2.0.1/php_memcached.c:1013: warning: assignment
discards qualifiers from pointer target type
/root/tmp/memcached-2.0.1/php_memcached.c: In function
‘zim_Memcached_fetchAll’:
/root/tmp/memcached-2.0.1/php_memcached.c:1064: warning: assignment
discards qualifiers from pointer target type
/root/tmp/memcached-2.0.1/php_memcached.c:1067: warning: assignment
discards qualifiers from pointer target type
/root/tmp/memcached-2.0.1/php_memcached.c: In function
‘zim_Memcached_getServerByKey’:
/root/tmp/memcached-2.0.1/php_memcached.c:1973: warning: assignment
discards qualifiers from pointer target type
/root/tmp/memcached-2.0.1/php_memcached.c: In function
‘php_memc_do_serverlist_callback’:
/root/tmp/memcached-2.0.1/php_memcached.c:2585: warning: dereferencing
‘void *’ pointer
/root/tmp/memcached-2.0.1/php_memcached.c:2585: error: request for member
‘hostname’ in something not a structure or union
/root/tmp/memcached-2.0.1/php_memcached.c:2586: warning: dereferencing
‘void *’ pointer
/root/tmp/memcached-2.0.1/php_memcached.c:2586: error: request for member
‘port’ in something not a structure or union
/root/tmp/memcached-2.0.1/php_memcached.c:2587: warning: dereferencing
‘void *’ pointer
/root/tmp/memcached-2.0.1/php_memcached.c:2587: error: request for member
‘weight’ in something not a structure or union
/root/tmp/memcached-2.0.1/php_memcached.c: In function
‘php_memc_do_stats_callback’:
/root/tmp/memcached-2.0.1/php_memcached.c:2598: warning: dereferencing
‘void *’ pointer
/root/tmp/memcached-2.0.1/php_memcached.c:2598: error: request for member
‘hostname’ in something not a structure or union
/root/tmp/memcached-2.0.1/php_memcached.c:2598: warning: dereferencing
‘void *’ pointer
/root/tmp/memcached-2.0.1/php_memcached.c:2598: error: request for member
‘port’ in something not a structure or union
/root/tmp/memcached-2.0.1/php_memcached.c: In function
‘php_memc_do_version_callback’:
/root/tmp/memcached-2.0.1/php_memcached.c:2643: warning: dereferencing
‘void *’ pointer
/root/tmp/memcached-2.0.1/php_memcached.c:2643: error: request for member
‘hostname’ in something not a structure or union
/root/tmp/memcached-2.0.1/php_memcached.c:2643: warning: dereferencing
‘void *’ pointer
/root/tmp/memcached-2.0.1/php_memcached.c:2643: error: request for member
‘port’ in something not a structure or union
/root/tmp/memcached-2.0.1/php_memcached.c:2645: warning: dereferencing
‘void *’ pointer
/root/tmp/memcached-2.0.1/php_memcached.c:2645: error: request for member
‘major_version’ in something not a structure or union
/root/tmp/memcached-2.0.1/php_memcached.c:2645: warning: dereferencing
‘void *’ pointer
/root/tmp/memcached-2.0.1/php_memcached.c:2645: error: request for member
‘minor_version’ in something not a structure or union
/root/tmp/memcached-2.0.1/php_memcached.c:2646: warning: dereferencing
‘void *’ pointer
/root/tmp/memcached-2.0.1/php_memcached.c:2646: error: request for member
‘micro_version’ in something not a structure or union
/root/tmp/memcached-2.0.1/php_memcached.c: In function
‘php_memc_do_result_callback’:
/root/tmp/memcached-2.0.1/php_memcached.c:3189: warning: assignment
discards qualifiers from pointer target type
/root/tmp/memcached-2.0.1/php_memcached.c:3192: warning: assignment
discards qualifiers from pointer target type
make: *** [php_memcached.lo] Error 1

Past bug reports about this seem it's an issue with libmemcached's version,
however I've tried different versions and it seems to spit out the same
error.



Test script:
---------------
phpize; configure ; make 


-- 
Edit bug report at https://bugs.php.net/bug.php?id=64595&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=64595&r=trysnapshot54
Try a snapshot (PHP 5.3):   
https://bugs.php.net/fix.php?id=64595&r=trysnapshot53
Try a snapshot (trunk):     
https://bugs.php.net/fix.php?id=64595&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=64595&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=64595&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=64595&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=64595&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=64595&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=64595&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=64595&r=notwrong
Not enough info:            
https://bugs.php.net/fix.php?id=64595&r=notenoughinfo
Submitted twice:            
https://bugs.php.net/fix.php?id=64595&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=64595&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64595&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=64595&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=64595&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=64595&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=64595&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=64595&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=64595&r=mysqlcfg


-- 
PECL development discussion Mailing List (http://pecl.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to