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

prebuild binaries: Dynamically linked to musl? #25

Closed
user9931 opened this issue Oct 4, 2021 · 5 comments
Closed

prebuild binaries: Dynamically linked to musl? #25

user9931 opened this issue Oct 4, 2021 · 5 comments

Comments

@user9931
Copy link

user9931 commented Oct 4, 2021

I'm trying to run this file on ubuntu and nothing happens
ldd says
root@host:/tmp/cert-chain-resolver_linux_amd64$ ldd cert-chain-resolver
linux-vdso.so.1 (0x00007ffc1537f000)
libc.musl-x86_64.so.1 => not found

Those builds intended only for alpine linux (using musl)?

@user9931 user9931 changed the title Go version: Dynamically linked to musl? prebuild binaries: Dynamically linked to musl? Oct 4, 2021
@zakjan
Copy link
Owner

zakjan commented Oct 7, 2021

Hmm, I thought that Go produces static builds by default. Do you know if there is any flag for go build to produce a fully static build? Could you try to compile from sources locally?

@user9931
Copy link
Author

user9931 commented Oct 8, 2021

I'm not a programmer in any means, but CGO_ENABLED=0 go build inside source's directory works for me
Thank you for the app

~/apps/cert-chain-resolver/cert-chain-resolver-1.0.3  ldd ./cert-chain-resolver
        not a dynamic executable

zakjan added a commit that referenced this issue Nov 9, 2021
@zakjan
Copy link
Owner

zakjan commented Nov 9, 2021

Hi, thanks for your advice. Could you try the attached build, if it fixes the issue for you?

cert-chain-resolver_linux_amd64.tar.gz

@pniederlag
Copy link

Just ran into the very same issues as @thehotery, expecting the release to be executable on my linux machine but experiencing weird "not found" errors until I learned on debugging with ldd and seeing missing library.

the attached build fixes this and is executable

@zakjan
Copy link
Owner

zakjan commented Nov 22, 2021

Thanks for confirming, released as 1.0.4.

@zakjan zakjan closed this as completed Nov 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants