在此输入链接描述 http://lists.gnu.org/archive/html/bug-guile/2016-06/msg00252.htmlguile-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)
谷歌搜索我发现了一个错误报告和补丁。错误报告在这里:
http://lists.gnu.org/archive/html/bug-guile/2016-06/msg00252.html http://lists.gnu.org/archive/html/bug-guile/2016-06/msg00252.html
补丁的链接位于错误报告中。该补丁只有几行,所以我只是通过将补丁合并到 stime.c 中来编辑 stime.c,再次运行configure并再次make。不幸的是,错误仍然没有改变。
任何建议将不胜感激。
显然该补丁已被取代:请参阅 bug-guile 上的这篇文章 http://lists.gnu.org/archive/html/bug-guile/2017-03/msg00000.html
由于stime.c的问题在后续的Guile版本中已经得到修复,所以我只是在libguile目录(.../libguile/stime.c)中复制了更高版本的stime.c,并将原始包版本移至stime_old.c 。然后配置并make。错误不再出现,并且 make 运行完成。然后我做了 sudo make install ,看起来没问题。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)