NTP 4.2.8P15使用GLIBC 2.34构建失败:错误:token'(&quot)之前缺少二进制操作员

发布于 2025-01-30 07:35:17 字数 403 浏览 2 评论 0原文

我正在用GLIBC 2.34构建NTP 4.2.8p15。 构建失败时错误:

In file included from /usr/include/pthread.h:33,
                 from work_thread.c:13:
work_thread.c:45:57: error: missing binary operator before token "("
   45 | #if defined(PTHREAD_STACK_MIN) && THREAD_MINSTACKSIZE < PTHREAD_STACK_MIN
      |                                                         ^~~~~~~~~~~~~~~~~

I am building NTP 4.2.8p15 with glibc 2.34.
The build fails with error:

In file included from /usr/include/pthread.h:33,
                 from work_thread.c:13:
work_thread.c:45:57: error: missing binary operator before token "("
   45 | #if defined(PTHREAD_STACK_MIN) && THREAD_MINSTACKSIZE < PTHREAD_STACK_MIN
      |                                                         ^~~~~~~~~~~~~~~~~

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

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

发布评论

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

评论(1

养猫人 2025-02-06 07:35:17

这个问题在这里回答:
https://bugs.archlinux.org/task/task/74690

由于glibc 2.34 pthread_stack_min不再是编译时常数,因此不能在导致的预处理器比较中使用
汇编失败[1]。附加到上游错误的修复程序
报告[2]解决问题。

附加信息:

要解决此构建问题,请将补丁程序应用于链接到NTP。

The problem is answered here:
https://bugs.archlinux.org/task/74690

Since glibc 2.34 PTHREAD_STACK_MIN is no longer a compile time constant so can not be used in preprocessor comparisons which causes
the compilation failure [1]. The fix attached to the upstream bug
report [2] resolves the issue.

Additional info:

To fix this build issue, apply the patch in link to NTP.

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