-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C sshnpd binary (from c0.1.8 release) won't run on Ubuntu 20.04 due to missing glibc dependency #1220
Comments
@XavierChanth I've tried the binaries for your manual test build and the c0.1.9-rc1 release and they both still fail to run for the same reason as before |
This may deserve its own ticket, but I just had a go at building locally, and that's failing:
My CMake line was: cmake -B build -S . -DBUILD_SHARED_LIBS=off -DCMAKE_C_COMPILER=gcc -DCMAKE_C_FLAGS="-Wno-calloc-transposed-args -Wno-error -pthread -lrt" |
https://github.com/wheybags/glibc_version_header may help here https://stackoverflow.com/a/76085075 also suggests using the zig compiler, which would tie into #1208 |
With Zig ruled out as an approach I'll take a look at the glibc_version_header way of dealing with things. |
Alpine Linux: Effortless static linking and portable applications for C/C++ provides a good overview of the issue we're facing with glibc. I've already spent some time getting a linux-x64/arm64 build working inside of Debian 10 (glibc 2.28.0) in Docker. Unfortunately doing the same for armv7 is challenging as both CMake and Clang aren't available. Will also take a look at what we can do with musl (building inside Alpine). |
Describe the bug
Running
./sshnpd
returns:Steps to reproduce
tar -xvf sshnp-linux-x64.tgz sshnpd
./sshnpd
Expected behavior
Daemon shows help
Additional context
uname -a
lsb_release -a
ldd --version
The text was updated successfully, but these errors were encountered: