Grsecurity 2.1.14-2.6.30.4-200908041752 dosnt compile
Posted: Wed Aug 05, 2009 5:55 pm
Compiling for amd64 I get this error:
CC arch/x86/mm/fault.o
arch/x86/mm/fault.c: In function ‘__bad_area_nosemaphore’:
arch/x86/mm/fault.c:789: error: ‘vgettimeofday’ undeclared (first use in this function)
arch/x86/mm/fault.c:789: error: (Each undeclared identifier is reported only once
arch/x86/mm/fault.c:789: error: for each function it appears in.)
arch/x86/mm/fault.c:792: error: ‘vtime’ undeclared (first use in this function)
arch/x86/mm/fault.c:795: error: ‘vgetcpu’ undeclared (first use in this function)
make[2]: *** [arch/x86/mm/fault.o] Error 1
make[1]: *** [arch/x86/mm] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.30'
make: *** [debian/stamp/build/kernel] Error 2
I've added '#include <asm/vsyscall.h>' to arch/x86/mm/fault.c then I get this error:
CC arch/x86/vdso/vclock_gettime.o
arch/x86/vdso/vclock_gettime.c: In function ‘__vdso_vread_hpet’:
arch/x86/vdso/vclock_gettime.c:48: error: implicit declaration of function ‘fix_to_virt’
arch/x86/vdso/vclock_gettime.c:48: error: ‘VSYSCALL_HPET’ undeclared (first use in this function)
arch/x86/vdso/vclock_gettime.c:48: error: (Each undeclared identifier is reported only once
arch/x86/vdso/vclock_gettime.c:48: error: for each function it appears in.)
arch/x86/vdso/vclock_gettime.c:48: warning: cast to pointer from integer of different size
make[2]: *** [arch/x86/vdso/vclock_gettime.o] Error 1
make[1]: *** [arch/x86/vdso] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.30'
make: *** [debian/stamp/build/kernel] Error 2
I've added '#include <asm/fixmap.h>' to arch/x86/vdso/vclock_gettime.c and it seems to compile, running it will have to wait until tommorow.
Does these 'fixes' make sense or am I breaking stuff?
CC arch/x86/mm/fault.o
arch/x86/mm/fault.c: In function ‘__bad_area_nosemaphore’:
arch/x86/mm/fault.c:789: error: ‘vgettimeofday’ undeclared (first use in this function)
arch/x86/mm/fault.c:789: error: (Each undeclared identifier is reported only once
arch/x86/mm/fault.c:789: error: for each function it appears in.)
arch/x86/mm/fault.c:792: error: ‘vtime’ undeclared (first use in this function)
arch/x86/mm/fault.c:795: error: ‘vgetcpu’ undeclared (first use in this function)
make[2]: *** [arch/x86/mm/fault.o] Error 1
make[1]: *** [arch/x86/mm] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.30'
make: *** [debian/stamp/build/kernel] Error 2
I've added '#include <asm/vsyscall.h>' to arch/x86/mm/fault.c then I get this error:
CC arch/x86/vdso/vclock_gettime.o
arch/x86/vdso/vclock_gettime.c: In function ‘__vdso_vread_hpet’:
arch/x86/vdso/vclock_gettime.c:48: error: implicit declaration of function ‘fix_to_virt’
arch/x86/vdso/vclock_gettime.c:48: error: ‘VSYSCALL_HPET’ undeclared (first use in this function)
arch/x86/vdso/vclock_gettime.c:48: error: (Each undeclared identifier is reported only once
arch/x86/vdso/vclock_gettime.c:48: error: for each function it appears in.)
arch/x86/vdso/vclock_gettime.c:48: warning: cast to pointer from integer of different size
make[2]: *** [arch/x86/vdso/vclock_gettime.o] Error 1
make[1]: *** [arch/x86/vdso] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.30'
make: *** [debian/stamp/build/kernel] Error 2
I've added '#include <asm/fixmap.h>' to arch/x86/vdso/vclock_gettime.c and it seems to compile, running it will have to wait until tommorow.
Does these 'fixes' make sense or am I breaking stuff?