Author Topic: Problem with memcached and PHP 7.3 compiling due to Zend API Change in 7.3  (Read 74 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?