Ошибка 1 (Не могу установить GRUB)

Для новичков как вообще в Linux, так и в конкретной теме, к которой относится вопрос.

Модератор: Bizdelnick

Аватара пользователя
Veonos
Сообщения: 54
ОС: Gentoo

Ошибка 1

Сообщение Veonos »

Пытался поставить grub 1.95 из исходников, после команды make вот такое вот. Заранее благодарен

Код:

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] Ошибка 1 Я:~/Progs/GRUB# g++ --version g++ (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21) Copyright © 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Спасибо сказали:
Аватара пользователя
nesk
Сообщения: 2268
Статус: Линукссаксовец
ОС: MS Windows XP Home SP3

Re: Ошибка 1

Сообщение nesk »

а ./configure что выдает?
и вообще ЗАЧЕМ Вам в debian собирать grub из исходников?
Внимание: У меня под рукой нет машины с Linux. Я не использую эту ОС. Ответы я даю либо по памяти, либо мне помогает гугл. Тщательно читайте маны по тем командам и конфигурационным файлам, которые я упоминаю.

0xDEFEC8ED
Спасибо сказали:
Аватара пользователя
Veonos
Сообщения: 54
ОС: Gentoo

Re: Ошибка 1

Сообщение Veonos »

Потому что так в дебиане стоит
grub (GNU GRUB 0.97)
А хочется 1.95

Код:

Я:~/Progs/GRUB# ./configure checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking for cmp... cmp checking for bison... bison checking for a BSD-compatible install... /usr/bin/install -c checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking for ruby... /usr/bin/ruby checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... 64 checking for _LARGE_FILES value needed for large files... no checking whether byte ordering is bigendian... no checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for void *... yes checking size of void *... 4 checking for long... yes checking size of long... 4 checking for __lzo_init_v2 in -llzo2... no checking for __lzo_init_v2 in -llzo... no checking for __lzo_init2 in -llzo... yes checking for lzo1x_999_compress... yes checking lzo/lzo1x.h usability... no checking lzo/lzo1x.h presence... no checking for lzo/lzo1x.h... no checking lzo1x.h usability... yes checking lzo1x.h presence... yes checking for lzo1x.h... yes checking for wgetch in -lncurses... no checking for wgetch in -lcurses... no checking ncurses/curses.h usability... no checking ncurses/curses.h presence... no checking for ncurses/curses.h... no checking ncurses.h usability... no checking ncurses.h presence... no checking for ncurses.h... no checking curses.h usability... no checking curses.h presence... no checking for curses.h... no checking for posix_memalign... yes checking for memalign... yes checking for objcopy... objcopy checking for strip... strip checking for nm... nm checking whether optimization for size works... yes checking whether -falign-loops works... yes checking whether objcopy works for absolute addresses... yes checking if C symbols get an underscore after compilation... no checking if start is defined by the compiler... no checking if _start is defined by the compiler... yes checking if __bss_start is defined by the compiler... yes checking if edata is defined by the compiler... yes checking if _edata is defined by the compiler... yes checking if end is defined by the compiler... yes checking if _end is defined by the compiler... yes checking whether addr32 must be in the same line as the instruction... yes checking for .code16 addr32 assembler support... yes checking whether an absolute indirect call/jump must not be prefixed with an asterisk... no checking if GCC has the regparm=3 bug... no configure: creating ./config.status config.status: creating Makefile config.status: creating gensymlist.sh config.status: creating genkernsyms.sh config.status: creating stamp-h config.status: creating config.h config.status: config.h is unchanged config.status: linking ./include/grub/i386 to include/grub/cpu config.status: linking ./include/grub/i386/pc to include/grub/machine
Спасибо сказали:
Аватара пользователя
nesk
Сообщения: 2268
Статус: Линукссаксовец
ОС: MS Windows XP Home SP3

Re: Ошибка 1

Сообщение nesk »

а библиотека ncurses у Вас стоит?
А зачем Вам последняя версия grub?
у Вас debian testing?
Внимание: У меня под рукой нет машины с Linux. Я не использую эту ОС. Ответы я даю либо по памяти, либо мне помогает гугл. Тщательно читайте маны по тем командам и конфигурационным файлам, которые я упоминаю.

0xDEFEC8ED
Спасибо сказали:
Аватара пользователя
diesel
Бывший модератор
Сообщения: 5989
ОС: OS X, openSuSE, ROSA, Debian

Re: Ошибка 1

Сообщение diesel »

Вопрос "зачем собирать груб в дебиане" в силе:

Код: Выделить всё

root@beezir:/home/diesel# apt-cache policy grub
grub:
  Installed: 0.97-29
  Candidate: 0.97-29
  Version table:
 *** 0.97-29 0
        500 ftp://ftp.de.debian.org unstable/main Packages
        100 /var/lib/dpkg/status
     0.97-28 0
        500 ftp://ftp.de.debian.org testing/main Packages
root@beezir:/home/diesel# apt-cache policy grub2
grub2:
  Installed: (none)
  Candidate: 1.95+20071101-1
  Version table:
     1.95+20071101-1 0
        500 ftp://ftp.de.debian.org unstable/main Packages
     1.95+20070604-1 0
        500 ftp://ftp.de.debian.org testing/main Packages
Спасибо сказали:
Аватара пользователя
nesk
Сообщения: 2268
Статус: Линукссаксовец
ОС: MS Windows XP Home SP3

Re: Ошибка 1

Сообщение nesk »

diesel писал(а):
15.12.2007 11:54
root@beezir:/home/diesel# apt-cache policy grub2
grub2:
Installed: (none)
Candidate: 1.95+20071101-1

Прикольно :)
Я не знал.

ЗЫ Но в стабильной версии такого пакета само собой нет.
Внимание: У меня под рукой нет машины с Linux. Я не использую эту ОС. Ответы я даю либо по памяти, либо мне помогает гугл. Тщательно читайте маны по тем командам и конфигурационным файлам, которые я упоминаю.

0xDEFEC8ED
Спасибо сказали: