Skip to content

Fix opcache build #19302

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Fix opcache build #19302

wants to merge 1 commit into from

Conversation

arnaud-lb
Copy link
Member

In the absence of PHP_ARG_WITH([opcache],, the value of ext_shared is not initialized while processing directives of ext/opcache/config.m4, causing PHP_EVAL_LIBLINE() to add libs to OPCACHE_SHARED_LIBADD instead of LIBS.

For example, running ./configure --with-dbmaker=shared --with-capstone will set ext_shared=yes before processing opcache. In this case, -lcapstone is added to OPCACHE_SHARED_LIBADD.

Fixing by setting libs-variable to LIBS.

@remicollet could you confirm this fixes the issue?

@arnaud-lb
Copy link
Member Author

Closing in favor of #19301

@arnaud-lb arnaud-lb closed this Jul 30, 2025
@remicollet
Copy link
Member

duplicate of #19301 ;)

And yes I confirm the fix
Tested (RPM build) on Fedora 41, 42, RHEL 8, 9, 10 on x86_64 and aarch64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[8.5.0alpha3] build failure (opcache/jit)
2 participants