Skip to content

ext/gd: conflicting iconv_t typedef breaking the Solaris build.#22810

Merged
devnexen merged 2 commits into
php:masterfrom
devnexen:gh22532_build_fix
Jul 23, 2026
Merged

ext/gd: conflicting iconv_t typedef breaking the Solaris build.#22810
devnexen merged 2 commits into
php:masterfrom
devnexen:gh22532_build_fix

Conversation

@devnexen

Copy link
Copy Markdown
Member

The gd 2.4 sync guarded gdkanji.c's 'typedef void *iconv_t' fallback with HAVE_ICONV_T_DEF, which the bundled build never defined. On Solaris <iconv.h> declares iconv_t as a struct pointer, so it clashed. Define HAVE_ICONV_T_DEF when <iconv.h> already provides iconv_t.

The gd 2.4 sync guarded gdkanji.c's 'typedef void *iconv_t' fallback
with HAVE_ICONV_T_DEF, which the bundled build never defined. On
Solaris <iconv.h> declares iconv_t as a struct pointer, so it clashed.
Define HAVE_ICONV_T_DEF when <iconv.h> already provides iconv_t.
@devnexen
devnexen requested review from petk and pierrejoye July 19, 2026 16:11

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

LGTM, thank you David!

@devnexen
devnexen merged commit ea8f2cf into php:master Jul 23, 2026
17 of 18 checks passed
@devnexen
devnexen deleted the gh22532_build_fix branch July 23, 2026 11:45
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.

2 participants