Bug #66755 [NEW]: Cannot compile Zend OPcache 7.0.3 for PHP 5.2.0
From: php at thomasmccorkell dot me dot uk
Operating system: Linux 2.6.17.14 on Sparc
PHP version: Irrelevant
Package: opcache
Bug Type: Bug
Bug description:Cannot compile Zend OPcache 7.0.3 for PHP 5.2.0
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 bug report at https://bugs.php.net/bug.php?id=66755&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66755&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66755&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66755&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=66755&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=66755&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=66755&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=66755&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=66755&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=66755&r=support
Expected behavior: https://bugs.php.net/fix.php?id=66755&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=66755&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=66755&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=66755&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66755&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=66755&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=66755&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=66755&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=66755&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=66755&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=66755&r=mysqlcfg
Thread (4 messages)
- php at thomasmccorkell dot me dot uk