Вот тут решил добавить в 2.4.24 suspend, и при компиляции получил сдеующее:
.....................................
make[3]: Вход в каталог `/usr/src/linux-2.4.24/kernel/power'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.24/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -nostdinc -iwithprefix include -DKBUILD_BASENAME=ui -DEXPORT_SYMTAB -c ui.c
ui.c: In function `handle_loglevel_change':
ui.c:346: `vc_cons' undeclared (first use in this function)
ui.c:346: (Each undeclared identifier is reported only once
ui.c:346: for each function it appears in.)
ui.c: In function `prepare_status':
ui.c:502: `vc_cons' undeclared (first use in this function)
ui.c: In function `update_status':
ui.c:621: `vc_cons' undeclared (first use in this function)
make[3]: *** [ui.o] Ошибка 1
make[3]: Выход из каталог `/usr/src/linux-2.4.24/kernel/power'
make[2]: *** [first_rule] Ошибка 2
make[2]: Выход из каталог `/usr/src/linux-2.4.24/kernel/power'
make[1]: *** [_subdir_power] Ошибка 2
make[1]: Выход из каталог `/usr/src/linux-2.4.24/kernel'
make: *** [_dir_kernel] Ошибка 2
Ну я залез в ui.c где то в начале почти сразу после вступительных комментариев вижу
//...........some code........................
#include <linux/suspend-common.h>
#include <linux/console.h>
//...........some code........................
//#define USE_DEV_CONSOLE
/* We want the number of lines & columns for the suspend console, not the current console */
#undef video_num_columns
#define video_num_columns (vc_cons[suspend_console].d->vc_cols)
#undef video_num_lines
#define video_num_lines (vc_cons[suspend_console].d->vc_rows)
странно но определения vc_cons нет! В console.h нашёл только
struct vc_data;
struct console_font_op;
Попробовал заменить vc_cons на vc_data не помогло, также ругается только вместо vc_cons пишет vc_data.
Но интереснее другое, на тех строчках которые обьявлены, нет вообще упоминания о vc_cons.
Только video_num_columns и video_num_lines.
339 if (splash_is_on(suspend_console)) {
340 /* proc interface ensures bar_granularity_limit >= 0 */
341 if (bar_granularity_limit)
342 barwidth = bar_granularity_limit;
343 else
344 barwidth = 100;
345 } else
346 barwidth = (video_num_columns - 2 * (video_num_columns / 4) - 2);
500 /* Print version */
501 posn[0] = (unsigned char) (0);
502 posn[1] = (unsigned char) (video_num_lines);
503 move_cursor_to(posn);
504 cond_console_print(swsusp_version, strlen(swsusp_version));
617 if (splash_is_on(suspend_console)) {
618 if (newbarposn != barposn)
619 fb_splash_set_progress(suspend_console, value, maximum);
620 } else {
621 posn[1] = (unsigned char) ((video_num_lines / 3) + 1);
Может кто-нибудь знает что делать.
Заранее спасибо!!!

Ответ на:
комментарий
от zaz

Ответ на:
комментарий
от cyclon

Ответ на:
комментарий
от cyclon


Ответ на:
комментарий
от zaz

Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.
Похожие темы
- Форум Ошибка при компиляции qt-3.3.3 (2005)
- Форум Проблема компиляции glibc (2016)
- Форум gimp 2.0 не собирается... :( (2004)
- Форум Ждем 2.6.35.2? (2010)
- Форум Компиляция ядра (2001)
- Форум ктонть компилил gimp-2.0? (2004)
- Форум FluxBox 0.1.14 , fedora,не компилит... подсобите (2003)
- Форум Проблемы при компиляции jsvc (2007)
- Форум Подскажите, чего не хватает? (2005)
- Форум firefox 1.0.1: проблеммы компиляции (2005)