Skip to content
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

Published binaries should support alpine linux #82

Closed
jyn514 opened this issue Oct 22, 2020 · 2 comments · Fixed by #103
Closed

Published binaries should support alpine linux #82

jyn514 opened this issue Oct 22, 2020 · 2 comments · Fixed by #103
Labels
C-enhancement Category: This is a new feature

Comments

@jyn514
Copy link
Contributor

jyn514 commented Oct 22, 2020

Currently, they give this error by default:

/ # ./deadlinks-linux 
/bin/sh: ./deadlinks-linux: not found
/ # ldd deadlinks-linux 
	/lib64/ld-linux-x86-64.so.2 (0x7f92f963f000)
	libssl.so.1.1 => /lib/libssl.so.1.1 (0x7f92f8d99000)
	libcrypto.so.1.1 => /lib/libcrypto.so.1.1 (0x7f92f8b1a000)
	libdl.so.2 => /lib64/ld-linux-x86-64.so.2 (0x7f92f963f000)
	librt.so.1 => /lib64/ld-linux-x86-64.so.2 (0x7f92f963f000)
	libpthread.so.0 => /lib64/ld-linux-x86-64.so.2 (0x7f92f963f000)
Error loading shared library libgcc_s.so.1: No such file or directory (needed by deadlinks-linux)
	libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f92f963f000)
Error loading shared library ld-linux-x86-64.so.2: No such file or directory (needed by deadlinks-linux)
	libm.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f92f963f000)
Error relocating deadlinks-linux: _Unwind_Resume: symbol not found
Error relocating deadlinks-linux: _Unwind_GetIPInfo: symbol not found
Error relocating deadlinks-linux: __res_init: symbol not found
Error relocating deadlinks-linux: _Unwind_GetDataRelBase: symbol not found
Error relocating deadlinks-linux: _Unwind_GetRegionStart: symbol not found
Error relocating deadlinks-linux: _Unwind_SetGR: symbol not found
Error relocating deadlinks-linux: _Unwind_GetTextRelBase: symbol not found
Error relocating deadlinks-linux: _Unwind_RaiseException: symbol not found
Error relocating deadlinks-linux: _Unwind_GetIP: symbol not found
Error relocating deadlinks-linux: _Unwind_Backtrace: symbol not found
Error relocating deadlinks-linux: _Unwind_GetLanguageSpecificData: symbol not found
Error relocating deadlinks-linux: _Unwind_SetIP: symbol not found

and this error after installing libgcc:

/ # ldd deadlinks-linux 
	/lib64/ld-linux-x86-64.so.2 (0x7fa877374000)
	libssl.so.1.1 => /lib/libssl.so.1.1 (0x7fa876ace000)
	libcrypto.so.1.1 => /lib/libcrypto.so.1.1 (0x7fa87684f000)
	libdl.so.2 => /lib64/ld-linux-x86-64.so.2 (0x7fa877374000)
	librt.so.1 => /lib64/ld-linux-x86-64.so.2 (0x7fa877374000)
	libpthread.so.0 => /lib64/ld-linux-x86-64.so.2 (0x7fa877374000)
	libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x7fa87683b000)
	libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7fa877374000)
Error loading shared library ld-linux-x86-64.so.2: No such file or directory (needed by deadlinks-linux)
	libm.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7fa877374000)
Error relocating deadlinks-linux: __res_init: symbol not found

denoland/deno#1495 (comment) points to this needing glibc support. cargo-deadlinks should instead target x86_64-unknown-linux-musl, which doesn't require glibc.

@jyn514 jyn514 added the C-enhancement Category: This is a new feature label Oct 22, 2020
@jyn514
Copy link
Contributor Author

jyn514 commented Oct 23, 2020

@jyn514
Copy link
Contributor Author

jyn514 commented Nov 18, 2020

Yay, the openssl issue was magically fixed by switching from reqwest to ureq 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: This is a new feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant