imq / linuximq

Pseudo-driver for the intermediate queue device.

Home Page:https://imq.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error while comping kernel 4.4.33

psy0rz opened this issue · comments

commented

While compiling i get this error:


bash-4.3# make -j1 INSTALL_MOD_STRIP=1 bzImage 
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CHK     include/generated/bounds.h
  CHK     include/generated/timeconst.h
  CHK     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  CHK     kernel/config_data.h
  CC      net/core/dev.o
In file included from include/linux/linkage.h:6:0,
                 from include/linux/kernel.h:6,
                 from include/asm-generic/bug.h:13,
                 from ./arch/x86/include/asm/bug.h:35,
                 from include/linux/bug.h:4,
                 from include/linux/thread_info.h:11,
                 from ./arch/x86/include/asm/uaccess.h:8,
                 from net/core/dev.c:75:
include/linux/export.h:59:20: error: redefinition of ‘__kstrtab_validate_xmit_skb_list’
  static const char __kstrtab_##sym[]   \
                    ^
include/linux/export.h:72:2: note: in expansion of macro ‘__EXPORT_SYMBOL’
  __EXPORT_SYMBOL(sym, "_gpl")
  ^
net/core/dev.c:2849:1: note: in expansion of macro ‘EXPORT_SYMBOL_GPL’
 EXPORT_SYMBOL_GPL(validate_xmit_skb_list);
 ^
include/linux/export.h:59:20: note: previous definition of ‘__kstrtab_validate_xmit_skb_list’ was here
  static const char __kstrtab_##sym[]   \
                    ^
include/linux/export.h:69:2: note: in expansion of macro ‘__EXPORT_SYMBOL’
  __EXPORT_SYMBOL(sym, "")
  ^
net/core/dev.c:2821:1: note: in expansion of macro ‘EXPORT_SYMBOL’
 EXPORT_SYMBOL(validate_xmit_skb_list);
 ^
include/linux/export.h:63:39: error: redefinition of ‘__ksymtab_validate_xmit_skb_list’
  __visible const struct kernel_symbol __ksymtab_##sym \
                                       ^
include/linux/export.h:72:2: note: in expansion of macro ‘__EXPORT_SYMBOL’
  __EXPORT_SYMBOL(sym, "_gpl")
  ^
net/core/dev.c:2849:1: note: in expansion of macro ‘EXPORT_SYMBOL_GPL’
 EXPORT_SYMBOL_GPL(validate_xmit_skb_list);
 ^
include/linux/export.h:63:39: note: previous definition of ‘__ksymtab_validate_xmit_skb_list’ was here
  __visible const struct kernel_symbol __ksymtab_##sym \
                                       ^
include/linux/export.h:69:2: note: in expansion of macro ‘__EXPORT_SYMBOL’
  __EXPORT_SYMBOL(sym, "")
  ^
net/core/dev.c:2821:1: note: in expansion of macro ‘EXPORT_SYMBOL’
 EXPORT_SYMBOL(validate_xmit_skb_list);
 ^
make[2]: *** [net/core/dev.o] Error 1
make[1]: *** [net/core] Error 2
make: *** [net] Error 2

I think it still compiled with version 4.4.30.

I'm using this imq patch: linux-4.4.5-imq.diff

commented

This is how the patch applied:

53 /tmp/pkgtmp/usr/src/linux > patch -p1
patching file drivers/net/Kconfig
patching file drivers/net/Makefile
patching file drivers/net/imq.c
patching file include/linux/imq.h
patching file include/linux/netdevice.h
Hunk #1 succeeded at 3397 (offset 56 lines).
patching file include/linux/netfilter/xt_IMQ.h
patching file include/linux/netfilter_ipv4/ipt_IMQ.h
patching file include/linux/netfilter_ipv6/ip6t_IMQ.h
patching file include/linux/skbuff.h
Hunk #2 succeeded at 571 (offset 1 line).
Hunk #3 succeeded at 583 (offset 1 line).
Hunk #4 succeeded at 653 (offset 1 line).
Hunk #5 succeeded at 812 (offset 1 line).
Hunk #6 succeeded at 3432 (offset 69 lines).
patching file include/net/netfilter/nf_queue.h
patching file include/net/pkt_sched.h
patching file include/net/sch_generic.h
Hunk #1 succeeded at 516 (offset 10 lines).
patching file include/uapi/linux/netfilter.h
patching file net/core/dev.c
Hunk #2 succeeded at 2713 (offset 5 lines).
Hunk #3 succeeded at 2756 (offset 5 lines).
Hunk #4 succeeded at 2818 with fuzz 2 (offset -22 lines).
patching file net/core/skbuff.c
Hunk #1 succeeded at 81 (offset 2 lines).
Hunk #2 succeeded at 726 (offset 2 lines).
Hunk #3 succeeded at 870 (offset 2 lines).
Hunk #4 succeeded at 3434 (offset 2 lines).
patching file net/ipv6/ip6_output.c
patching file net/netfilter/Kconfig
patching file net/netfilter/Makefile
patching file net/netfilter/core.c
patching file net/netfilter/nf_internals.h
patching file net/netfilter/nf_queue.c
patching file net/netfilter/xt_IMQ.c
patching file net/sched/sch_generic.c

Same here. Problems starting with 4.4.32 .33 and .34 while 4.4.31 applied and compiled cleanly.

Try patch from #51.