php.net |  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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
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
Description:
------------
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?



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-06-14 09:04 UTC] krakjoe@php.net
-Assigned To: +Assigned To: krakjoe
 [2021-06-14 09:10 UTC] git@php.net
Automatic comment on behalf of krakjoe
Revision: https://github.com/php/php-src/commit/a297c66cfbfecdeeee83d9a08e049839d8f34423
Log: Fix #81136 opcache header not installed, causing shared build to fail
 [2021-06-14 09:10 UTC] git@php.net
-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] git@php.net
Automatic comment on behalf of petk (author) and web-flow (committer)
Revision: https://github.com/php/php-src/commit/a651ae86aa2e4208f8471277ba69f26fb903e4e7
Log: Sync Zend/Optimizer headers installation (#13201)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Oct 27 16:01:27 2024 UTC