首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >修复xnu构建后的kextcache“无法找到符号”错误

修复xnu构建后的kextcache“无法找到符号”错误
EN

Stack Overflow用户
提问于 2018-07-30 18:41:50
回答 1查看 818关注 0票数 2

我正在为OSXHighSiera10.13.3构建和运行一个xnu-4570.41.2内核。我正在根据森的博客这是最近的教程等指南在本地编译它。一旦编译了内核,我就把它加载到HighSiera10.13.3 VirtualBox VM中,替换内核,这样它就可以从我的内核启动。

尽管VM正在引导和运行我的内核(从我替换内核之前和之后的uname -a输出以及添加到引导进程中的print语句的差异中可以看出),但在内核扩展预链接过程中,我看到了以下错误。它们在引导过程中出现,每当我按照指南的指示替换VM的内核后运行sudo kextcache -invalidate /

代码语言:javascript
复制
kxld[com.apple.iokit.IOStorageFamily]: In interface com.apple.kpi.mach of __kernel__, couldn't find symbol _mach_bridge_register_regwrite_timestamp_callback

kxld[com.apple.iokit.IOStorageFamily]: In interface com.apple.kpi.private of __kernel__, couldn't find symbol _kern_buflet_get_data_length

kxld[com.apple.iokit.IOStorageFamily]: In interface com.apple.kpi.private of __kernel__, couldn't find symbol _kern_buflet_get_data_limit

kxld[com.apple.iokit.IOStorageFamily]: In interface com.apple.kpi.private of __kernel__, couldn't find symbol _kern_buflet_get_data_offset

...

kxld[com.apple.nke.applicationfirewall]: In interface com.apple.kpi.private of __kernel__, couldn't find symbol _xcpm_mbox_lock

kxld[com.apple.nke.applicationfirewall]: In interface com.apple.kpi.private of __kernel__, couldn't find symbol _xcpm_mbox_unlock

kxld[com.apple.nke.applicationfirewall]: In interface com.apple.kpi.bsd of __kernel__, couldn't find symbol _bpf_tap_packet_in

kxld[com.apple.nke.applicationfirewall]: In interface com.apple.kpi.bsd of __kernel__, couldn't find symbol _bpf_tap_packet_out

这些只是18,000个这样的错误中的一个样本。虽然这些错误并不妨碍构建工作的PrelinkedKernel,但是在内核编译或安装中显然缺少了一些步骤。为什么会发生这些错误?有人知道我怎么解决这些问题吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-09-07 16:57:32

基于开放源码堆栈Exchange中的这个问题谈到了我丢失的一些xcpm符号,我得出结论,这些符号是缺少的,因为它们来自苹果没有在xnu开放源码中发布的专有文件。

更新:这些缺失的符号错误可以通过在xnu/config/Private.exports中为它们指定声明来解决。通过内核萨满制造器构建内核会自动为您添加这些符号。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/51600345

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档