hdliuguanqun / openwrt-for-embedded

Automatically exported from code.google.com/p/openwrt-for-embedded
0 stars 0 forks source link

在为编译packages/kernel做准备阶段make[7]: *** [net/netfilter/xt_IMQ.o] Error 1 #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
在为编译packages/kernel做准备阶段,make[3] -C 
target/linux/compile出错:
      CC [M]  net/netfilter/xt_IMQ.o
  net/netfilter/xt_IMQ.c:11: warning: 'struct   xt_target_param' declared inside parameter list
  net/netfilter/xt_IMQ.c:11: warning: its scope is only this definition or declaration, which is probably not what you want
  net/netfilter/xt_IMQ.c: In function 'imq_target':
  net/netfilter/xt_IMQ.c:13: error: dereferencing pointer to incomplete type
  net/netfilter/xt_IMQ.c: At top level:
  net/netfilter/xt_IMQ.c:38: warning: initialization from incompatible pointer type
  net/netfilter/xt_IMQ.c:39: warning: initialization from incompatible pointer type
  net/netfilter/xt_IMQ.c:47: warning: initialization from incompatible pointer type
  net/netfilter/xt_IMQ.c:48: warning: initialization from incompatible pointer type
  make[7]: *** [net/netfilter/xt_IMQ.o] Error 1
  make[6]: *** [net/netfilter] Error 2
  make[5]: *** [net] Error 2
  make[5]: Leaving directory `trunk-10.03.1/build_dir/linux-s5pv210_tiny210/linux-2.6.35.7'

主要是因为我加入的generic/patches-2.6.35/150-netfilter_imq.patch有问�
��,缺少struct xt_target_param定义。
可以对比下,patches-2.6.30/和patches-2.6.32/中有该150-netfilter_imq.pa
tch补丁,但是到了patches-2.6.36/就没有了。
所以在本2.6.35内核中也删除掉。
解决方法一:删除generic/patches-2.6.35/150-netfilter_imq.patch
  需要同时修改其他相关的补丁!(不修改也行,他会自动识别到相应的位置)
  Applying patch generic/180-netfilter_depends.patch
  patching file net/netfilter/Kconfig
  Hunk #2 succeeded at 549 (offset -12 lines).

  Applying patch platform/805-dm9000-16bit-support.patch
  patching file drivers/net/Makefile
  patching file drivers/net/Kconfig
  Hunk #1 succeeded at 958 (offset -123 lines).
  Hunk #2 succeeded at 3191 (offset -123 lines).
  patching file drivers/net/dm9000.c

解决方法二:修改generic/patches-2.6.35/150-netfilter_imq.patch
没有采用

Original issue reported on code.google.com by richard....@gmail.com on 21 May 2012 at 4:30