Linux-3.8.2 - "error: conflicting types for ‘grsec_proc_gid
Posted: Mon Mar 04, 2013 2:25 pm
Hi
I wanted to compile a kernel patch 3.8.2 with grsecurity-2.9.1-3.8.2-201303031847.patch
Compilation error:
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:
Cheers
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