Skip to content

sapi/fuzzer: depend on PHP_BINARY_OBJS instead of PHP_SAPI_OBJS - #23394

Closed
Mrmaxmeier wants to merge 1 commit into
php:PHP-8.4from
Mrmaxmeier:fuzzer-fix-makefile
Closed

sapi/fuzzer: depend on PHP_BINARY_OBJS instead of PHP_SAPI_OBJS#23394
Mrmaxmeier wants to merge 1 commit into
php:PHP-8.4from
Mrmaxmeier:fuzzer-fix-makefile

Conversation

@Mrmaxmeier

Copy link
Copy Markdown
Contributor

Hi,

PHP's fuzzers currently fail to build when built in isolation:

$ export CC=clang
$ ./buildconf
$ ./configure --enable-fuzzer
$ make sapi/fuzzer/php-fuzz-json
[...]
libtool:   error: 'main/internal_functions_cli.lo' is not a valid libtool object
make: *** [Makefile:311: sapi/fuzzer/php-fuzz-json] Error 1

This PR adjusts the dependency graph to include the missing steps.
Thanks!

@LamentXU123 LamentXU123 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks correct. @NattyNarwhal Can you take a look at this since you are recently working on sapi?

@NattyNarwhal

Copy link
Copy Markdown
Member

More of a build system question, but it makes sense to me.

@LamentXU123

Copy link
Copy Markdown
Member

This should target 8.4 @Mrmaxmeier could you rebase this to 8.4?

FUZZER_BUILD links $(PHP_BINARY_OBJS) (main/internal_functions_cli.lo), but the
php-fuzz-* rules listed $(PHP_SAPI_OBJS) (main/internal_functions.lo) as a
prerequisite. Building only the fuzzers from a clean tree therefore fails on the
missing internal_functions_cli.lo. Match the prerequisites to what is linked, as
the CLI, CGI, phpdbg and litespeed fragments already do.

Assisted-By: Claude Opus 5
@Mrmaxmeier
Mrmaxmeier force-pushed the fuzzer-fix-makefile branch from 5401a02 to 9a4b037 Compare August 22, 2026 20:29
@Mrmaxmeier
Mrmaxmeier changed the base branch from master to PHP-8.4 August 22, 2026 20:29
@Mrmaxmeier

Copy link
Copy Markdown
Contributor Author

This should target 8.4 @Mrmaxmeier could you rebase this to 8.4?

Whoops, thanks! 🙂

LamentXU123 added a commit that referenced this pull request Aug 22, 2026
* PHP-8.5:
  sapi/fuzzer: depend on PHP_BINARY_OBJS instead of PHP_SAPI_OBJS (#23394)
@LamentXU123

Copy link
Copy Markdown
Member

Thank you!

pull Bot pushed a commit to KornaPhp/php-src that referenced this pull request Aug 22, 2026
* PHP-8.4:
  sapi/fuzzer: depend on PHP_BINARY_OBJS instead of PHP_SAPI_OBJS (php#23394)
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.

3 participants