orhun / binsider

Analyze ELF binaries like a boss πŸ˜ΌπŸ•΅οΈβ€β™‚οΈ
https://binsider.dev/
Apache License 2.0
2.76k stars 61 forks source link

[+] Statically Linked Musl Builds are broken #18

Open Azathothas opened 2 months ago

Azathothas commented 2 months ago

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!

orhun commented 2 months ago

Thanks for the issue! See the following links:

I think it will be possible soon 🀞🏼