[英]NTP 4.2.8p15 fails build with glibc 2.34: error: missing binary operator before token "("
我正在使用 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
| ^~~~~~~~~~~~~~~~~
問題在這里得到解答: https ://bugs.archlinux.org/task/74690
由於 glibc 2.34 PTHREAD_STACK_MIN 不再是編譯時間常數,因此不能用於導致編譯失敗的預處理器比較 [1]。 附加到上游錯誤報告 [2] 的修復解決了該問題。
附加信息:
- ntp 4.2.8.p15-1
- https://bugs.ntp.org/show_bug.cgi?id=3741
[1] ntp-4.2.8.p15-1-x86_64-build.log.xz [2] https://bugs.ntp.org/attachment.cgi?id=1814
要解決此構建問題,請在 NTP 鏈接中應用補丁。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.