Skip to content

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

Open
Mrmaxmeier wants to merge 1 commit into
php:masterfrom
Mrmaxmeier:fuzzer-fix-makefile
Open

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

Conversation

@Mrmaxmeier

Copy link
Copy Markdown

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!

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
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.

1 participant