LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 05-22-2007, 07:09 PM   #1
the_imax
Member
 
Registered: Apr 2004
Distribution: RHEL 4/ CentOS
Posts: 152

Rep: Reputation: 30
Error 2 from Menuconfig


Hi
I have Suse10 installed and I just wanted to install a new kernel for my system (just for the purpose of learning)

I have downloaded and unpacked linux-2.6.21 but when I type in

make menuconfig in that directory I get the error


Code:
 make menuconfig
  HOSTCC  scripts/kconfig/lxdialog/checklist.o
In file included from scripts/kconfig/lxdialog/checklist.c:24:
scripts/kconfig/lxdialog/dialog.h:32:20: error: curses.h: No such file or directory
In file included from scripts/kconfig/lxdialog/checklist.c:24:
scripts/kconfig/lxdialog/dialog.h:97: error: syntax error before ‚chtype‚
scripts/kconfig/lxdialog/dialog.h:97: warning: no semicolon at end of struct or union
scripts/kconfig/lxdialog/dialog.h:101: error: syntax error before ‚}‚ token
scripts/kconfig/lxdialog/dialog.h:105: error: field ‚screen‚ has incomplete type
scripts/kconfig/lxdialog/dialog.h:106: error: field ‚shadow‚ has incomplete type
scripts/kconfig/lxdialog/dialog.h:107: error: field ‚dialog‚ has incomplete type
scripts/kconfig/lxdialog/dialog.h:108: error: field ‚title‚ has incomplete type
scripts/kconfig/lxdialog/dialog.h:109: error: field ‚border‚ has incomplete type
scripts/kconfig/lxdialog/dialog.h:110: error: field ‚button_active‚ has incomplete type
scripts/kconfig/lxdialog/dialog.h:111: error: field ‚button_inactive‚ has incomplete type
scripts/kconfig/lxdialog/dialog.h:112: error: field ‚button_key_active‚ has incomplete type
scripts/kconfig/lxdialog/dialog.h:113: error: field ‚button_key_inactive‚ has incomplete type
scripts/kconfig/lxdialog/dialog.h:114: error: field ‚button_label_active‚ has incomplete type
scripts/kconfig/lxdialog/dialog.h:115: error: field ‚button_label_inactive‚ has incomplete type
scripts/kconfig/lxdialog/dialog.h:116: error: field ‚inputbox‚ has incomplete type
scripts/kconfig/lxdialog/dialog.h:117: error: field ‚inputbox_border‚ has incomplete type
scripts/kconfig/lxdialog/dialog.h:118: error: field ‚searchbox‚ has incomplete type
scripts/kconfig/lxdialog/dialog.h:119: error: field ‚searchbox_title‚ has incomplete type
scripts/kconfig/lxdialog/dialog.h:120: error: field ‚searchbox_border‚ has incomplete type
scripts/kconfig/lxdialog/dialog.h:121: error: field ‚position_indicator‚ has incomplete type
scripts/kconfig/lxdialog/dialog.h:122: error: field ‚menubox‚ has incomplete type
scripts/kconfig/lxdialog/dialog.h:123: error: field ‚menubox_border‚ has incomplete type
scripts/kconfig/lxdialog/dialog.h:124: error: field ‚item‚ has incomplete type
scripts/kconfig/lxdialog/dialog.h:125: error: field ‚item_selected‚ has incomplete type
scripts/kconfig/lxdialog/dialog.h:126: error: field ‚tag‚ has incomplete type
scripts/kconfig/lxdialog/dialog.h:127: error: field ‚tag_selected‚ has incomplete type
scripts/kconfig/lxdialog/dialog.h:128: error: field ‚tag_key‚ has incomplete type
scripts/kconfig/lxdialog/dialog.h:129: error: field ‚tag_key_selected‚ has incomplete type
scripts/kconfig/lxdialog/dialog.h:130: error: field ‚check‚ has incomplete type
scripts/kconfig/lxdialog/dialog.h:131: error: field ‚check_selected‚ has incomplete type
scripts/kconfig/lxdialog/dialog.h:132: error: field ‚uarrow‚ has incomplete type
scripts/kconfig/lxdialog/dialog.h:133: error: field ‚darrow‚ has incomplete type
scripts/kconfig/lxdialog/dialog.h:187: error: syntax error before ‚*‚ token
scripts/kconfig/lxdialog/dialog.h:187: warning: function declaration isn‚t a prototype
scripts/kconfig/lxdialog/dialog.h:193: error: syntax error before ‚*‚ token
scripts/kconfig/lxdialog/dialog.h:193: warning: function declaration isn‚t a prototype
scripts/kconfig/lxdialog/dialog.h:195: error: syntax error before ‚*‚ token
scripts/kconfig/lxdialog/dialog.h:195: warning: function declaration isn‚t a prototype
scripts/kconfig/lxdialog/dialog.h:196: error: syntax error before ‚*‚ token
scripts/kconfig/lxdialog/dialog.h:196: warning: function declaration isn‚t a prototype
scripts/kconfig/lxdialog/dialog.h:197: error: syntax error before ‚*‚ token
scripts/kconfig/lxdialog/dialog.h:197: warning: function declaration isn‚t a prototype
scripts/kconfig/lxdialog/dialog.h:198: error: syntax error before ‚*‚ token
scripts/kconfig/lxdialog/dialog.h:199: warning: function declaration isn‚t a prototype
scripts/kconfig/lxdialog/dialog.h:200: error: syntax error before ‚*‚ token
scripts/kconfig/lxdialog/dialog.h:200: warning: function declaration isn‚t a prototype
scripts/kconfig/lxdialog/checklist.c:31: error: syntax error before ‚*‚ token
scripts/kconfig/lxdialog/checklist.c:32: warning: function declaration isn‚t a prototype
scripts/kconfig/lxdialog/checklist.c: In function ‚print_item‚:
scripts/kconfig/lxdialog/checklist.c:36: warning: implicit declaration of function ‚wattrset‚
scripts/kconfig/lxdialog/checklist.c:36: error: ‚win‚ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:36: error: (Each undeclared identifier is reported only once
scripts/kconfig/lxdialog/checklist.c:36: error: for each function it appears in.)
scripts/kconfig/lxdialog/checklist.c:37: warning: implicit declaration of function ‚wmove‚
scripts/kconfig/lxdialog/checklist.c:37: error: ‚choice‚ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:39: warning: implicit declaration of function ‚waddch‚
scripts/kconfig/lxdialog/checklist.c:42: error: ‚selected‚ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:44: warning: implicit declaration of function ‚wprintw‚
scripts/kconfig/lxdialog/checklist.c:47: warning: implicit declaration of function ‚mvwaddch‚
scripts/kconfig/lxdialog/checklist.c:49: warning: implicit declaration of function ‚waddstr‚
scripts/kconfig/lxdialog/checklist.c:52: warning: implicit declaration of function ‚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 prototype
scripts/kconfig/lxdialog/checklist.c: In function ‚print_arrows‚:
scripts/kconfig/lxdialog/checklist.c:62: error: ‚win‚ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:62: error: ‚y‚ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:62: error: ‚x‚ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:64: error: ‚scroll‚ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:76: error: ‚height‚ undeclared (first use in 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 in 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 prototype
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 in 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 use in this function)
scripts/kconfig/lxdialog/checklist.c: In function ‚dialog_checklist‚:
scripts/kconfig/lxdialog/checklist.c:116: error: ‚WINDOW‚ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:116: error: ‚dialog‚ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:116: error: ‚list‚ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:116: warning: left-hand operand of comma expression has no effect
scripts/kconfig/lxdialog/checklist.c:116: warning: statement with no effect
scripts/kconfig/lxdialog/checklist.c:129: warning: implicit declaration of function ‚getmaxy‚
scripts/kconfig/lxdialog/checklist.c:129: error: ‚stdscr‚ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:130: error: ‚KEY_MAX‚ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:131: warning: implicit declaration of function ‚getmaxx‚
scripts/kconfig/lxdialog/checklist.c:137: error: ‚COLS‚ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:138: error: ‚LINES‚ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:142: warning: implicit declaration of function ‚newwin‚
scripts/kconfig/lxdialog/checklist.c:143: warning: implicit declaration of function ‚keypad‚
scripts/kconfig/lxdialog/checklist.c:143: error: ‚TRUE‚ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:164: warning: implicit declaration of function ‚subwin‚
scripts/kconfig/lxdialog/checklist.c:197: warning: implicit declaration of function ‚wnoutrefresh‚
scripts/kconfig/lxdialog/checklist.c:199: warning: implicit declaration of function ‚doupdate‚
scripts/kconfig/lxdialog/checklist.c:202: warning: implicit declaration of function ‚wgetch‚
scripts/kconfig/lxdialog/checklist.c:210: error: ‚KEY_UP‚ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:210: error: ‚KEY_DOWN‚ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:220: error: ‚FALSE‚ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:221: warning: implicit declaration of function ‚scrollok‚
scripts/kconfig/lxdialog/checklist.c:222: warning: implicit declaration of function ‚wscrl‚
scripts/kconfig/lxdialog/checklist.c:293: warning: implicit declaration of function ‚delwin‚
scripts/kconfig/lxdialog/checklist.c:297: error: ‚KEY_LEFT‚ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:298: error: ‚KEY_RIGHT‚ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:312: error: ‚KEY_RESIZE‚ undeclared (first use in this function)
make[1]: *** [scripts/kconfig/lxdialog/checklist.o] Error 1
make: *** [menuconfig] Error 2
can you tell that how to go about this ?
 
Old 05-22-2007, 07:23 PM   #2
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 117Reputation: 117
It looks like you need to install the ncurses development files. The package might be something like ncurses-dev, libncurses-dev, libncurses5-dev, or similar. On Ubuntu it's libncurses5-dev, but I don't know SuSE.
 
Old 05-22-2007, 10:20 PM   #3
the_imax
Member
 
Registered: Apr 2004
Distribution: RHEL 4/ CentOS
Posts: 152

Original Poster
Rep: Reputation: 30
yes you are right
it is working after the installation of ncruses dev pkg

Last edited by the_imax; 05-22-2007 at 10:37 PM.
 
Old 05-23-2007, 01:57 PM   #4
the_imax
Member
 
Registered: Apr 2004
Distribution: RHEL 4/ CentOS
Posts: 152

Original Poster
Rep: Reputation: 30
now I have completed all the usual steps, but when I boot from that kernel I get the error

could not load /lib/modules/2.6.21-default/modules.dep no such file or directory ?
 
Old 05-23-2007, 03:12 PM   #5
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 117Reputation: 117
Did you perform both "make modules" and "make modules_install"?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
make menuconfig error multios Slackware 5 01-31-2007 09:50 AM
error when creating menuconfig rem1986 Linux - Kernel 2 08-28-2006 02:20 PM
Kernel Compile Menuconfig Error Xian Debian 6 09-06-2005 05:03 PM
Error: make menuconfig Diminished7th Slackware 2 04-16-2005 03:54 AM
make menuconfig ...error st3reo Fedora 0 11-18-2004 07:32 AM


All times are GMT -5. The time now is 12:28 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration