Author Topic: Problem with memcached and PHP 7.3 compiling due to Zend API Change in 7.3  (Read 21666 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Problem with memcached and PHP 7.3 compiling due to Zend API Change in 7.3 (see log tail):
Code: [Select]
/bin/sh /usr/local/src/php-memcached/libtool --mode=compile cc -I/opt/alt/php73/usr/include/php    -I. -I/usr/local/src/php-memcached -DPHP_ATOM_INC -I/usr/local/src/php-memcached/include -I/usr/local/src/php-memcached/main -I/usr/local/src/php-memcached -I/opt/alt/php73/usr/include/php -I/opt/alt/php73/usr/include/php/main -I/opt/alt/php73/usr/include/php/TSRM -I/opt/alt/php73/usr/include/php/Zend -I/opt/alt/php73/usr/include/php/ext -I/opt/alt/php73/usr/include/php/ext/date/lib -I/usr/local/include  -DHAVE_CONFIG_H  -g -O2 -I/opt/alt/php73/usr/include/php -I/opt/alt/php73/usr/include/php/main -I/opt/alt/php73/usr/include/php/TSRM -I/opt/alt/php73/usr/include/php/Zend -I/opt/alt/php73/usr/include/php/ext -I/opt/alt/php73/usr/include/php/ext/date/lib -I/usr/local/include   -c /usr/local/src/php-memcached/php_memcached.c -o php_memcached.lo
mkdir .libs
 cc -I/opt/alt/php73/usr/include/php -I. -I/usr/local/src/php-memcached -DPHP_ATOM_INC -I/usr/local/src/php-memcached/include -I/usr/local/src/php-memcached/main -I/usr/local/src/php-memcached -I/opt/alt/php73/usr/include/php -I/opt/alt/php73/usr/include/php/main -I/opt/alt/php73/usr/include/php/TSRM -I/opt/alt/php73/usr/include/php/Zend -I/opt/alt/php73/usr/include/php/ext -I/opt/alt/php73/usr/include/php/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -I/opt/alt/php73/usr/include/php -I/opt/alt/php73/usr/include/php/main -I/opt/alt/php73/usr/include/php/TSRM -I/opt/alt/php73/usr/include/php/Zend -I/opt/alt/php73/usr/include/php/ext -I/opt/alt/php73/usr/include/php/ext/date/lib -I/usr/local/include -c /usr/local/src/php-memcached/php_memcached.c  -fPIC -DPIC -o .libs/php_memcached.o
/usr/local/src/php-memcached/php_memcached.c: In function 'zim_Memcached___construct':
/usr/local/src/php-memcached/php_memcached.c:1282:20: error: lvalue required as left operand of assignment
   GC_REFCOUNT(&le) = 1;
                    ^
make: *** [php_memcached.lo] Error 1
/bin/sh /usr/local/src/php-memcached/libtool --mode=compile cc -I/opt/alt/php73/usr/include/php    -I. -I/usr/local/src/php-memcached -DPHP_ATOM_INC -I/usr/local/src/php-memcached/include -I/usr/local/src/php-memcached/main -I/usr/local/src/php-memcached -I/opt/alt/php73/usr/include/php -I/opt/alt/php73/usr/include/php/main -I/opt/alt/php73/usr/include/php/TSRM -I/opt/alt/php73/usr/include/php/Zend -I/opt/alt/php73/usr/include/php/ext -I/opt/alt/php73/usr/include/php/ext/date/lib -I/usr/local/include  -DHAVE_CONFIG_H  -g -O2 -I/opt/alt/php73/usr/include/php -I/opt/alt/php73/usr/include/php/main -I/opt/alt/php73/usr/include/php/TSRM -I/opt/alt/php73/usr/include/php/Zend -I/opt/alt/php73/usr/include/php/ext -I/opt/alt/php73/usr/include/php/ext/date/lib -I/usr/local/include   -c /usr/local/src/php-memcached/php_memcached.c -o php_memcached.lo
 cc -I/opt/alt/php73/usr/include/php -I. -I/usr/local/src/php-memcached -DPHP_ATOM_INC -I/usr/local/src/php-memcached/include -I/usr/local/src/php-memcached/main -I/usr/local/src/php-memcached -I/opt/alt/php73/usr/include/php -I/opt/alt/php73/usr/include/php/main -I/opt/alt/php73/usr/include/php/TSRM -I/opt/alt/php73/usr/include/php/Zend -I/opt/alt/php73/usr/include/php/ext -I/opt/alt/php73/usr/include/php/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -I/opt/alt/php73/usr/include/php -I/opt/alt/php73/usr/include/php/main -I/opt/alt/php73/usr/include/php/TSRM -I/opt/alt/php73/usr/include/php/Zend -I/opt/alt/php73/usr/include/php/ext -I/opt/alt/php73/usr/include/php/ext/date/lib -I/usr/local/include -c /usr/local/src/php-memcached/php_memcached.c  -fPIC -DPIC -o .libs/php_memcached.o
/usr/local/src/php-memcached/php_memcached.c: In function 'zim_Memcached___construct':
/usr/local/src/php-memcached/php_memcached.c:1282:20: error: lvalue required as left operand of assignment
   GC_REFCOUNT(&le) = 1;
                    ^
make: *** [php_memcached.lo] Error 1
/usr/local/cwpsrv/htdocs/resources/conf/php_selector/external_modules/7.3/memcached.sh: line 25: Creating config file: command not found
Redirecting to /bin/systemctl restart httpd.service

Build Completed
###################
As I understand this why (see link):
https://cismon.net/2018/02/06/Changes-of-Zend-API-in-PHP-7.3/

Unfortunately I don't have the experience to apply the necessary change for resolve and wanted to see if others may have addressed the issue.

Thoughts and/or advice?

Offline
**
Anyone? I can't get memcached install on php 7.3 also.

Offline
*****
Hi, try to install it via pecl. Maybe it will help you.
You can ask me to solve any problem with your server for some money in pm  ;)
Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor
Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: Problem with memcached and PHP 7.3 compiling due to Zend API Change in 7.3
« Reply #3 on: September 05, 2019, 08:07:09 PM »
Is this issue going to get any attention, or is memcached permanently broken in PHP 7.3?

Offline
*
Re: Problem with memcached and PHP 7.3 compiling due to Zend API Change in 7.3
« Reply #4 on: September 09, 2019, 01:55:07 PM »
I think this issue may have gotten some attention as I no longer see a build error while compiling PHP, but it does not install memcached properly. This issue also affects PHP-FPM7.3 as well. In fact, this is where I noticed the problem as PHP-FPM 7.3 does not have a working memcached extension when it is selected in the build options. It used to throw several errors while compiling; now it does not seem to be doing that, yet still doesn't work.

Could someone take a look at this and finish a fix for it in both PHP7.3 and PHP-FPM7.3.

Offline
*
Re: Problem with memcached and PHP 7.3 compiling due to Zend API Change in 7.3
« Reply #5 on: September 13, 2019, 12:58:01 AM »
Waiting patiently...

Code: [Select]
/usr/local/src/php-memcached/php_memcached.c: In function 'zim_Memcached___construct':
/usr/local/src/php-memcached/php_memcached.c:1282:20: error: lvalue required as left operand of assignment
   GC_REFCOUNT(&le) = 1;
                    ^
make: *** [php_memcached.lo] Error 1
/bin/sh /usr/local/src/php-memcached/libtool --mode=compile cc -I/opt/alt/php73/usr/include/php    -I. -I/usr/local/src/php-memcached -DPHP_ATOM_INC -I/usr/local/src/php-memcached/include -I/usr/local/src/php-memcached/main -I/usr/local/src/php-memcached -I/opt/alt/php73/usr/include/php -I/opt/alt/php73/usr/include/php/main -I/opt/alt/php73/usr/include/php/TSRM -I/opt/alt/php73/usr/include/php/Zend -I/opt/alt/php73/usr/include/php/ext -I/opt/alt/php73/usr/include/php/ext/date/lib -I/usr/local/include  -DHAVE_CONFIG_H  -g -O2 -I/opt/alt/php73/usr/include/php -I/opt/alt/php73/usr/include/php/main -I/opt/alt/php73/usr/include/php/TSRM -I/opt/alt/php73/usr/include/php/Zend -I/opt/alt/php73/usr/include/php/ext -I/opt/alt/php73/usr/include/php/ext/date/lib -I/usr/local/include   -c /usr/local/src/php-memcached/php_memcached.c -o php_memcached.lo
 cc -I/opt/alt/php73/usr/include/php -I. -I/usr/local/src/php-memcached -DPHP_ATOM_INC -I/usr/local/src/php-memcached/include -I/usr/local/src/php-memcached/main -I/usr/local/src/php-memcached -I/opt/alt/php73/usr/include/php -I/opt/alt/php73/usr/include/php/main -I/opt/alt/php73/usr/include/php/TSRM -I/opt/alt/php73/usr/include/php/Zend -I/opt/alt/php73/usr/include/php/ext -I/opt/alt/php73/usr/include/php/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -I/opt/alt/php73/usr/include/php -I/opt/alt/php73/usr/include/php/main -I/opt/alt/php73/usr/include/php/TSRM -I/opt/alt/php73/usr/include/php/Zend -I/opt/alt/php73/usr/include/php/ext -I/opt/alt/php73/usr/include/php/ext/date/lib -I/usr/local/include -c /usr/local/src/php-memcached/php_memcached.c  -fPIC -DPIC -o .libs/php_memcached.o
/usr/local/src/php-memcached/php_memcached.c: In function 'zim_Memcached___construct':
/usr/local/src/php-memcached/php_memcached.c:1282:20: error: lvalue required as left operand of assignment
   GC_REFCOUNT(&le) = 1;
                    ^
make: *** [php_memcached.lo] Error 1
ERROR: Missing extension file /opt/alt/php73/usr/lib/php/extensions/no-debug-non-zts-20180731/memcached.so

My mistake, seems PHP 7.3.8 or PHP-FPM 7.3.8 still will not compile memcached. Will this be addressed when the next PHP version is updated in CWP or what? PECL is not a choice as memcached is not available.

Offline
*
CWP7 Pro updated PHP to 7.3.10 and the memcached situation is the same; it crashes while being compiled as is posted above. Will you please take some time out and address this issue?

Offline
*
Is there any news on this front?

Offline
*****
Will check it with the developer and there will be an update soon

Offline
**
+1

Offline
*
Re: Problem with memcached and PHP 7.3 compiling due to Zend API Change in 7.3
« Reply #10 on: December 07, 2019, 11:06:43 PM »
1+

Offline
*
Re: Problem with memcached and PHP 7.3 compiling due to Zend API Change in 7.3
« Reply #11 on: December 19, 2019, 05:17:58 PM »
Any updates on this?  I would love to update to phpfpm 7.3, but I'm stuck on phpfpm 7.2 because memcache isn't working on 7.3.

Offline
*
Re: Problem with memcached and PHP 7.3 compiling due to Zend API Change in 7.3
« Reply #12 on: January 03, 2020, 07:56:48 PM »
This is still a problem on PHP 7.3.13 for me using the PHP-FPM Selector, but I found a work around to get it working here: https://forum.mysterydata.com/topic/4/cwp-help-to-install-memcached/4