[+] Statically Linked Musl Builds are broken
Hi, I tried to build binsider to add in https://github.com/Azathothas/Toolpacks on alpine:latest, however it errors out with:
Compiling lddtree v0.3.5
Compiling lurk-cli v0.3.6
error[E0432]: unresolved import `libc::PTRACE_SYSCALL_INFO_EXIT`
--> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/lurk-cli-0.3.6/src/lib.rs:77:30
|
77 | use libc::{user_regs_struct, PTRACE_SYSCALL_INFO_EXIT};
| ^^^^^^^^^^^^^^^^^^^^^^^^ no `PTRACE_SYSCALL_INFO_EXIT` in the root
For more information about this error, try `rustc --explain E0432`.
error: could not compile `lurk-cli` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
And the fact that the official release only contain gnu dynamic binaries, I think you are already aware of this issue.
Hopefully, we can get a statically linked binsider binary that can run anywhere.
Thanks!
Thanks for the issue! See the following links:
- https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/71833
- https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/71875
I think it will be possible soon π€πΌ
Revisiting this, I was able to build it from source on x86_64-Linux however on aarch64-Linux, I ran into https://github.com/orhun/binsider/issues/56 Which then led me to https://github.com/JakWai01/lurk/issues/4 Seems like upstream issue, and you are already aware of it: https://github.com/orhun/binsider/issues/56#issuecomment-2381571481 I added prebuilds too, both can be installed with soar
-
On
aarch64 -
On
x86_64