Skip to content

Building opcache/jit fails with pkg-config+capstone  #10728

@m6w6

Description

@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)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions