|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: php-bugs-2021 at ryandesign dot com
New email:
PHP Version: OS:


 [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.
 [2024-01-20 14:05 UTC]
Automatic comment on behalf of petk (author) and web-flow (committer)
Log: Sync Zend/Optimizer headers installation (#13201)
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jul 20 12:01:28 2024 UTC