How to fix libguile/stime.c on macOS Sierra build of guile-2.0.11?

假如想象 提交于 2019-12-11 03:08:52

问题


enter link description hereThe build of guile-2.0.11 stops with the following error,

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)

Googling around I found a bug report and patch. The bug report is here:

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

The link to the patch is in the bug report. The patch is just a few lines so I just edited stime.c by incorporating the patch into stime.c, ran configure again and make again. Unfortunately the error remains unchanged.

Any advice would be greatly appreciated.


回答1:


Apparently that patch has been superseded: see this post at bug-guile

Since the problem with stime.c has been fixed in subsequent Guile versions, I simply copied a later version of stime.c in the libguile directory (.../libguile/stime.c) and moved the original package version to stime_old.c. Then configure and make. The error no longer appears and the make runs to completion. I then did sudo make install and it appears to be ok.



来源:https://stackoverflow.com/questions/45104102/how-to-fix-libguile-stime-c-on-macos-sierra-build-of-guile-2-0-11

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!