Linux CentOS内核编译:下载CentOS源码、编译2.6.32-220的错误(apic.c:819 error 'numi_watchdog' undeclared)
来源:互联网 发布:python 自动问答系统 编辑:程序博客网 时间:2024/04/30 05:29
一、下载CentOS源码
1.1 查看CentOS版本
cat /etc/issue
1.2 查看Linux内核版本
uname -r
1.3 下载
文件名:kernel-2.6.32-220.el6.src.rpm
下载地址:http://vault.centos.org/6.2/os/Source/SPackages/
官网:http://vault.centos.org/
1.4 从kernel-2.6.32-220.el6.src.rpm获取源码
1. rpm -i kernel-2.6.32-220.el6.src.rpm
2. 在/root/rpmbuild/SOURCES目录下回生成:linux-2.6.32-220.el6.tar.bz2
3. tar jxvf linux-2.6.32-220.el6.tar.bz2
二、编译时的错误
编译内核源码:http://blog.csdn.net/guowenyan001/article/details/38704775
会产生一个错误。
2.1 错误现象
arch/x86/kernel/apic/apic.c:819:error: ‘ nmi_watchdog undeclared’ (first use in thie function)
问题解决参考:https://forums.gentoo.org/viewtopic-t-944366-start-0.html
2.2 解决办法
使用openvz官网的.config,不再自己配置.config,openvz官网的.config支持kgdb选项。
openvz官网.config:http://download.openvz.org/kernel/branches/rhel6-2.6.32/042stab053.5/configs/config-2.6.32-042stab053.5.x86_64
参考资料:
何处下载CentOS的Linux内核的源代码:http://www.2cto.com/os/201404/293174.html
- Linux CentOS内核编译:下载CentOS源码、编译2.6.32-220的错误(apic.c:819 error 'numi_watchdog' undeclared)
- 编译linux-2.6.20内核出现scripts/mod/sumversion.c:384: error: ‘PATH_MAX’ undeclared 错误
- centos编译linux内核
- centos的linux内核源码下载方法
- centos 为当前linux 内核下载源码以便开发编译module
- Centos linux 5内核编译
- linux centos 内核编译脚本
- win7 centos linux内核编译
- Centos下编译Linux内核
- 基于CentOS的linux 2.6.20 内核编译
- centos安装pycurl出现src/module.c:723: error: ‘CURLPROTO_*’ undeclared错误的解决办法
- centos获取内核源码,编译内核,编译内核模块
- linux C 编译错误 error: ‘EOWNERDEAD’ undeclared (first use in this function)
- 编译linux内核报错: task undeclared in cputset.c
- 编译内核是碰到error: `PCIMEM_BASE ' undeclared
- VC编译错误:error C2065: 'strcpy_instead_use_StringCbCopyA_or_StringCchCopyA' : undeclared
- CentOS 编译内核
- CentOS 5.3 内核编译
- 定义枚举的构造方法和字段
- 使用Github管理cocos2dx版本
- 粒子群算法(3)----标准的粒子群算法(局部版本)
- 粒子群算法(2)----标准的粒子群算法
- TRS专题制作选件手册
- Linux CentOS内核编译:下载CentOS源码、编译2.6.32-220的错误(apic.c:819 error 'numi_watchdog' undeclared)
- 粒子群算法(1)----粒子群算法简介
- Qualcomm平台camera调试移植入门
- 微软Web Deploy在Windows Server 2003上的安装配置
- Android应用视觉效果设计技巧
- Unity3d 引擎原理详细介绍、Unity3D引擎架构设计
- 比较JS合并数组的各种方法及其优劣
- 拥塞控制的理解
- vi使用backspace不能删除字符问问题