grub mke error!?

Cameron Wong hgneng at 163.com
Mon Mar 22 05:55:29 PST 2004


When installing LFS 5.0 I encountered this problem:

gcc -DHAVE_CONFIG_H -I. -I. -I..   -Wall -Wmissing-prototypes -Wunused
-Wshadow
-Wpointer-arith -falign-jumps=1 -falign-loops=1 -falign-functions=1
-Wundef -O2
-DGRUB_UTIL=1 -DFSYS_EXT2FS=1 -DFSYS_FAT=1 -DFSYS_FFS=1 -DFSYS_MINIX=1
-DSUPPORT_HERCULES=1 -DSUPPORT_SERIAL=1  -fwritable-strings -I../stage2
-I../stage1 -I../lib -g -c `test -f asmstub.c || echo './'`asmstub.c
asmstub.c: In function `grub_stage2':
asmstub.c:170: warning: implicit declaration of function `initscr'
asmstub.c:171: warning: implicit declaration of function `cbreak'
asmstub.c:172: warning: implicit declaration of function `noecho'
asmstub.c:173: warning: implicit declaration of function `nonl'
asmstub.c:174: warning: implicit declaration of function `scrollok'
asmstub.c:174: error: `stdscr' undeclared (first use in this function)
asmstub.c:174: error: (Each undeclared identifier is reported only once
asmstub.c:174: error: for each function it appears in.)
asmstub.c:174: error: `TRUE' undeclared (first use in this function)
asmstub.c:175: warning: implicit declaration of function `keypad'
asmstub.c:176: warning: implicit declaration of function `wtimeout'
asmstub.c:193: warning: implicit declaration of function `endwin'
asmstub.c: In function `console_putchar':
asmstub.c:566: warning: implicit declaration of function `getyx'
asmstub.c:566: error: `stdscr' undeclared (first use in this function)
asmstub.c:567: error: `LINES' undeclared (first use in this function)
asmstub.c:568: warning: implicit declaration of function `scroll'
asmstub.c:570: warning: implicit declaration of function `move'
asmstub.c:577: error: `COLS' undeclared (first use in this function)
asmstub.c:582: warning: implicit declaration of function `addch'
asmstub.c: At top level:
asmstub.c:606: error: `ERR' undeclared here (not in a function)
asmstub.c: In function `console_translate_key':
asmstub.c:614: error: `KEY_LEFT' undeclared (first use in this function)
asmstub.c:616: error: `KEY_RIGHT' undeclared (first use in this function)
asmstub.c:618: error: `KEY_UP' undeclared (first use in this function)
asmstub.c:620: error: `KEY_DOWN' undeclared (first use in this function)
asmstub.c:622: error: `KEY_DC' undeclared (first use in this function)
asmstub.c:624: error: `KEY_BACKSPACE' undeclared (first use in this
function)
asmstub.c:626: error: `KEY_HOME' undeclared (first use in this function)
asmstub.c:628: error: `KEY_END' undeclared (first use in this function)
asmstub.c:630: error: `KEY_PPAGE' undeclared (first use in this function)
asmstub.c:632: error: `KEY_NPAGE' undeclared (first use in this function)
asmstub.c: In function `console_checkkey':
asmstub.c:652: error: `ERR' undeclared (first use in this function)
asmstub.c:655: warning: implicit declaration of function `getch'
asmstub.c: In function `console_getkey':
asmstub.c:678: error: `ERR' undeclared (first use in this function)
asmstub.c:685: error: `stdscr' undeclared (first use in this function)
asmstub.c: In function `console_getxy':
asmstub.c:707: error: `stdscr' undeclared (first use in this function)
asmstub.c: In function `console_cls':
asmstub.c:729: warning: implicit declaration of function `clear'
make[2]: *** [asmstub.o] Error 1
make[2]: Leaving directory `/sources/grub-0.93/grub'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/sources/grub-0.93'
make: *** [all] Error 2

Any idea? Thanks:)




More information about the lfs-support mailing list