免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 849 | 回复: 1
打印 上一主题 下一主题

我编译内核出错,能帮我看看什么问题么? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-07-19 09:40 |只看该作者 |倒序浏览
我编译内核出错,能帮我看看什么问题么?
linux 9系统

ipvs-1.0.9目录
make patchkernel、make installsource后
进入/usr/src/linux
make menuconfig
make bzImage
make modules出现如下错误?谁知道是什么问题?出在那里,我是新手,不太会看这些东西 :(



  1. [root@spy linux]# make modules
  2. make -r -f tmp_include_depends all
  3. make[1]: Entering directory `/usr/src/linux-2.4.20-8'
  4. make[1]: Circular /usr/src/linux-2.4.20-8/include/asm/smplock.h <- /usr/src/linu
  5. x-2.4.20-8/include/linux/interrupt.h dependency dropped.
  6. make[1]: Circular /usr/src/linux-2.4.20-8/include/linux/netfilter_ipv4/ip_conntr
  7. ack.h <- /usr/src/linux-2.4.20-8/include/linux/netfilter_ipv4/ip_conntrack_helpe
  8. r.h dependency dropped.
  9. make[1]: Nothing to be done for `all'.
  10. make[1]: Leaving directory `/usr/src/linux-2.4.20-8'
  11. make -C  kernel CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.20-8/include -Wall -Ws
  12. trict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-fram
  13. e-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS
  14. -include /usr/src/linux-2.4.20-8/include/linux/modversions.h" MAKING_MODULES=1 m
  15. odules
  16. make[1]: Entering directory `/usr/src/linux-2.4.20-8/kernel'
  17. gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-8/include -Wall -Wstrict-prototypes -Wn
  18. o-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpr
  19. eferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include /usr/src/li
  20. nux-2.4.20-8/include/linux/modversions.h  -nostdinc -iwithprefix include -DKBUIL
  21. D_BASENAME=cpufreq  -DEXPORT_SYMTAB -c cpufreq.c
  22. In file included from cpufreq.c:15:
  23. /usr/src/linux-2.4.20-8/include/linux/kernel.h:83: `get_option_R_ver_str' declar
  24. ed as function returning a function
  25. /usr/src/linux-2.4.20-8/include/linux/kernel.h:83: warning: parameter names (wit
  26. hout types) in function declaration
  27. /usr/src/linux-2.4.20-8/include/linux/kernel.h:84: invalid suffix on integer con
  28. stant
  29. /usr/src/linux-2.4.20-8/include/linux/kernel.h:84: parse error before numeric co
  30. nstant
  31. /usr/src/linux-2.4.20-8/include/linux/kernel.h:84: `get_options_R_ver_str' decla
  32. red as function returning a function
  33. /usr/src/linux-2.4.20-8/include/linux/kernel.h:84: warning: function declaration
  34. isn't a prototype
  35. /usr/src/linux-2.4.20-8/include/linux/kernel.h:85: invalid suffix on integer con
  36. stant
  37. /usr/src/linux-2.4.20-8/include/linux/kernel.h:85: parse error before numeric co
  38. nstant
  39. /usr/src/linux-2.4.20-8/include/linux/kernel.h:85: `memparse_R_ver_str' declared
  40. as function returning a function
  41. /usr/src/linux-2.4.20-8/include/linux/kernel.h:85: warning: function declaration
  42. isn't a prototype
  43. /usr/src/linux-2.4.20-8/include/linux/kernel.h:91: invalid suffix on integer con
  44. stant
  45. /usr/src/linux-2.4.20-8/include/linux/kernel.h:91: parse error before numeric co
  46. nstant
  47. /usr/src/linux-2.4.20-8/include/linux/kernel.h:92: `printk_R_ver_str' declared a
  48. s function returning a function
  49. /usr/src/linux-2.4.20-8/include/linux/kernel.h:92: warning: function declaration
  50. isn't a prototype
  51. /usr/src/linux-2.4.20-8/include/linux/kernel.h:108: parse error before numeric c
  52. onstant
  53. /usr/src/linux-2.4.20-8/include/linux/kernel.h:108: warning: function declaratio
  54. n isn't a prototype
  55. /usr/src/linux-2.4.20-8/include/linux/kernel.h:109: warning: parameter names (wi
  56. thout types) in function declaration
  57. In file included from /usr/src/linux-2.4.20-8/include/linux/prefetch.h:13,
  58.                  from /usr/src/linux-2.4.20-8/include/linux/list.h:6,
  59.                  from /usr/src/linux-2.4.20-8/include/linux/module.h:12,
  60.                  from cpufreq.c:16:
  61. /usr/src/linux-2.4.20-8/include/asm/processor.h:82: invalid suffix on integer co
  62. nstant
  63. /usr/src/linux-2.4.20-8/include/asm/processor.h:82: parse error before numeric c
  64. onstant
  65. /usr/src/linux-2.4.20-8/include/asm/processor.h:82: warning: function declaratio
  66. n isn't a prototype
  67. /usr/src/linux-2.4.20-8/include/asm/processor.h:265: invalid suffix on integer c
  68. onstant
  69. /usr/src/linux-2.4.20-8/include/asm/processor.h:265: parse error before numeric
  70. constant
  71. /usr/src/linux-2.4.20-8/include/asm/processor.h:265: warning: function declarati
  72. on isn't a prototype
  73. /usr/src/linux-2.4.20-8/include/asm/processor.h:269: warning: parameter names (w
  74. ithout types) in function declaration
  75. cpufreq.c: In function `cpufreq_proc_init':
  76. cpufreq.c:327: warning: implicit declaration of function `printk_R1b7d4074'
  77. cpufreq.c: At top level:
  78. cpufreq.c:192: warning: `cpufreq_setup' defined but not used
  79. make[1]: *** [cpufreq.o] Error 1
  80. make[1]: Leaving directory `/usr/src/linux-2.4.20-8/kernel'
  81. make: *** [_mod_kernel] Error 2
  82. [root@spy linux]#
复制代码

论坛徽章:
0
2 [报告]
发表于 2006-07-19 09:58 |只看该作者

  1. cp .config config.bak
  2. make mrproper
  3. cp config.bak .config
  4. make menuconfig
  5. make dep
  6. make bzImage
  7. make modules
  8. modprobe loop
  9. make modules_install
  10. make install
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP