HDSentinel not working on Alpine Linux

Post here if you encounter any problems or bugs with the software.
adicl
Posts: 2
Joined: 2021.12.07. 01:43

HDSentinel not working on Alpine Linux

Post by adicl »

Hi,
Not sure this is a bug... more like a feature request :) Please feel free to move it...
hdsentinel does not start on a freshly installed Alpine Linux. In the end I was able to identify the the following problem:

Code: Select all

wyse1:~# uname -a
Linux wyse1 5.15.5-0-lts #1-Alpine SMP Fri, 26 Nov 2021 11:51:30 +0000 x86_64 Linux
wyse1:~# ldd ./hdsentinel-019c-x64
        /lib64/ld-linux-x86-64.so.2 (0x7f370ca83000)
        libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f370ca83000)
Error relocating ./hdsentinel-019c-x64: sgetspent: symbol not found
The problem seems to be caused by the fact that Alpine, given it's minimalist nature, is using musl [https://musl.libc.org/] instead of the full fledged glibc.
In the end, I was able to run hdsentinel by installing glibc using the script run in the docker file below:
https://github.com/Docker-Hub-frolvlad/ ... Dockerfile

I am wondering if sgetspent is really useful for hdsentinel?
If not, maybe removing the "dependency" (if possible) could make hdsentinel even more "portable"?

Regards,
Adrian