刚刚在 macbook pro 10,1 上安装了 ubuntu 13.10。
我徒劳地将内核升级到 3.12.6,希望雷电显示器能够工作(但是没有工作)并且热插拔能够工作(但是没有工作)(但安装 nvidia 专有驱动程序 331.20 确实对显示有帮助)。
我想安装 openafs 客户端,但是构建内核模块失败。我运行:
sudo module-assistant prepare openafs-modules
module-assistant auto-build openafs-modules
模块构建失败,我附上了日志文件的相关片段:
building in directory: MODLOAD-3.12.6-031206-generic-SP
make[4]: Entering directory `/usr/src/modules/openafs/src/libafs/MODLOAD-3.12.6-031206-generic-SP'
Makefile.common:50: warning: overriding commands for target `.c.o'
/usr/src/modules/openafs/src/config/Makefile.config:141: warning: ignoring old commands for target `.c.o'
env EXTRA_CFLAGS="" /usr/src/modules/openafs/src/libafs/make_kbuild_makefile.pl MODLOAD-3.12.6-031206-generic-SP openafs.ko /usr/src/modules/openafs/src/config/Makefile.config Makefile.afs Makefile.common
env EXTRA_CFLAGS="" make -C /usr/src/linux M=/usr/src/modules/openafs/src/libafs/MODLOAD-3.12.6-031206-generic-SP modules 2>&1 | tee .makelog
make[5]: Entering directory `/usr/src/linux-headers-3.12.6-031206-generic'
CC [M] /usr/src/modules/openafs/src/libafs/MODLOAD-3.12.6-031206-generic-SP/afs_error.o
In file included from /usr/src/modules/openafs/src/afs/afs_osi.h:440:0,
from /usr/src/modules/openafs/src/rx/rx_clock.h:46,
from /usr/src/modules/openafs/src/rx/rx.h:29,
from /usr/src/modules/openafs/src/afs/afsincludes.h:30,
from /usr/src/modules/openafs/src/libafs/MODLOAD-3.12.6-031206-generic-SP/afs_error.c:34:
/usr/src/modules/openafs/src/afs/LINUX/osi_machdep.h: In function ‘afs_set_cr_uid’:
/usr/src/modules/openafs/src/afs/LINUX/osi_machdep.h:160:17: error: incompatible types when assigning to type ‘kuid_t’ from type ‘uid_t’
cred->fsuid = uid;
^
/usr/src/modules/openafs/src/afs/LINUX/osi_machdep.h: In function ‘afs_set_cr_gid’:
/usr/src/modules/openafs/src/afs/LINUX/osi_machdep.h:164:17: error: incompatible types when assigning to type ‘kgid_t’ from type ‘gid_t’
cred->fsgid = gid;
^
/usr/src/modules/openafs/src/afs/LINUX/osi_machdep.h: In function ‘afs_set_cr_ruid’:
/usr/src/modules/openafs/src/afs/LINUX/osi_machdep.h:168:15: error: incompatible types when assigning to type ‘kuid_t’ from type ‘uid_t’
cred->uid = uid;
^
/usr/src/modules/openafs/src/afs/LINUX/osi_machdep.h: In function ‘afs_set_cr_rgid’:
/usr/src/modules/openafs/src/afs/LINUX/osi_machdep.h:172:15: error: incompatible types when assigning to type ‘kgid_t’ from type ‘gid_t’
cred->gid = gid;
^
make[6]: *** [/usr/src/modules/openafs/src/libafs/MODLOAD-3.12.6-031206-generic-SP/afs_error.o] Error 1
make[5]: *** [_module_/usr/src/modules/openafs/src/libafs/MODLOAD-3.12.6-031206-generic-SP] Error 2
make[5]: Leaving directory `/usr/src/linux-headers-3.12.6-031206-generic'
rm .makelog
当我尝试安装 openafs-modules-dkms 时,synaptic 中的详细信息窗口显示:
Selecting previously unselected package openafs-modules-dkms.
(Reading database ... 230488 files and directories currently installed.)
Unpacking openafs-modules-dkms (from .../openafs-modules-dkms_1.6.5-1ubuntu3_all.deb) ...
Setting up openafs-modules-dkms (1.6.5-1ubuntu3) ...
Loading new openafs-1.6.5 DKMS files...
First Installation: checking all kernels...
Building only for 3.12.6-031206-generic
Building initial module for 3.12.6-031206-generic
ERROR (dkms apport): kernel package linux-headers-3.12.6-031206-generic is not supported
Error! Bad return status for module build on kernel: 3.12.6-031206-generic (x86_64)
Consult /var/lib/dkms/openafs/1.6.5/build/make.log for more information.
在 make.log 文件中,错误与通过 module-assistant 构建时的错误相同(只是指示的文件路径不同)
有谁知道这个问题的解决办法吗?
多谢!
沃伊泰克
答案1
在您安装 openafs 时,我认为 openafs 软件包不支持针对该内核进行构建;这是LP #1246675根据该错误报告,此问题已在 openafs 软件包的新版本中得到修复,因此解决方案是升级。或者,更一般地,应用该错误中引用的以下三个补丁: