应用程序无法在 glibc 软件包版本 2.35-2 的 Arch Linux 上运行

发布于 2025-01-10 01:46:11 字数 230 浏览 1 评论 0原文

奇怪的是,glibc 软件包版本 2.35-2 不包含 /usr/lib/libdl.so 也不包含 /usr/lib/libpthread.so

这是 strace:

chilkat/chilkat-9.5.0-x86_64-linux-gcc/ lib/glibc-hwcaps/x86-64-v3/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT(没有这样的文件或目录)

The strange thing is that teh glibc package version 2.35-2 does not contain /usr/lib/libdl.so nor /usr/lib/libpthread.so

Here is strace:

chilkat/chilkat-9.5.0-x86_64-linux-gcc/lib/glibc-hwcaps/x86-64-v3/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

北方。的韩爷 2025-01-17 01:46:11

libdl.solibpthread.so 是链接编辑器输入文件,它们在运行时不使用。相反,sonames libdl.so.2libpthread.so.0 用于运行时动态链接。

从 glibc 2.34 开始,不再需要显式链接 libdllibpthread(因为所有函数均由 libc 直接提供)。因此,libdl.solibpthread.so 已被空静态档案 libdl.a取代>libpthread.a,以便链接器参数 -ldl-lpthread 继续工作。

libdl.so and libpthread.so are link editor input files, they are not used at run time. Instead, the sonames libdl.so.2 and libpthread.so.0 are used for run-time dynamic linking.

Starting with glibc 2.34, explicitly linking against libdl or libpthread is no longer needed (as all functions are provided by libc directly). Therefore, libdl.so and libpthread.so have been replaced by empty static archives libdl.a and libpthread.a, so that the linker arguments -ldl and -lpthread keep working.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文