[php-src] Issue #10728: Building opcache/jit fails with pkg-config+capstone
| From: | m6w6 | Date: | Tue, 28 Feb 2023 11:14:19 +0000 |
| Subject: | [php-src] Issue #10728: Building opcache/jit fails with pkg-config+capstone | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-243818@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/10728
Author: m6w6
### Description
The following code:
```
./buildconf && ./configure && make
```
Resulted in this output:
```
ext/opcache/jit/zend_jit_disasm.c:24:11: fatal error: 'capstone/capstone.h' file not found
# include <capstone/capstone.h>
^~~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [ext/opcache/jit/zend_jit.lo] Error 1
```
But I expected this output instead:
```
Build complete.
```
More info:
```
$ brew info -q capstone |head -1
==> capstone: stable 4.0.2 (bottled), HEAD
$ brew info -q pkg-config |head -1
==> pkg-config: stable 0.29.2 (bottled)
$ pkg-config --print-variables capstone
archive
includedir
libdir
pcfiledir
$ pkg-config --cflags --libs capstone
-I/opt/homebrew/Cellar/capstone/4.0.2/include/capstone -L/opt/homebrew/Cellar/capstone/4.0.2/lib
-lcapstone
```
### PHP Version
PHP-8.2 (git)
### Operating System
macOS 13 (homebrew)