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
ubuntu static-release target fails with undefined symbols #8439
Comments
Why not use If you don't want to use |
Yes, building the depends rather than installing packages does work. Should I close this issue, or leave it open to track the issue with static build/linking? |
What do you mean it doesn't build / link static binaries? We use depends to create release binaries which are static linked.
I'm not aware of any issues, if you want to compile static binaries without depends you have to correctly compile unbound library. I've linked in my previous comment how you have to compile it. |
The issue would be: Previous to this release it was possible to build and link using package manager installed dependency libraries using the "static-release" target, and now that fails due to missing libraries in the cmake generated link.txt file. I agree that its possible to build the unbound library from source to work around this. Its also possible to support the (untuntu 20.04) package manager installed unbound library by adding the 4 mentioned libraries to the cmake (link.txt) process. So the question is if this issue should remain open to track that? |
IMO it's the distro packager's responsibility to ensure that static libraries reference their dependencies. |
Ok. I had never heard of static libraries referencing dependencies. Closing. |
I'm working on a working static build here, feel free to follow along or jump into the PR with comments, hopefully will be helpful: |
Trying to build v0.18.0.0
Getting undefined symbols linking on ubuntu 20.04 using "static-release" target.
Additional libraries are needed for static linking executables - required by libunbound
/usr/lib/x86_64-linux-gnu/libhogweed.a
/usr/lib/x86_64-linux-gnu/libgmp.a
/usr/lib/x86_64-linux-gnu/libnettle.a
/usr/lib/x86_64-linux-gnu/libevent.a
Reference:
https://packages.debian.org/sid/libs/libunbound8
The text was updated successfully, but these errors were encountered: