- 论坛徽章:
- 0
|
error:
init/built-in.o: In function `try_name':
do_mounts.c:(.text+0x4f1): undefined reference to `__stack_chk_fail'
init/built-in.o: In function `name_to_dev_t':(.text+0x7cc): undefined reference to `__stack_chk_fail'
init/built-in.o: In function `change_floppy':
(.init.text+0x996): undefined reference to `__stack_chk_fail'
init/built-in.o: In function `mount_block_root':
(.init.text+0xc42): undefined reference to `__stack_chk_fail'
init/built-in.o: In function `do_header':
initramfs.c:(.init.text+0x4308): undefined reference to `__stack_chk_fail'
arch/i386/kernel/built-in.o:(.text+0x49e6): more undefined references to `__stack_chk_fail' follow
make[1]: *** [.tmp_vmlinux1] Fehler 1
make[1]: Verlasse Verzeichnis '/usr/src/linux-2.6.17.13'
make: *** [debian/stamp-build-kernel] Fehler 2
support:
it seems that CFLAG -fstack-protector is add by default to our CFLAGS in edgy preventing some kernel to be build...
i manually edit the Makefile and add after the line:
CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
-fno-strict-aliasing -fno-common
to:
CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
-fno-strict-aliasing -fno-common \
-ffreestanding -fno-strict-aliasing -fno-common -fno-stack-protector
CFLAGS += $(call cc-option, -fno-stack-protector-all \
-fno-stack-protector)
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/54500/showart_512801.html |
|