Skip to content

Autotools: Fix phpdbg build #15373

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

Merged
merged 1 commit into from
Aug 13, 2024
Merged

Autotools: Fix phpdbg build #15373

merged 1 commit into from
Aug 13, 2024

Conversation

petk
Copy link
Member

@petk petk commented Aug 13, 2024

With 04a67cd the list of source files are now added alphabetically. Previously the phpdbg_parser.c was added before the phpdbg_lexer.c. Which caused the
"sapi/phpdbg/phpdbg_lexer.l:8:10: fatal error: 'phpdbg_parser.h' file not found" error.

To make the order of source files irrelevant, the Makefile substitutions needs to be fixed - the 3rd argument of PHP_ADD_MAKEFILE_FRAGMENT macro, which is the substitution of the $(builddir) Make variable. The $(builddir)/phpdbg_lexer.lo was previously substituted to an absolute path. And the relative should be used, for Make to be able to find the dependent target.

Fixes SjonHortensius/3v4l_org#22

With 04a67cd the list of source files
are now added alphabetically. Previously the phpdbg_parser.c was added
before the phpdbg_lexer.c. Which caused the
"sapi/phpdbg/phpdbg_lexer.l:8:10: fatal error: 'phpdbg_parser.h' file
not found" error.

To make the order of source files irrelevant, the Makefile substitutions
needs to be fixed - the 3rd argument of PHP_ADD_MAKEFILE_FRAGMENT macro,
which is the substitution of the $(builddir) Make variable. The
$(builddir)/phpdbg_lexer.lo was previously substituted to an absolute
path. And the relative should be used, for Make to be able to find the
dependent target.
@jrfnl
Copy link
Contributor

jrfnl commented Aug 13, 2024

Thank you @petk!

@petk petk merged commit 65e96c1 into php:master Aug 13, 2024
10 checks passed
@petk petk deleted the patch-phpdbg-build branch August 13, 2024 08:35
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.

Auto-build of PHP "master" stuck again ?
3 participants