The problems of compiling grub-0.97-os.6
Adam Lackorzynski
adam at os.inf.tu-dresden.de
Fri Nov 30 23:04:55 CET 2007
Hi,
On Thu Nov 29, 2007 at 18:55:09 +0100, cheng.guanghui.ml wrote:
> I compile the grub-0.97 patched the os.6 provided by Adam home page. But
> there are some error messages like following:
>
> pre_stage2_exec-bios.o: In function `get_cdinfo':
> /home/cheng/tudos/grub-0.97/stage2/bios.c:179: undefined reference to
> `__stack_chk_fail'
> pre_stage2_exec-bios.o: In function `get_diskinfo':
> /home/cheng/tudos/grub-0.97/stage2/bios.c:317: undefined reference to
> `__stack_chk_fail'
> pre_stage2_exec-boot.o: In function `load_image':
> /home/cheng/tudos/grub-0.97/stage2/boot.c:759: undefined reference to
> `__stack_chk_fail'
> pre_stage2_exec-builtins.o: In function `blocklist_func':
> /home/cheng/tudos/grub-0.97/stage2/builtins.c:224: undefined reference to
> `__stack_chk_fail'
> pre_stage2_exec-builtins.o: In function `embed_func':
> /home/cheng/tudos/grub-0.97/stage2/builtins.c:1191: undefined reference to
> `__stack_chk_fail'
> pre_stage2_exec-builtins.o:/home/cheng/tudos/grub-0.97/stage2/builtins.c:1350:
> more undefined references to `__stack_chk_fail' follow
> collect2: ld returned 1 exit status
Use
CFLAGS=-fno-stack-protector ./configure ; make
to compile and it should work.
Adam
--
Adam adam at os.inf.tu-dresden.de
Lackorzynski http://os.inf.tu-dresden.de/~adam/
More information about the l4-hackers
mailing list