我应该关心符号版本转储丢失吗?(Should I care that the symbol version dump is missing? How do I get one?)

编程入门 行业动态 更新时间:2024-10-25 02:23:44
我应该关心符号版本转储丢失吗?(Should I care that the symbol version dump is missing? How do I get one?)

我正在尝试编译我们从源代码获得的驱动程序,并且正在通过新的目标环境解决这些问题。 我看到的一个令人不安的事情是以下警告:

WARNING: Symbol version dump /usr/src/linux-2.6.38/Module.symvers is missing; modules will have no dependencies and modversions.

我在网上花费了相当长的时间,并且在其他问题被问到时经常在输出中显示,但是我没有看到关于这是否是问题的任何评论。

无论如何,我如何告诉linux / ubuntu生成Module.symvers?

I am trying to compile a driver that we have from source and I am working through the issues with a new target environment. One of the slightly disturbing things I see is the following warning:

WARNING: Symbol version dump /usr/src/linux-2.6.38/Module.symvers is missing; modules will have no dependencies and modversions.

I spent a fair amount of time looking on the web and this is shown in output frequently when other questions are asked, but I didn't see any commentary about whether or not this is an issue.

In any case, how would I tell linux/ubuntu to generate Module.symvers?

最满意答案

Module.symvers是在编译内核时生成的,应该作为内核构建环境包的一部分提供给用户,但是可能会在Ubuntu上看到(可能在那里出现了问题?)例如,Fedora和openSUSE提供一个或多个“ kernel-devel“(和/或类似名称)的软件包,通过/lib/modules/<version>/build/Module.symvers该构建环境并使文件可达。 当使用自编译的内核时,替换为build目录(所有.o文件都在其中)的适当路径的替换/ lib / modules / version / build。

Module.symvers is generated when the kernel itself is compiled and ought to be provided to the user as part of the kernel build environment package, however that may look on Ubuntu (possibly broken there?) Fedora and openSUSE for example ship one or more “kernel-devel” (and/or similarly-named) packages that ship this build environment and make the file reachable through /lib/modules/<version>/build/Module.symvers. When using a self-compiled kernel, substitue /lib/modules/version/build for the appropriate path to the build directory (where all the .o files are).

更多推荐

本文发布于:2023-04-29 03:49:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1334575.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:符号   版本   care   symbol   dump

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!