[php-src] Issue #19298: [8.5.0alpha3] build failure (opcache/jit)
| From: | remicollet | Date: | Wed, 30 Jul 2025 06:53:42 +0000 |
| Subject: | [php-src] Issue #19298: [8.5.0alpha3] build failure (opcache/jit) | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-250521@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/19298
Author: remicollet
### Description
```
/usr/bin/ld: ext/opcache/jit/ir/ir_disasm.o: in function `ir_disasm':
/builddir/build/BUILD/php85-php-8.5.0_alpha3-build/php-8.5.0alpha3/ext/opcache/jit/ir/ir_disasm.c:359:(.text+0x6ba):
undefined reference to `cs_open'
/usr/bin/ld:
/builddir/build/BUILD/php85-php-8.5.0_alpha3-build/php-8.5.0alpha3/ext/opcache/jit/ir/ir_disasm.c:371:(.text+0x6e9):
undefined reference to `cs_option'
/usr/bin/ld:
/builddir/build/BUILD/php85-php-8.5.0_alpha3-build/php-8.5.0alpha3/ext/opcache/jit/ir/ir_disasm.c:375:(.text+0x6ff):
undefined reference to `cs_option'
/usr/bin/ld:
/builddir/build/BUILD/php85-php-8.5.0_alpha3-build/php-8.5.0alpha3/ext/opcache/jit/ir/ir_disasm.c:361:(.text+0x88e):
undefined reference to `cs_strerror'
/usr/bin/ld:
/builddir/build/BUILD/php85-php-8.5.0_alpha3-build/php-8.5.0alpha3/ext/opcache/jit/ir/ir_disasm.c:441:(.text+0x914):
undefined reference to `cs_malloc'
/usr/bin/ld:
/builddir/build/BUILD/php85-php-8.5.0_alpha3-build/php-8.5.0alpha3/ext/opcache/jit/ir/ir_disasm.c:442:(.text+0x965):
undefined reference to `cs_disasm_iter'
/usr/bin/ld: ext/opcache/jit/ir/ir_disasm.o: in function `ir_disasm_branch_target':
/builddir/build/BUILD/php85-php-8.5.0_alpha3-build/php-8.5.0alpha3/ext/opcache/jit/ir/ir_disasm.c:210:(.text+0x981):
undefined reference to `cs_insn_group'
/usr/bin/ld: ext/opcache/jit/ir/ir_disasm.o: in function `ir_disasm':
/builddir/build/BUILD/php85-php-8.5.0_alpha3-build/php-8.5.0alpha3/ext/opcache/jit/ir/ir_disasm.c:480:(.text+0xaa4):
undefined reference to `cs_disasm_iter'
/usr/bin/ld:
/builddir/build/BUILD/php85-php-8.5.0_alpha3-build/php-8.5.0alpha3/ext/opcache/jit/ir/ir_disasm.c:645:(.text+0x1050):
undefined reference to `cs_free'
/usr/bin/ld:
/builddir/build/BUILD/php85-php-8.5.0_alpha3-build/php-8.5.0alpha3/ext/opcache/jit/ir/ir_disasm.c:753:(.text+0x107e):
undefined reference to `cs_close'
collect2: error: ld returned 1 exit status
```
### PHP Version
```plain
8.5.0alpha3
```
### Operating System
Fedora