Page 1 of 1

kernel compilation error: redefinition error in skbuff.h

PostPosted: Wed Sep 04, 2013 10:16 am
by EmanueleS
Hi!
I'm trying to install the latest GRSecurity on a freshly installed Debian machine.
I get this error recompiling the kernel with GRSecurity:

Code: Select all
scripts/selinux/mdp/mdp.c:169: warning: comparison between signed and unsigned integer expressions
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/pnmtologo
  HOSTCC  scripts/conmakehash
  CC      init/main.o
  CHK     include/linux/compile.h
  UPD     include/linux/compile.h
  CC      init/version.o
  CC      init/do_mounts.o
In file included from include/linux/icmpv6.h:82,
                 from include/linux/ipv6.h:214,
                 from include/net/ipv6.h:16,
                 from include/linux/sunrpc/clnt.h:25,
                 from include/linux/nfs_fs.h:51,
                 from init/do_mounts.c:19:
include/linux/skbuff.h:1523: error: redefinition of 'netdev_alloc_skb_ip_align'
include/linux/skbuff.h:1503: note: previous definition of 'netdev_alloc_skb_ip_align' was here
make[1]: *** [init/do_mounts.o] Error 1
make: *** [init] Error 2


Does anyone have some idea about how to fix this problem?

Re: kernel compilation error: redefinition error in skbuff.h

PostPosted: Thu Sep 05, 2013 7:00 pm
by spender
This is not an error in any published version of grsecurity I'm aware of. Either you're using a very outdated patch or improperly merged some outside changes. Please don't post these kinds of logs while omitting which kernel version/patch was used as it just wastes my time looking for a problem that doesn't exist.

-Brad