Grsecurity 2.1.14-2.6.30.4-200908041752 dosnt compile

Discuss usability issues, general maintenance, and general support issues for a grsecurity-enabled system.

Grsecurity 2.1.14-2.6.30.4-200908041752 dosnt compile

Postby ddd » 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?
ddd
 
Posts: 2
Joined: Wed Aug 05, 2009 4:22 pm

Re: Grsecurity 2.1.14-2.6.30.4-200908041752 dosnt compile

Postby PaX Team » Wed Aug 05, 2009 7:15 pm

ddd wrote:Does these 'fixes' make sense or am I breaking stuff?
yes, i fixed them in test17 too, thanks.
PaX Team
 
Posts: 2310
Joined: Mon Mar 18, 2002 4:35 pm


Return to grsecurity support

cron