PDA

Bekijk Volledige Versie : Kernel op CentOS



HelloApu
08/07/07, 21:57
Hey,

Ik wou op mijn server een kernel installeren dee deze tutorial:
http://www.howtoforge.com/kernel_compilation_centos

maar nu kreeg ik bij stap 2.4 als ik make menuconfig dee deze error:


scripts/kconfig/lxdialog/dialog.h:143: warning: function declaration isn't a pro
totype
scripts/kconfig/lxdialog/dialog.h:146: error: syntax error before '*' token
scripts/kconfig/lxdialog/dialog.h:146: warning: function declaration isn't a pro
totype
scripts/kconfig/lxdialog/dialog.h:147: error: syntax error before '*' token
scripts/kconfig/lxdialog/dialog.h:147: warning: function declaration isn't a pro
totype
scripts/kconfig/lxdialog/dialog.h:148: error: syntax error before '*' token
scripts/kconfig/lxdialog/dialog.h:148: warning: function declaration isn't a pro
totype
scripts/kconfig/lxdialog/dialog.h:149: error: syntax error before '*' token
scripts/kconfig/lxdialog/dialog.h:150: warning: function declaration isn't a pro
totype
scripts/kconfig/lxdialog/dialog.h:151: error: syntax error before '*' token
scripts/kconfig/lxdialog/dialog.h:151: warning: function declaration isn't a pro
totype
scripts/kconfig/lxdialog/checklist.c:31: error: syntax error before '*' token
scripts/kconfig/lxdialog/checklist.c:33: warning: function declaration isn't a p
rototype
scripts/kconfig/lxdialog/checklist.c: In function `print_item':
scripts/kconfig/lxdialog/checklist.c:37: warning: implicit declaration of functi
on `wattrset'
scripts/kconfig/lxdialog/checklist.c:37: error: `win' undeclared (first use in t
his function)
scripts/kconfig/lxdialog/checklist.c:37: error: (Each undeclared identifier is r
eported only once
scripts/kconfig/lxdialog/checklist.c:37: error: for each function it appears in.
)
scripts/kconfig/lxdialog/checklist.c:38: warning: implicit declaration of functi
on `wmove'
scripts/kconfig/lxdialog/checklist.c:38: error: `choice' undeclared (first use i
n this function)
scripts/kconfig/lxdialog/checklist.c:40: warning: implicit declaration of functi
on `waddch'
scripts/kconfig/lxdialog/checklist.c:43: error: `selected' undeclared (first use
in this function)
scripts/kconfig/lxdialog/checklist.c:44: warning: implicit declaration of functi
on `wprintw'
scripts/kconfig/lxdialog/checklist.c:44: error: `status' undeclared (first use i
n this function)
scripts/kconfig/lxdialog/checklist.c:47: warning: implicit declaration of functi
on `mvwaddch'
scripts/kconfig/lxdialog/checklist.c:47: error: `item' undeclared (first use in
this function)
scripts/kconfig/lxdialog/checklist.c:49: warning: implicit declaration of functi
on `waddstr'
scripts/kconfig/lxdialog/checklist.c:52: warning: implicit declaration of functi
on `wrefresh'
scripts/kconfig/lxdialog/checklist.c: At top level:
scripts/kconfig/lxdialog/checklist.c:59: error: syntax error before '*' token
scripts/kconfig/lxdialog/checklist.c:61: warning: function declaration isn't a p
rototype
scripts/kconfig/lxdialog/checklist.c: In function `print_arrows':
scripts/kconfig/lxdialog/checklist.c:62: error: `win' undeclared (first use in t
his function)
scripts/kconfig/lxdialog/checklist.c:62: error: `y' undeclared (first use in thi
s function)
scripts/kconfig/lxdialog/checklist.c:62: error: `x' undeclared (first use in thi
s function)
scripts/kconfig/lxdialog/checklist.c:64: error: `scroll' undeclared (first use i
n this function)
scripts/kconfig/lxdialog/checklist.c:76: error: `height' undeclared (first use i
n this function)
scripts/kconfig/lxdialog/checklist.c:79: error: `item_no' undeclared (first use
in this function)
scripts/kconfig/lxdialog/checklist.c:79: error: `choice' undeclared (first use i
n this function)
scripts/kconfig/lxdialog/checklist.c: At top level:
scripts/kconfig/lxdialog/checklist.c:95: error: syntax error before '*' token
scripts/kconfig/lxdialog/checklist.c:96: warning: function declaration isn't a p
rototype
scripts/kconfig/lxdialog/checklist.c: In function `print_buttons':
scripts/kconfig/lxdialog/checklist.c:97: error: `width' undeclared (first use in
this function)
scripts/kconfig/lxdialog/checklist.c:98: error: `height' undeclared (first use i
n this function)
scripts/kconfig/lxdialog/checklist.c:100: error: `dialog' undeclared (first use
in this function)
scripts/kconfig/lxdialog/checklist.c:100: error: `selected' undeclared (first us
e in this function)
scripts/kconfig/lxdialog/checklist.c: In function `dialog_checklist':
scripts/kconfig/lxdialog/checklist.c:117: error: `WINDOW' undeclared (first use
in this function)
scripts/kconfig/lxdialog/checklist.c:117: error: `dialog' undeclared (first use
in this function)
scripts/kconfig/lxdialog/checklist.c:117: error: `list' undeclared (first use in
this function)
scripts/kconfig/lxdialog/checklist.c:117: warning: left-hand operand of comma ex
pression has no effect
scripts/kconfig/lxdialog/checklist.c:121: warning: implicit declaration of funct
ion `endwin'
scripts/kconfig/lxdialog/checklist.c:122: warning: implicit declaration of funct
ion `fprintf'
scripts/kconfig/lxdialog/checklist.c:122: error: `stderr' undeclared (first use
in this function)
scripts/kconfig/lxdialog/checklist.c:140: error: `COLS' undeclared (first use in
this function)
scripts/kconfig/lxdialog/checklist.c:141: error: `LINES' undeclared (first use i
n this function)
scripts/kconfig/lxdialog/checklist.c:143: error: `stdscr' undeclared (first use
in this function)
scripts/kconfig/lxdialog/checklist.c:145: warning: implicit declaration of funct
ion `newwin'
scripts/kconfig/lxdialog/checklist.c:146: warning: implicit declaration of funct
ion `keypad'
scripts/kconfig/lxdialog/checklist.c:146: error: `TRUE' undeclared (first use in
this function)
scripts/kconfig/lxdialog/checklist.c:166: warning: implicit declaration of funct
ion `subwin'
scripts/kconfig/lxdialog/checklist.c:202: warning: implicit declaration of funct
ion `wnoutrefresh'
scripts/kconfig/lxdialog/checklist.c:204: warning: implicit declaration of funct
ion `doupdate'
scripts/kconfig/lxdialog/checklist.c:207: warning: implicit declaration of funct
ion `wgetch'
scripts/kconfig/lxdialog/checklist.c:214: error: `KEY_UP' undeclared (first use
in this function)
scripts/kconfig/lxdialog/checklist.c:214: error: `KEY_DOWN' undeclared (first us
e in this function)
scripts/kconfig/lxdialog/checklist.c:224: error: `FALSE' undeclared (first use i
n this function)
scripts/kconfig/lxdialog/checklist.c:225: warning: implicit declaration of funct
ion `scrollok'
scripts/kconfig/lxdialog/checklist.c:226: warning: implicit declaration of funct
ion `wscrl'
scripts/kconfig/lxdialog/checklist.c:286: warning: implicit declaration of funct
ion `delwin'
scripts/kconfig/lxdialog/checklist.c:290: error: `KEY_LEFT' undeclared (first us
e in this function)
scripts/kconfig/lxdialog/checklist.c:291: error: `KEY_RIGHT' undeclared (first u
se in this function)
scripts/kconfig/lxdialog/checklist.c:117: warning: statement with no effect
scripts/kconfig/lxdialog/checklist.c: At top level:
scripts/kconfig/lxdialog/dialog.h:131: warning: array 'attributes' assumed to ha
ve one element
make[2]: *** [scripts/kconfig/lxdialog/checklist.o] Error 1
make[1]: *** [menuconfig] Error 2
make: *** [menuconfig] Error 2
[root@colo239 linux]# make menuconfig
HOSTCC scripts/kconfig/lxdialog/checklist.o
In file included from scripts/kconfig/lxdialog/checklist.c:24:
scripts/kconfig/lxdialog/dialog.h:31:20: curses.h: No such file or directory
In file included from scripts/kconfig/lxdialog/checklist.c:24:
scripts/kconfig/lxdialog/dialog.h:128: error: syntax error before "use_colors"
scripts/kconfig/lxdialog/dialog.h:128: warning: type defaults to `int' in declar
ation of `use_colors'
scripts/kconfig/lxdialog/dialog.h:128: warning: data definition has no type or s
torage class
scripts/kconfig/lxdialog/dialog.h:129: error: syntax error before "use_shadow"
scripts/kconfig/lxdialog/dialog.h:129: warning: type defaults to `int' in declar
ation of `use_shadow'
scripts/kconfig/lxdialog/dialog.h:129: warning: data definition has no type or s
torage class
scripts/kconfig/lxdialog/dialog.h:131: error: syntax error before "attributes"
scripts/kconfig/lxdialog/dialog.h:131: warning: type defaults to `int' in declar
ation of `attributes'
scripts/kconfig/lxdialog/dialog.h:131: warning: data definition has no type or s
torage class
scripts/kconfig/lxdialog/dialog.h:143: error: syntax error before '*' token
scripts/kconfig/lxdialog/dialog.h:143: warning: function declaration isn't a pro
totype
scripts/kconfig/lxdialog/dialog.h:146: error: syntax error before '*' token
scripts/kconfig/lxdialog/dialog.h:146: warning: function declaration isn't a pro
totype
scripts/kconfig/lxdialog/dialog.h:147: error: syntax error before '*' token
scripts/kconfig/lxdialog/dialog.h:147: warning: function declaration isn't a pro
totype
scripts/kconfig/lxdialog/dialog.h:148: error: syntax error before '*' token
scripts/kconfig/lxdialog/dialog.h:148: warning: function declaration isn't a pro
totype
scripts/kconfig/lxdialog/dialog.h:149: error: syntax error before '*' token
scripts/kconfig/lxdialog/dialog.h:150: warning: function declaration isn't a pro
totype
scripts/kconfig/lxdialog/dialog.h:151: error: syntax error before '*' token
scripts/kconfig/lxdialog/dialog.h:151: warning: function declaration isn't a pro
totype
scripts/kconfig/lxdialog/checklist.c:31: error: syntax error before '*' token
scripts/kconfig/lxdialog/checklist.c:33: warning: function declaration isn't a p
rototype
scripts/kconfig/lxdialog/checklist.c: In function `print_item':
scripts/kconfig/lxdialog/checklist.c:37: warning: implicit declaration of functi
on `wattrset'
scripts/kconfig/lxdialog/checklist.c:37: error: `win' undeclared (first use in t
his function)
scripts/kconfig/lxdialog/checklist.c:37: error: (Each undeclared identifier is r
eported only once
scripts/kconfig/lxdialog/checklist.c:37: error: for each function it appears in.
)
scripts/kconfig/lxdialog/checklist.c:38: warning: implicit declaration of functi
on `wmove'
scripts/kconfig/lxdialog/checklist.c:38: error: `choice' undeclared (first use i
n this function)
scripts/kconfig/lxdialog/checklist.c:40: warning: implicit declaration of functi
on `waddch'
scripts/kconfig/lxdialog/checklist.c:43: error: `selected' undeclared (first use
in this function)
scripts/kconfig/lxdialog/checklist.c:44: warning: implicit declaration of functi
on `wprintw'
scripts/kconfig/lxdialog/checklist.c:44: error: `status' undeclared (first use i
n this function)
scripts/kconfig/lxdialog/checklist.c:47: warning: implicit declaration of functi
on `mvwaddch'
scripts/kconfig/lxdialog/checklist.c:47: error: `item' undeclared (first use in
this function)
scripts/kconfig/lxdialog/checklist.c:49: warning: implicit declaration of functi
on `waddstr'
scripts/kconfig/lxdialog/checklist.c:52: warning: implicit declaration of functi
on `wrefresh'
scripts/kconfig/lxdialog/checklist.c: At top level:
scripts/kconfig/lxdialog/checklist.c:59: error: syntax error before '*' token
scripts/kconfig/lxdialog/checklist.c:61: warning: function declaration isn't a p
rototype
scripts/kconfig/lxdialog/checklist.c: In function `print_arrows':
scripts/kconfig/lxdialog/checklist.c:62: error: `win' undeclared (first use in t
his function)
scripts/kconfig/lxdialog/checklist.c:62: error: `y' undeclared (first use in thi
s function)
scripts/kconfig/lxdialog/checklist.c:62: error: `x' undeclared (first use in thi
s function)
scripts/kconfig/lxdialog/checklist.c:64: error: `scroll' undeclared (first use i
n this function)
scripts/kconfig/lxdialog/checklist.c:76: error: `height' undeclared (first use i
n this function)
scripts/kconfig/lxdialog/checklist.c:79: error: `item_no' undeclared (first use
in this function)
scripts/kconfig/lxdialog/checklist.c:79: error: `choice' undeclared (first use i
n this function)
scripts/kconfig/lxdialog/checklist.c: At top level:
scripts/kconfig/lxdialog/checklist.c:95: error: syntax error before '*' token
scripts/kconfig/lxdialog/checklist.c:96: warning: function declaration isn't a p
rototype
scripts/kconfig/lxdialog/checklist.c: In function `print_buttons':
scripts/kconfig/lxdialog/checklist.c:97: error: `width' undeclared (first use in
this function)
scripts/kconfig/lxdialog/checklist.c:98: error: `height' undeclared (first use i
n this function)
scripts/kconfig/lxdialog/checklist.c:100: error: `dialog' undeclared (first use
in this function)
scripts/kconfig/lxdialog/checklist.c:100: error: `selected' undeclared (first us
e in this function)
scripts/kconfig/lxdialog/checklist.c: In function `dialog_checklist':
scripts/kconfig/lxdialog/checklist.c:117: error: `WINDOW' undeclared (first use
in this function)
scripts/kconfig/lxdialog/checklist.c:117: error: `dialog' undeclared (first use
in this function)
scripts/kconfig/lxdialog/checklist.c:117: error: `list' undeclared (first use in
this function)
scripts/kconfig/lxdialog/checklist.c:117: warning: left-hand operand of comma ex
pression has no effect
scripts/kconfig/lxdialog/checklist.c:121: warning: implicit declaration of funct
ion `endwin'
scripts/kconfig/lxdialog/checklist.c:122: warning: implicit declaration of funct
ion `fprintf'
scripts/kconfig/lxdialog/checklist.c:122: error: `stderr' undeclared (first use
in this function)
scripts/kconfig/lxdialog/checklist.c:140: error: `COLS' undeclared (first use in
this function)
scripts/kconfig/lxdialog/checklist.c:141: error: `LINES' undeclared (first use i
n this function)
scripts/kconfig/lxdialog/checklist.c:143: error: `stdscr' undeclared (first use
in this function)
scripts/kconfig/lxdialog/checklist.c:145: warning: implicit declaration of funct
ion `newwin'
scripts/kconfig/lxdialog/checklist.c:146: warning: implicit declaration of funct
ion `keypad'
scripts/kconfig/lxdialog/checklist.c:146: error: `TRUE' undeclared (first use in
this function)
scripts/kconfig/lxdialog/checklist.c:166: warning: implicit declaration of funct
ion `subwin'
scripts/kconfig/lxdialog/checklist.c:202: warning: implicit declaration of funct
ion `wnoutrefresh'
scripts/kconfig/lxdialog/checklist.c:204: warning: implicit declaration of funct
ion `doupdate'
scripts/kconfig/lxdialog/checklist.c:207: warning: implicit declaration of funct
ion `wgetch'
scripts/kconfig/lxdialog/checklist.c:214: error: `KEY_UP' undeclared (first use
in this function)
scripts/kconfig/lxdialog/checklist.c:214: error: `KEY_DOWN' undeclared (first us
e in this function)
scripts/kconfig/lxdialog/checklist.c:224: error: `FALSE' undeclared (first use i
n this function)
scripts/kconfig/lxdialog/checklist.c:225: warning: implicit declaration of funct
ion `scrollok'
scripts/kconfig/lxdialog/checklist.c:226: warning: implicit declaration of funct
ion `wscrl'
scripts/kconfig/lxdialog/checklist.c:286: warning: implicit declaration of funct
ion `delwin'
scripts/kconfig/lxdialog/checklist.c:290: error: `KEY_LEFT' undeclared (first us
e in this function)
scripts/kconfig/lxdialog/checklist.c:291: error: `KEY_RIGHT' undeclared (first u
se in this function)
scripts/kconfig/lxdialog/checklist.c:117: warning: statement with no effect
scripts/kconfig/lxdialog/checklist.c: At top level:
scripts/kconfig/lxdialog/dialog.h:131: warning: array 'attributes' assumed to ha
ve one element
make[2]: *** [scripts/kconfig/lxdialog/checklist.o] Error 1
make[1]: *** [menuconfig] Error 2
make: *** [menuconfig] Error 2

server specs:
- Supermicro SC512L-260
- AMD Opteron 170 2.0Ghz Dual Core
- Supermicro H8SSL-i
- 2048MB DDR
- 1x 74GB raptor hd

hoe kan ik dit fixen?

wonko
08/07/07, 22:43
Het lijkt erop dat je libncurses5-dev niet hebt staan (of hoe de tegenhanger in Centos heet). Het is de ncurses5 bibliotheek, de headers.

Als je kernels gaat compileren, en dit is je eerste probleem waar je tegenaan loopt, dan zou ik je toch willen aanraden om even te kijken hoe je een kernel van je distributie zelf kan installeren, of iets dieper lezen over het compileren van een kernel, en de nodige hulpmiddellen/bibliotheken.