Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello-
I've downloaded the 2.6.23.12 kernel, opened it in /usr/src, and was working on building the kernel.
I cd'ed into the /usr/src/2.6.23.12.../ directory, and 'make clean' ran fine.
Then, I tried running 'make menuconfig' and got several errors:
Code:
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: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
This is the bottom of the long error message. If anyone could help me, that would be great.
thanks,
LN75
Was there another error, something like
error: curses.h: No such file or directory
a little above? Looks like you don't have ncurses library installed. Look for ncurses-devel in your package manager or something like that.
Also, make menuconfig does not produce a kernel image. It only produces a configuration file. Then you have to actually compile the kernel.
error: curses.h but I have ncurses-bin & ncurses-base
Quote:
Originally Posted by Uncle_Theodore
Was there another error, something like
error: curses.h: No such file or directory
a little above? Looks like you don't have ncurses library installed. Look for ncurses-devel in your package manager or something like that.
Also, make menuconfig does not produce a kernel image. It only produces a configuration file. Then you have to actually compile the kernel.
I hope this thread isn't too old to extend it with a similar question. I'm having exactly the problem you described, trying to 'make menuconfig' on linux-2.6.28.6 in Debian. Make oldconfig worked, but didn't affect my luck with 'make menuconfig.' The exact error message is
In file included from scripts/kconfig/lxdialog/checklist.c:24:
scripts/kconfig/lxdialog/dialog.h:31:20: error: curses.h: No such file or directory
In file included from scripts/kconfig/lxdialog/checklist.c:24:
scripts/kconfig/lxdialog/dialog.h:128: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘use_colors’
Then, there are a few more problems in 'dialog.h' and a couple dozen in 'checklist.c' before it gives up. Thanks in advance.
As Uncle_theodore had noted above, install the ncurses(-devel) package.
Tricky devil calls istelf 'libncurses5-dev,' but I found it, installed it, and put it to work configging my kernel. I really like make-kpkg! The Debian thread about upgrading/re-compiling the 2.6 kernel was also key.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.