kernel-2.6.32-431.el6.src.rpm内核源码安装过程和问题分析

简介:

一:安装内核源码包:.src.rpm和.rpm包的安装方式完全不同,可以通过rpm -qpl 查询rpm内容

#rpm -ivh kernel-2.6.32-431.el6.src.rpm

warning: user mockbuild does not exist - using root

warning: group mockbuild does not exist - using root

直接忽略。

二:没有在/usr/src生成内核源码,原因如下:

.src.rpm安装包将会在/root目录下生成rpmbuild,里面有SOURCES和SPECS两个目录,内核源码压缩包在

SOURCE里面。解压到/usr/src目录下。

三:安装ncurses-devel gcc

四:开始运行配置make menuconfig

    删除无线和红外

五:开始编译:make

crypto/signature/ksign-publickey.c:2:17: error: key.h: No such file or directory

crypto/signature/ksign-publickey.c: In function ‘ksign_init’:

crypto/signature/ksign-publickey.c:10: error: ‘ksign_def_public_key’ undeclared (first use in this function)

crypto/signature/ksign-publickey.c:10: error: (Each undeclared identifier is reported only once

crypto/signature/ksign-publickey.c:10: error: for each function it appears in.)

crypto/signature/ksign-publickey.c:11: error: ‘ksign_def_public_key_size’ undeclared (first use in this function)

make[2]: *** [crypto/signature/ksign-publickey.o] Error 1

make[1]: *** [crypto/signature] Error 2

make: *** [crypto] Error 2


解决方案:

run make menuconfig.

1) Select "Enable loadable module support", then "Module signature verification (EXPERIMENTAL)". Disable it.

2) Then go back to the main menu, select "Cryptographic API" then "In-kernel signature checker (EXPERIMENTAL)" and disable that one too.

Then go back again, save your config and make your kernel. At least, it will pass this phase successfully.


六:重新编译:make

net/wireless/wext-priv.c: In function 'ioctl_private_call':

net/wireless/wext-priv.c:207: error: implicit declaration of function 'call_commit_handler'


解决方案:

drivers/net/wireless/Kconfig 

menuconfig WLAN

bool "Wireless LAN"

depends on !S390

+depends on NET



     本文转自fengyuzaitu 51CTO博客,原文链接:http://blog.51cto.com/fengyuzaitu/1563411,如需转载请自行联系原作者




相关文章
|
5月前
|
Linux
通过ELRepo修改CentOS 7内核版本的详细步骤
通过ELRepo修改CentOS 7内核版本的详细步骤
706 3
|
JavaScript Linux C语言
【NodeJS】GLIBC_2.28 not found CentOS7不兼容Node高版本
【NodeJS】GLIBC_2.28 not found CentOS7不兼容Node高版本
1968 2
【NodeJS】GLIBC_2.28 not found CentOS7不兼容Node高版本
|
Linux
LINUX出错解决办法:无法定位软件包 libX11-dev
LINUX出错解决办法:无法定位软件包 libX11-dev
943 0
|
C++ Windows
64bit libcurl.lib生成步骤及注意事项详解
1、[前提]编译32bit libcurl.lib 参考文档:Using-libcurl-with-SSH-support-in-Visual-Studio-2010.pdf。下载地址:http://curl.haxx.se/libcurl/c/
444 0
64bit libcurl.lib生成步骤及注意事项详解