How do I fix “no symbol version for module_layout”?

你说的曾经没有我的故事 提交于 2019-12-11 15:27:39

问题


I'm trying to compile the nvidia driver and the VirtualBox drives on openSUSE 11.2. Both compile fine (after the usual make oldconfig plus a partial build of the kernel) but when I try to load the modules, I get this error:

vboxdrv: no symbol version for module_layout

What's wrong? How do I fix this?


回答1:


Not cogent to openSUSE, but under Ubuntu 10, I found that the solution was:

apt-get install dkms
apt-get install linux-headers-2.6.32-24-generic
unset KERN_DIR
/etc/init.d/vboxadd setup 
# Although presumably if the apt-gets had been done first,
# the last two lines would be superfluous.

Hope this is useful to someone else down the way.




回答2:


Found it. The package kernel-default-devel was missing. To install it, run this command as root:

zypper in kernel-default-devel


来源:https://stackoverflow.com/questions/1738539/how-do-i-fix-no-symbol-version-for-module-layout

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