2.6.17.14 kernel, Ubuntu 6.10. Compile questions.
Posted: Thu Feb 15, 2007 4:00 am
I just tried compiling the latest stable version of Linux-VServer (with the next to latest version of Grsec, 2.1.9) from http://linux-vserver.org. This of course uses the 2.6.17.14 kernel.
I am now getting a few errors which read as follows:
It looks like I've managed to guide the kernel make process all the way through this time by
but I have a couple of questions. For one, is -fno-stack-protector really a good idea to have in there or does grsecurity protect against buffer overflows in the kernel?
Secondly would it be possible to relink my gcc build to 4.0 and build the kernel that way, without including the CFLAGS directive? I ask only because certain sources I've come across say that it can be done, and I don't have the time to compile another kernel tonight.
Any answer will be appreciated.
I am now getting a few errors which read as follows:
init/built-in.o: In function 'try_name':
do_mounts.c.text+0x503): undefined reference to `__stack_chk_fail'
init/built-in.o: In function 'name_to_dev_t':
(.text+0x7eb): undefined reference to `__stack_chk_fail'
init/built-in.o: In function 'change_floppy':
(.init.text+0x9c1):undefined reference to `__stack_chk_fail'
init/built-in.o: In function 'mount_block_root':
(.init.text+0xc57):undefined reference to `__stack_chk_fail'
init/built-in.o: In function 'do_header':
initramfs.c.init.text+0x4323):undefined reference to `__stack_chk_fail'
arch/i386/kernel/built-in.o.text+0x5261):more undefined references to `__stack_chk_fail' follow
make[1]: *** [vmlinux] Error 1
make[1]: Leaving directory `/usr/src/linux-2.6.17.14'
make: *** [debian/stamp-build-kernel] Error 2
It looks like I've managed to guide the kernel make process all the way through this time by
export CFLAGS="$CFLAGS -fno-stack-protector"
but I have a couple of questions. For one, is -fno-stack-protector really a good idea to have in there or does grsecurity protect against buffer overflows in the kernel?
Secondly would it be possible to relink my gcc build to 4.0 and build the kernel that way, without including the CFLAGS directive? I ask only because certain sources I've come across say that it can be done, and I don't have the time to compile another kernel tonight.
Any answer will be appreciated.