Page 1 of 1

Linux-3.8.2 - "error: conflicting types for ‘grsec_proc_gid

PostPosted: Mon Mar 04, 2013 2:25 pm
by jacekalex
Hi

I wanted to compile a kernel patch 3.8.2 with grsecurity-2.9.1-3.8.2-201303031847.patch
Compilation error:
CC kernel/bounds.s
GEN include/generated/bounds.h
CC arch/x86/kernel/asm-offsets.s
HOSTLD scripts/mod/modpost
GEN include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
CC init/main.o
CHK include/generated/compile.h
CC init/do_mounts.o
CC init/do_mounts_rd.o
HOSTCC usr/gen_init_cpio
CC init/do_mounts_initrd.o
init/main.c:155:5: error: conflicting types for ‘grsec_proc_gid’
include/linux/grsecurity.h:246:15: note: previous declaration of ‘grsec_proc_gid’ was here
make[1]: *** [init/main.o] Błąd 1
make[1]: *** Oczekiwanie na niezakończone zadania....
CC arch/x86/crypto/ablk_helper.o
GEN usr/initramfs_data.cpio
AS usr/initramfs_data.o
LD usr/built-in.o
AS arch/x86/ia32/ia32entry.o
CC kernel/fork.o
CC arch/x86/ia32/sys_ia32.o
CC kernel/exec_domain.o
make: *** [init] Błąd 2
make: *** Oczekiwanie na niezakończone zadania....
CC kernel/panic.o
CC arch/x86/crypto/glue_helper.o
CC arch/x86/ia32/ia32_signal.o


As a result, it does not build the vmlinux. :(

Linux 3.8.2 without grsec-patch builds properly.
The problem appeared when using 2 patches:
grsecurity-2.9.1-3.8.2-201303031847.patch
4200_fbcondecor-0.9.6.patch

On Linux 3.8.1
+ Grsecurity-2.9.1-3.8.1-201303012255.patch
+ 4200_fbcondecor-0.9.6.patch
everything is working properly. ;)

OS & compiler:
Code: Select all
cat /proc/version
Linux version 3.8.1-gr2 (root@localhost) (gcc version 4.6.3 (Gentoo Hardened 4.6.3 p1.5, pie-0.5.2) ) #2 SMP PREEMPT Sat Mar 2 16:01:44 CET 2013

Cheers
8)

Re: Linux-3.8.2 - "error: conflicting types for ‘grsec_proc

PostPosted: Mon Mar 04, 2013 2:54 pm
by spender
Hi,

This will be fixed in a patch uploaded tonight.

-Brad

Re: Linux-3.8.2 - "error: conflicting types for ‘grsec_proc

PostPosted: Wed Mar 06, 2013 3:53 pm
by jacekalex
Thank you
Rare in a fast and professional support. :)
Next patch (grsecurity-2.9.1-3.8.2-201303041742) works fine.

Cheeers
8)