|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #81136 Can't build opcache: 'zend_dfg.h' file not found
Submitted: 2021-06-14 09:01 UTC Modified: 2021-06-14 13:07 UTC
From: php-bugs-2021 at ryandesign dot com Assigned: krakjoe (profile)
Status: Closed Package: Compile Failure
PHP Version: 8.1.0alpha1 OS: macOS 10.13.6
Private report: No CVE-ID: None
 [2021-06-14 09:01 UTC] php-bugs-2021 at ryandesign dot com
Hi, with php 8.1.0alpha1 (and the fixes for bug #81130 and bug #81133) I am unable to build the opcache extension (with phpize). The error is:

In file included from /path/to/php-8.1.0alpha1/ext/opcache/jit/zend_jit.c:40:
/opt/local/include/php81/php/Zend/Optimizer/zend_dump.h:23:10: fatal error: 'zend_dfg.h' file not found
#include "zend_dfg.h"
1 error generated.

If I copy /path/to/php-8.1.0alpha1/Zend/Optimizer/zend_dfg.h into /opt/local/include/php81/php/Zend/Optimizer/ then I am able to build opcache. Is this the correct fix?


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2021-06-14 09:04 UTC]
-Assigned To: +Assigned To: krakjoe
 [2021-06-14 09:10 UTC]
Automatic comment on behalf of krakjoe
Log: Fix #81136 opcache header not installed, causing shared build to fail
 [2021-06-14 09:10 UTC]
-Status: Assigned +Status: Closed
 [2021-06-14 13:07 UTC] php-bugs-2021 at ryandesign dot com
Super, that works for me.

php81 and bundled extensions are now available in MacPorts for those who like to install that way.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Mon Mar 20 17:03:40 2023 UTC