In file included from /usr/src/linux-2.6.32-hardened-r143/include/linux/net.h:57:0, from /usr/src/linux-2.6.32-hardened-r143/include/linux/skbuff.h:27, from /usr/src/linux-2.6.32-hardened-r143/include/linux/netfilter.h:6, from /usr/src/linux-2.6.32-hardened-r143/include/net/netns/x_tables.h:5, from /usr/src/linux-2.6.32-hardened-r143/include/net/net_namespace.h:18, from /usr/src/linux-2.6.32-hardened-r143/include/linux/init_task.h:13, from /usr/src/linux-2.6.32-hardened-r143/arch/ia64/kernel/init_task.c:14: /usr/src/linux-2.6.32-hardened-r143/include/linux/random.h:91:19: error: redefinition of ‘arch_get_random_long’ /usr/src/linux-2.6.32-hardened-r143/include/linux/random.h:73:19: note: previous definition of ‘arch_get_random_long’ was here /usr/src/linux-2.6.32-hardened-r143/include/linux/random.h:95:19: error: redefinition of ‘arch_get_random_int’ /usr/src/linux-2.6.32-hardened-r143/include/linux/random.h:77:19: note: previous definition of ‘arch_get_random_int’ was here Appears several times. The code makes it look like a faulty patch: #ifdef CONFIG_ARCH_RANDOM # include <asm/archrandom.h> #else static inline int arch_get_random_long(unsigned long *v) ... #endif ... #ifdef CONFIG_ARCH_RANDOM # include <asm/archrandom.h> #else static inline int arch_get_random_long(unsigned long *v) ... #endif Reproducible: Always
Deleting the second instance of the #ifdef makes the build pass.
hardened-sources-2.6.32-r143 = latest upstream patchset so I'll send it their way.
it's duplicated only in grsec, so spender will have to fix it ;).
this should be fixed already, can you confirm it?
(In reply to comment #4) > this should be fixed already, can you confirm it? I switched to 3.2 a while ago, so I will currently not reproduce this. It should be pretty easy to tell whether the bug is still there or not, by just having a look a random.h.
(In reply to PaX Team from comment #4) > this should be fixed already, can you confirm it? I just marked 2.6.32-r170, 3.2.46-r1, 3.9.5 stable.. Please test and if this is still an issue reopen.