HDFGroup / HDFGroup/HDF.PInvoke

Alpine support

Open
#177 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
87
Forks
31
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.