-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
Linking fails with 'undefined reference to' libdl functions. #61
Comments
See ziglang/zig#6469
Do you have libepoxy headers (usually package |
Yeah. I'm using Arch which has the headers included in the |
Ok, maybe clearing cache will help you $ rm -r ~/.cache/zig/ where-project/zig-cache/ |
Same issue. |
Try this (and clear cache):
|
Same include error. |
Try this (and clear cache):
It works for me without |
That did it! I had no idea that |
I had mach-glfw and zgl working together nicely, but at some point linking started to fail with the following errors;
zig build --verbose-link
givesI am using Zig version
0.10.0-dev.3475+b3d463c9e
with the following in my build scriptIf I understand correctly, my libepoxy version depends on the GLIBC_2.34 symbols, while the included
libdl.so.2
file being linked hasGLIBC_2.2.5
. I do not understand why the compiler does not grab the available system libraries, which do seem to have to correct symbols in them.Setting the target with
-Dtarget=x86_64-linux-gnu.2.34
, as suggested to someone with the same problem, results inI do not know how to proceed right now.
Someone in the Zig discord server had the same issue, and for him bulding libepoxy himself seemed to work. However, it should be able to use the installed system libraries.
The text was updated successfully, but these errors were encountered: