The problems of compiling grub-0.97-os.6
cheng.guanghui
cheng.guanghui at gmail.com
Sat Dec 1 03:33:13 CET 2007
On Friday 30 November 2007 11:04:55 pm Adam Lackorzynski wrote:
> 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.
Thanks, it could work. :)
Cheng
More information about the l4-hackers
mailing list