给系统打LVS补丁的问题?摆脱了,谢谢您

发布于 2022-07-14 02:56:12 字数 5516 浏览 5 评论 0

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

复制代码

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文