2017-07-14 40 views
2

enter link description here詭計-2.0.11停止並出現以下錯誤的構建,如何修復macOS上的libguile/stime.c Sierra構建的guile-2.0.11?

Undefined symbols for architecture x86_64: 
"_clock_getcpuclockid", referenced from: 
    _scm_init_stime in libguile_2.0_la-stime.o 
ld: symbol(s) not found for architecture x86_64 
clang: error: linker command failed with exit code 1 (use -v to see  invocation) 

我周圍的谷歌搜索發現了一個bug報告和補丁。錯誤報告是在這裏:

http://lists.gnu.org/archive/html/bug-guile/2016-06/msg00252.html

到補丁的鏈接是錯誤報告。該補丁只是幾行,所以我通過將補丁合併到stime.c中來編輯stime.c,然後再次運行configure並重新生成。不幸的是,錯誤保持不變。

任何意見將不勝感激。

回答

0

顯然,這個補丁已被取代:see this post at bug-guile

由於與stime.c問題已被固定在後續版本狡詐,我只是在libguile目錄複製stime.c更高版本(.../libguile/stime.c)並將原始軟件包版本移至stime_old.c。然後配置並製作。錯誤不再出現,並且make完成。然後我做了sudo make install,看起來沒問題。