Problems with kernel 2.6.22.1 compilation in Ubuntu

Source: Internet
Author: User
Ubuntu Kernel Compiling 2.6.22.1 problem solution: After modifying the NANDflsh partition and prohibit ECC verification, modify makefile, add devfs after executing makemenuconfig problem solution: sudoapt-getinstalllibncurses5-dev reference: cannotdo "makemenuconfig "--------------------

Solution to kernel issue 2.6.22.1 compilation in Ubuntu:

After modifying the NANDflsh partition and disabling ECC verification, modify the makefile, add devfs, and execute make menuconfig.

Solution:

Sudo apt-get install libncurses5-dev

Reference:

Can not do "make menuconfig"

--------------------------------------------------------------------------------

I 'd like to build a kernel in my home folder. The kernel source code was installed in under the folder:/home/linux

I have already create a. config file in the folder:
/Home/linux/linux-2.6.22.1/
But when I use make menuconfig, I got following message:
"
HOSTCC scripts/kconfig/lxdialog/checklist. o
In file already ded from scripts/kconfig/lxdialog/checklist. c: 24:
Scripts/kconfig/lxdialog/dialog. h: 32: 20: error: curses. h: No such file or directory
In file already ded from scripts/kconfig/lxdialog/checklist. c: 24:
Scripts/kconfig/lxdialog/dialog. h: 97: error: expected specifier-qualifier-list before 'chtype'
Scripts/kconfig/lxdialog/dialog. h: 187: error: expected ') 'before' * 'token
Scripts/kconfig/lxdialog/dialog. h: 194: error: expected ') 'before' * 'token
Scripts/kconfig/lxdialog/dialog. h: 196: error: expected ') 'before' * 'token
Scripts/kconfig/lxdialog/dialog. h: 197: error: expected ') 'before' * 'token
Scripts/kconfig/lxdialog/dialog. h: 198: error: expected ') 'before' * 'token
Scripts/kconfig/lxdialog/dialog. h: 199: error: expected ') 'before' * 'token
Scripts/kconfig/lxdialog/dialog. h: 201: error: expected ') 'before' * 'token
Scripts/kconfig/lxdialog/checklist. c: 31: error: expected ') 'before' * 'token
Scripts/kconfig/lxdialog/checklist. c: 59: error: expected ') 'before' * 'token
Scripts/kconfig/lxdialog/checklist. c: 95: error: expected ') 'before' * 'token
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: (Each undeclared identifier is reported only once
Scripts/kconfig/lxdialog/checklist. c: 116: error: for each function it appears in .)
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: 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: 140: warning: implicit declaration of function 'draw _ shadow'
Scripts/kconfig/lxdialog/checklist. c: 142: warning: implicit declaration of function 'newwin'
Scripts/kconfig/lxdialog/checklist. c: 143: warning: implicit declaration of function 'keypa'
Scripts/kconfig/lxdialog/checklist. c: 143: error: 'true' undeclared (first use in this function)
Scripts/kconfig/lxdialog/checklist. c: 145: warning: implicit declaration of function 'draw _ box'
Scripts/kconfig/lxdialog/checklist. c: 146: error: 'struct dialog_color 'has no member named 'act'
Scripts/kconfig/lxdialog/checklist. c: 146: error: 'struct dialog_color 'has no member named 'act'
Scripts/kconfig/lxdialog/checklist. c: 147: warning: implicit declaration of function 'wattrset'
Scripts/kconfig/lxdialog/checklist. c: 147: error: 'struct dialog_color 'has no member named 'act'
Scripts/kconfig/lxdialog/checklist. c: 148: warning: implicit declaration of function 'mvwaddch'
Scripts/kconfig/lxdialog/checklist. c: 150: warning: implicit declaration of function 'waddch'
Scripts/kconfig/lxdialog/checklist. c: 151: error: 'struct dialog_color 'has no member named 'act'
Scripts/kconfig/lxdialog/checklist. c: 154: warning: implicit declaration of function 'print _ title'
Scripts/kconfig/lxdialog/checklist. c: 156: error: 'struct dialog_color 'has no member named 'act'
Scripts/kconfig/lxdialog/checklist. c: 157: warning: implicit declaration of function 'print _ autorap'
Scripts/kconfig/lxdialog/checklist. c: 164: warning: implicit declaration of function 'subwin'
Scripts/kconfig/lxdialog/checklist. c: 171: error: 'struct dialog_color 'has no member named 'act'
Scripts/kconfig/lxdialog/checklist. c: 171: error: 'struct dialog_color 'has no member named 'act'
Scripts/kconfig/lxdialog/checklist. c: 189: warning: implicit declaration of function 'print _ item'
Scripts/kconfig/lxdialog/checklist. c: 192: warning: implicit declaration of function 'print _ arrows'
Scripts/kconfig/lxdialog/checklist. c: 195: warning: implicit declaration of function 'print _ Buttons'
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 _ low' 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 'scrolok'
Scripts/kconfig/lxdialog/checklist. c: 222: warning: implicit declaration of function 'wscrl'
Scripts/kconfig/lxdialog/checklist. c: 232: warning: implicit declaration of function 'wrefresh'
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: 310: warning: implicit declaration of function 'on _ key_esc'
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
"

I guess I don't have Ncurse Library, so I install all Ncurses packages under the synaptic package manager, which are Ncurses-base, Ncurses-bin, Ncurses-hextext, Ncurses-term, the result is still the same. what's wrong?

-------

You have to have the ncurses development library

Sudo apt-get install libncurses5-devThat shocould get you going.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.