-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ok, instaling ncurses-dev did indeed fix that issue, thank you for that
urjaman. Now unfortunately, it appears that I am running into an
undefined reference to `__stack_chk_fail'

"
kernel_img-kern_device.o: In function `grub_device_iterate':
/home/aevumdecessus/Desktop/grub/grub-1.95/kern/device.c:140: undefined
reference to `__stack_chk_fail'
kernel_img-kern_disk.o: In function `grub_disk_write':
/home/aevumdecessus/Desktop/grub/grub-1.95/kern/disk.c:531: undefined
reference to `__stack_chk_fail'
kernel_img-kern_misc.o: In function `grub_vsprintf':
/home/aevumdecessus/Desktop/grub/grub-1.95/kern/misc.c:897: undefined
reference to `__stack_chk_fail'
kernel_img-kern_rescue.o: In function `grub_rescue_cmd_cat':
/home/aevumdecessus/Desktop/grub/grub-1.95/kern/rescue.c:169: undefined
reference to `__stack_chk_fail'
kernel_img-kern_i386_pc_init.o: In function `grub_machine_set_prefix':
/home/aevumdecessus/Desktop/grub/grub-1.95/kern/i386/pc/init.c:239:
undefined reference to `__stack_chk_fail'
kernel_img-kern_parser.o:/home/aevumdecessus/Desktop/grub/grub-1.95/kern/parser.c:230:
more undefined references to `__stack_chk_fail' follow
collect2: ld returned 1 exit status
make: *** [kernel.exec] Error 1
"

I looked around, and found that there is a similar issue that some people
have run into when compiling the Xen kernel, and it mentioned adding a
"-fno-stack-protector" to CFLAGS in several files, but those files are Xen
compilation specific, and as I am still new to the way compiling/etc works,
I was wondering if anyone else had run into this issue and maybe had figured
out a way around it. I include the link to the article on the ubuntu forums
as well.
http://ubuntuforums.org/showthread.php?t=303541

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: http://firegpg.tuxfamily.org

iD8DBQFG1HAX07DvTednSKQRAmM5AKC4RLrT61wi/3FAMVFw6CK9UVkP2gCeK4gE
XYHYd6Xu0BGbdjG1Ld/wNXA=
=7HJq
-----END PGP SIGNATURE-----
On 8/28/07, UrJiZ <[EMAIL PROTECTED]> wrote:
>
> I'm not a regular, but this looks like you don't have ncurses headers. You
> should install ncurses-dev or something like that.
>
> On 8/27/07, Siebren Bakker <[EMAIL PROTECTED]> wrote:
>
> > I downloaded the 1.95 release from the site, managed to get ./configure
> > to work perfectly, no errors there. When I try the 'make' command,
> > everything goes through fine, until the compiler hits the util/console.c
> > file. At this stage, I receive a list of errors, and the make fails.
> >
> > gcc -Iutil -I./util -I. -Iinclude -I./include -Wall -W
> > -DGRUB_LIBDIR=\"/usr/local/lib/grub/i386-pc\" -g -O2 -DGRUB_UTIL=1  -MD -c
> > -o grub_emu-util_console.o util/console.c
> > util/console.c: In function 'grub_ncurses_putchar':
> > util/console.c:89: warning: implicit declaration of function 'addch'
> > util/console.c: In function 'grub_ncurses_setcolor':
> > util/console.c:121: warning: implicit declaration of function
> > 'color_set'
> > util/console.c: At top level:
> > util/console.c:124: error: 'ERR' undeclared here (not in a function)
> > util/console.c: In function 'grub_ncurses_checkkey':
> > util/console.c:136: warning: implicit declaration of function 'wtimeout'
> >
> > util/console.c:136: error: 'stdscr' undeclared (first use in this
> > function)
> > util/console.c:136: error: (Each undeclared identifier is reported only
> > once
> > util/console.c:136: error: for each function it appears in.)
> > util/console.c:137: warning: implicit declaration of function 'getch'
> > util/console.c: In function 'grub_ncurses_getkey':
> > util/console.c:161: error: 'stdscr' undeclared (first use in this
> > function)
> > util/console.c:167: error: 'KEY_LEFT' undeclared (first use in this
> > function)
> > util/console.c:171: error: 'KEY_RIGHT' undeclared (first use in this
> > function)
> > util/console.c:175: error: 'KEY_UP' undeclared (first use in this
> > function)
> > util/console.c:179: error: 'KEY_DOWN' undeclared (first use in this
> > function)
> > util/console.c:183: error: 'KEY_IC' undeclared (first use in this
> > function)
> > util/console.c:187: error: 'KEY_DC' undeclared (first use in this
> > function)
> > util/console.c:191: error: 'KEY_BACKSPACE' undeclared (first use in this
> > function)
> > util/console.c:198: error: 'KEY_HOME' undeclared (first use in this
> > function)
> > util/console.c:202: error: 'KEY_END' undeclared (first use in this
> > function)
> > util/console.c:206: error: 'KEY_NPAGE' undeclared (first use in this
> > function)
> > util/console.c:210: error: 'KEY_PPAGE' undeclared (first use in this
> > function)
> > util/console.c: In function 'grub_ncurses_getxy':
> > util/console.c:224: warning: implicit declaration of function 'getyx'
> > util/console.c:224: error: 'stdscr' undeclared (first use in this
> > function)
> > util/console.c: In function 'grub_ncurses_getwh':
> > util/console.c:235: warning: implicit declaration of function 'getmaxyx'
> > util/console.c:235: error: 'stdscr' undeclared (first use in this
> > function)
> > util/console.c: In function 'grub_ncurses_gotoxy':
> > util/console.c:243: warning: implicit declaration of function 'move'
> > util/console.c: In function 'grub_ncurses_cls':
> > util/console.c:249: warning: implicit declaration of function 'clear'
> > util/console.c:250: warning: implicit declaration of function 'refresh'
> > util/console.c: In function 'grub_ncurses_setcursor':
> > util/console.c:256: warning: implicit declaration of function 'curs_set'
> > util/console.c: In function 'grub_ncurses_init':
> > util/console.c:268: warning: implicit declaration of function 'initscr'
> > util/console.c:269: warning: implicit declaration of function 'raw'
> > util/console.c:270: warning: implicit declaration of function 'noecho'
> > util/console.c:271: warning: implicit declaration of function 'scrollok'
> > util/console.c:271: error: 'stdscr' undeclared (first use in this
> > function)
> > util/console.c:271: error: 'TRUE' undeclared (first use in this
> > function)
> > util/console.c:273: warning: implicit declaration of function 'nonl'
> > util/console.c:274: warning: implicit declaration of function
> > 'intrflush'
> > util/console.c:274: error: 'FALSE' undeclared (first use in this
> > function)
> > util/console.c:275: warning: implicit declaration of function 'keypad'
> > util/console.c:276: warning: implicit declaration of function
> > 'start_color'
> > util/console.c: In function 'grub_ncurses_fini':
> > util/console.c:284: warning: implicit declaration of function 'endwin'
> > make: *** [grub_emu-util_console.o] Error 1
> > [EMAIL PROTECTED]:~/Desktop/grub/grub- 1.95$
> >
> > Not exactly sure what's going on there, I get the exact same error when
> > i try to compile the program with the 1.91, 1.92, 1.93, and 1.94versions as 
> > well.
> >
> > _______________________________________________
> > Grub-devel mailing list
> > [email protected]
> > http://lists.gnu.org/mailman/listinfo/grub-devel
> >
> >
>
> -- urjaman
>
> _______________________________________________
> Grub-devel mailing list
> [email protected]
> http://lists.gnu.org/mailman/listinfo/grub-devel
>
>


-- 
Siebren Bakker(Aevum Decessus)
_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to