Skip to content

saxonc alpine arm64 #1179

@benbrummer

Description

@benbrummer

Version of install-php-extensions

2.9.13

Error description

Error when loading saconc on arm64

https://github.com/invoiceninja/dockerfiles/actions/runs/18868360018/job/53840620561#step:6:3993

 > [linux/arm64 phpbuild  6/12] RUN install-php-extensions     bcmath     exif     gd     gmp     intl     mysqli     opcache     pdo_mysql     saxon     zip     @composer     && rm /usr/local/bin/install-php-extensions:
1566.3    - add LIBDIR to the `LD_RUN_PATH' environment variable
1566.3      during linking
1566.3    - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
1566.3 
1566.3 See any operating system documentation about shared libraries for
1566.3 more information, such as the ld(1) and ld.so(8) manual pages.
1566.3 ----------------------------------------------------------------------
1566.6 Installing shared extensions:     /usr/local/lib/php/extensions/no-debug-non-zts-20220829/
Error loading the "saxon" extension:
1567.7 PHP Warning:  PHP Startup: Unable to load dynamic library 'saxon.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20220829/saxon.so (Error loading shared library ld-linux-aarch64.so.1: No such file or directory (needed by /usr/lib/libsaxonc-core-ee.so.12)), /usr/local/lib/php/extensions/no-debug-non-zts-20220829/saxon.so.so (Error loading shared library /usr/local/lib/php/extensions/no-debug-non-zts-20220829/saxon.so.so: No such file or directory)) in Unknown on line 0

amd64 build works fine

Docker image

php:8.2-fpm-alpine3.20

Minimal Dockerfile

FROM php:8.2-fpm-alpine3.20

COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/

RUN install-php-extensions saxon

https://github.com/benbrummer/dockertest/actions/runs/18871226440

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions