linux编译内核时出现错误,求解

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了linux编译内核时出现错误,求解相关的知识,希望对你有一定的参考价值。

ERROR: "xt_rateest_put" [net/netfilter/xt_rateest.ko] undefined!
ERROR: "xt_rateest_lookup" [net/netfilter/xt_rateest.ko] undefined!
ERROR: "xt_rateest_put" [net/netfilter/xt_RATEEST.ko] undefined!
ERROR: "xt_rateest_lookup" [net/netfilter/xt_RATEEST.ko] undefined!
WARNING: modpost: Found 8 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2

参考技术A 'make CONFIG_DEBUG_SECTION_MISMATCH=y'
需要把这个宏定义打开, 最简单的方法是就CONFIG_DEBUG_SECTION_MISMATCH=y 加到 .config 文件里面去,然后从新编译及好了
参考技术B 俺还没到配置内核的水准,等一会有这能力了再回答你哈。
一般就看看日志,日志里面会说清楚的。
参考技术C 配置不对,需要修改配置。具体去网上找。

Linux安装内核错误

  遇到编译内核时出现以下错误:

 1 #    patchutils is needed by kernel-2.6.32-431.29.2.el6.x86_64
 2 #    xmlto is needed by kernel-2.6.32-431.29.2.el6.x86_64
 3 #    asciidoc is needed by kernel-2.6.32-431.29.2.el6.x86_64
 4 #    elfutils-libelf-devel is needed by kernel-2.6.32-431.29.2.el6.x86_64
 5 #    elfutils-devel is needed by kernel-2.6.32-431.29.2.el6.x86_64
 6 #    zlib-devel is needed by kernel-2.6.32-431.29.2.el6.x86_64
 7 #    binutils-devel is needed by kernel-2.6.32-431.29.2.el6.x86_64
 8 #    newt-devel is needed by kernel-2.6.32-431.29.2.el6.x86_64
 9 #    python-devel is needed by kernel-2.6.32-431.29.2.el6.x86_64
10 #    audit-libs-devel is needed by kernel-2.6.32-431.29.2.el6.x86_64
11 #    perl(ExtUtils::Embed) is needed by kernel-2.6.32-431.29.2.el6.x86_64
12 #    bison is needed by kernel-2.6.32-431.29.2.el6.x86_64
13 #    flex is needed by kernel-2.6.32-431.29.2.el6.x86_64
14 #    hmaccalc is needed by kernel-2.6.32-431.29.2.el6.x86_64

  解决方法:

    什么被需要就:yum install 什么

    特别的:

    perl(ExtUtils::Embed):

    yum install perl-ExtUtils-Embed



   

以上是关于linux编译内核时出现错误,求解的主要内容,如果未能解决你的问题,请参考以下文章

编译linux内核时出现"mkimage" command not found - U-Boot images will not be built错误的解决办法

linux4.11内核设备编译时出现的问题(参考博客并更改的)

Linux学习Ubuntu下内核编译

Linux安装内核错误

linux下加内核模块时出现出现如下错误:insmod: error inserting 'kernel.ko': -1 Invalid parameters因该

分段错误:使用 yosys 编译时出现 11