Does not build on riscv64
Closed this issue · 4 comments
nmeum commented
Hi, I just wanted to let you know that termshark does not build on riscv64 by default. This is due to following issues:
- github.com/kr/pty does not support riscv64. However, the repository is a fork and archived. The original version github.com/creack/pty does support riscv64. Maybe switch to that?
- Similar to arm64, the
dup2
syscall is not available on riscv64. You can just usedup3
as set the last argument (the flags argument) to zero. This is equivalent todup2
. There should be no need for a customDumpcapExt
implementation for arm64/riscv64 IMHO.
qbit commented
fwiw, the creack/pty also will allow termshark to build on OpenBSD/armv7,arm64 (and mips64 once creack/pty#123 lands).
gcla commented
gcla commented
I'll close this for now because I think it's resolved on master - but please re-open if it's not resolved.