Skip to content

Alpine support #177

Description

@zingmars

Alpine Linux is a lightweight Linux distro usually used in containers. It's fairly popular due its small size. Unfortunately it differs from other Linux distributions by using an alternative libc - musl libc, as opposed to gnu's libc used by most standard mainstrean distributions. This often causes support issues, which seems to be the case this time.

Currently the native libraries shipped with th HDF.PInvoke depend on gnu's libc, which means it will just segfault when you try to run it -

/usr/local/bin/app/runtimes/linux-x64/native # readelf -d libhdf5.so | grep 'NEEDED'
 0x0000000000000001 (NEEDED)             Shared library: [libm.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [libdl.so.2]
 0x0000000000000001 (NEEDED)             Shared library: [libpthread.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]

For reference, confluence's libkafka for C# also ships with native linux binaries, and the have binaries for both gnu's libc based distributions and alpine. Here's the readelf output for their alpine library -

/usr/local/bin/app/runtimes/linux-x64/native # readelf -d alpine-librdkafka.so | grep 'NEEDED'
 0x0000000000000001 (NEEDED)             Shared library: [libssl.so.1.1]
 0x0000000000000001 (NEEDED)             Shared library: [libcrypto.so.1.1]
 0x0000000000000001 (NEEDED)             Shared library: [libz.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libc.musl-x86_64.so.1]

Are there any plans to support alpine in the future and if not what are the chances that such support will ever be added?

Activity

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

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions