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

Build failure on OpenBSD: ld: error: unable to find library -ldl #375

Closed
tstromberg opened this issue Feb 1, 2022 · 2 comments · Fixed by #376
Closed

Build failure on OpenBSD: ld: error: unable to find library -ldl #375

tstromberg opened this issue Feb 1, 2022 · 2 comments · Fixed by #376
Labels
bug Something isn't working

Comments

@tstromberg
Copy link
Contributor

When running go test ., go install, or any other build step on OpenBSD:

# github.com/miekg/pkcs11                                                                                                          
ld: error: unable to find library -ldl                                                                                             
cc: error: linker command failed with exit code 1 (use -v to see invocation)                                                       
FAIL    github.com/sigstore/fulcio/pkg/api [build failed]

This is due to two dependencies referencing an old buggy version of the https://github.com/miekg/pkcs11 library:

miekg/pkcs11#140 fixes the issue in the upstream, and is available in miekg/pkcs11 v1.1.0 or newer.

@tstromberg tstromberg added the bug Something isn't working label Feb 1, 2022
@tstromberg
Copy link
Contributor Author

It seems like running go get github.com/miekg/pkcs11@v1.1.1 successfully fixes this problem, so I will raise an appropriate PR for it.

@dlorenc
Copy link
Member

dlorenc commented Feb 2, 2022

Let's use this to also track adding a presubmit test somehow to make sure this still compiles!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants