-
Notifications
You must be signed in to change notification settings - Fork 119
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
static linking fails on Fedora #1051
Comments
@blp, I know you wrote these instructions in the readme, but just to double check, do you have glibc-static and friends installed on these systems?
|
I do. This is a really weird error. I can't find anyone else mentioning something similar on the Internet. |
same issue here. I also get some warnings: |
DDlog used to rely on static linking to reduce runtime dependencies. Unfortunately, this no longer works well on recent Ubuntu and Fedora releases (see #1051). The problem appears to be in the `unix` Haskell package, which may still load dynamic libraries (in particular glibc) using `dlopen` when using static linking. As far as I can tell it uses older versions of Linux static libraries, which require some deprecated libc symbols (specifically `__xmnod`). This will probably get fixed eventually, but overall static linking probably was not a good idea, so we switch to the more standard dynamic linking method.
DDlog used to rely on static linking to reduce runtime dependencies. Unfortunately, this no longer works well on recent Ubuntu and Fedora releases (see vmware#1051). The problem appears to be in the `unix` Haskell package, which may still load dynamic libraries (in particular glibc) using `dlopen` when using static linking. As far as I can tell it uses older versions of Linux static libraries, which require some deprecated libc symbols (specifically `__xmnod`). This will probably get fixed eventually, but overall static linking probably was not a good idea, so we switch to the more standard dynamic linking method.
I consistently get the following linker error on two different Fedora systems with tip of master:
It works OK if I delete all the lines in
package.yaml
of the form- -optl-static
.The text was updated successfully, but these errors were encountered: