Skip to content

fix(static): rename types.h to avoid header shadowing - #2728

Open
alexandre-daubois wants to merge 1 commit into
php:mainfrom
alexandre-daubois:fix/static-types-header-shadowing
Open

alexandre-daubois wants to merge 1 commit into
php:mainfrom
alexandre-daubois:fix/static-types-header-shadowing

Conversation

@alexandre-daubois

Copy link
Copy Markdown
Member

static-php-cli now adds -I.../include/webp to CGO_CFLAGS, so #include "types.h" picks up libwebp's header and breaks the static builds, and I renamed ours to frankenphp_types.h.

static-php-cli now passes the full `pkg-config --cflags` output, which adds `-I.../include/webp` to `CGO_CFLAGS`. `#include "types.h"` then resolves to libwebp's `types.h` and cgo fails with `could not determine what C.__hash_update_string__ refers to`.
@alexandre-daubois
alexandre-daubois force-pushed the fix/static-types-header-shadowing branch from b387616 to 3f0abc6 Compare October 19, 2026 08:21

This branch has not been deployed

No deployments
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