You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Compiler can't fetch shared library with version on it ! ( libfoo.so.x.y ) #18465
I tried to follow the issues i caught every time on OpenBSD 7.3 (-current) when we use linkSystemLibrary("foo").
Compiler only check every dir with where file ended as libfoo.so but actually not... Shared library (in most of time) end by a major and a minor version. Which render to something like that libfoo.so.X.Y (as in title).
This appears to effectively (though perhaps not absolutely) block building ghostty on OpenBSD, inasmuch as some of the dependent libs are part of the OpenBSD base system (e.g. fontconfig) and weren't successfully built statically through the zig package manager. If my laptop battery hadn't died I'd have a better report. I haven't tried building zig with #18475 yet.
Activity
matu3ba commentedon Jan 6, 2024
Does pkg-config (or the zig usage in the build system) not work for you use case? Why?
rwsalie commentedon Jan 6, 2024
No.. it's not the pkg-config because it give the correct flags
it's more the zig usage in the build system which is not specific to OpenBSD, i just remember LLD was patched for matching versioned shared library ( https://github.com/openbsd/ports/blob/master/devel/llvm/17/patches/patch-lld_ELF_DriverUtils_cpp )
at src/link/Elf.zig, he only check up the (somewhere in lib dir)`/libglib-2.0.so ( only)( src/main.zig on accesLibPath)nektro commentedon Jan 6, 2024
distros/packages are supposed to symlink
libfoo.sotolibfoo.so.Xetcsilby commentedon Dec 27, 2024
This appears to effectively (though perhaps not absolutely) block building ghostty on OpenBSD, inasmuch as some of the dependent libs are part of the OpenBSD base system (e.g. fontconfig) and weren't successfully built statically through the zig package manager. If my laptop battery hadn't died I'd have a better report. I haven't tried building zig with #18475 yet.
alexrp commentedon Jul 19, 2026
https://codeberg.org/ziglang/zig/issues/36235