Bug #66755 [Fbk->Asn]: Cannot compile Zend OPcache 7.0.3 for PHP 5.2.0

From: Date: Fri, 23 Oct 2020 13:49:11 +0000
Subject: Bug #66755 [Fbk->Asn]: Cannot compile Zend OPcache 7.0.3 for PHP 5.2.0
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-229871@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66755&edit=1

 ID:                 66755
 User updated by:    php at thomasmccorkell dot me dot uk
 Reported by:        php at thomasmccorkell dot me dot uk
 Summary:            Cannot compile Zend OPcache 7.0.3 for PHP 5.2.0
-Status:             Feedback
+Status:             Assigned
 Type:               Bug
 Package:            opcache
 Operating System:   Linux 2.6.17.14 on Sparc
 PHP Version:        Irrelevant
 Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

Unfortunately I've since decommissioned the NAS I encountered this bug on, so I'm not able
to re-test this.


Previous Comments:
------------------------------------------------------------------------
[2020-10-23 12:33:52] cmb@php.net

I assume that has been fixed in the meantime, or do you still
experience this issue with any of the actively supported PHP
versions[1]?

[1] <https://www.php.net/supported-versions.php>

------------------------------------------------------------------------
[2014-02-22 21:54:43] php at thomasmccorkell dot me dot uk

Description:
------------
Trying to compile Zend OPcache 7.0.3 for PHP 5.2.0 failed due to at least two errors. I found a
workaround for the first but not the second.

Note that Zend OPcache lists a minimum PHP version of 5.2.0 so this should work.

The system is a Netgear ReadyNAS Duo (which is based on I think Debian sarge), running a 2.6.17.14
kernel on a Sparc CPU. The PHP install came from the relevant Debian packages and has had Xdebug
2.2.3 added by building the latter from source. phpinfo lists the version as "PHP Version
5.2.0-8+etch9~bpo31+1".

I'm compiling directly on the NAS without a cross-compiler. I additionally had to update
config.guess and config.sub to get configure to run as it couldn't auto-detect my system (a
sparc-unknown-linux-gnu).

Test script:
---------------
With a PHP 5.2.0 install, download http://pecl.php.net/get/zendopcache-7.0.3.tgz.
Attempt to build with phpize, ./configure, make.

Expected result:
----------------
Successful compilation.

Actual result:
--------------
Compilation initially failed with:

zendopcache-7.0.3/zend_accelerator_util_funcs.c: In function `zend_clone_zval':
zendopcache-7.0.3/zend_accelerator_util_funcs.c:236: error: `zend_uintptr_t' undeclared (first
use in this function)

After modifying /usr/include/php5/Zend/zend_types.h to include "typedef unsigned long
zend_uintptr_t;" (see also bug 58331), compilation then failed with:

zendopcache-7.0.3/Optimizer/zend_optimizer.c: In function `zend_optimizer':
zendopcache-7.0.3/Optimizer/zend_optimizer.c:310: error: `ZEND_ACC_INTERACTIVE' undeclared
(first use in this function)

I couldn't find anything online about this error and so gave up at that point.


------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=66755&edit=1


Thread (4 messages)

« previous php.bugs (#229871) next »