Skip to content

Build failed after adding sqlsrv,pdo_sqlsrv #1083

Closed

Activity

  1. added
    bug
    on Apr 5, 2026
  2. henderkes commented on Apr 5, 2026

    @henderkes
    Collaborator

    The ci run shows no debug logs so can't say. Please enable --debug or upload the shell log after failure.

  3. nujz commented on Apr 5, 2026

    @nujz
    Author

    The ci run shows no debug logs so can't say. Please enable --debug or upload the shell log after failure.

    https://github.com/nujz/static-php-cli/actions/runs/23997718452

    logs

  4. henderkes commented on Apr 6, 2026

    @henderkes
    Collaborator

    I'm confused, what OS is it being ran on? It says -all-static but GccNativeToolchain, which shouldn't even be possible.

  5. crazywhalecc commented on Apr 6, 2026

    @crazywhalecc
    Owner

    I'm confused, what OS is it being ran on? It says -all-static but GccNativeToolchain, which shouldn't even be possible.

    Seems Alpine Linux: It contains cd '/app/source/attr' && cat '/app/src/globals/patch/attr_alpine_gethostname.patch' | patch -p1 which is musl distro only.

    Main issue should be missing php-src/ext/pdo_sqlsrv/shared/ include dirs when building statically.

  6. added
    kind/extension
    on Apr 6, 2026
  7. crazywhalecc commented on Apr 10, 2026

    @crazywhalecc
    Owner

    The grpc extension's config.m4 calls PHP_ADD_INCLUDE(PHP_EXT_SRCDIR()/src/php/ext/grpc), which adds its directory to the global include path for all extension compilations. That directory contains version.h with the include guard #ifndef VERSION_H. The same guard used by pdo_sqlsrv's shared/version.h. Since grpc's path appears earlier in the compiler's -I list, its version.h is picked up first, and the guard prevents pdo_sqlsrv's version.h from loading.

  8. added a commit that references this issue on Apr 10, 2026
    864fa9d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugkind/extension

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions