LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 01-05-2008, 11:21 AM   #1
LinuxNoob75
Member
 
Registered: Jan 2007
Posts: 90

Rep: Reputation: 15
Kernel Hacking


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
 
Old 01-05-2008, 05:18 PM   #2
LinuxNoob75
Member
 
Registered: Jan 2007
Posts: 90

Original Poster
Rep: Reputation: 15
added note:
Make Menuconfig doesn't produce a vmImage.(probably because it never gets to the configuration part)
 
Old 01-05-2008, 05:25 PM   #3
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 71
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.
 
Old 01-07-2008, 07:38 AM   #4
devkpict
Member
 
Registered: Oct 2007
Posts: 31

Rep: Reputation: 15
oldconfig

Try doing "make oldconfig"
 
Old 02-17-2008, 11:12 PM   #5
gr8scot
Member
 
Registered: Jun 2007
Distribution: Debian, kubuntu
Posts: 73

Rep: Reputation: 16
error: curses.h but I have ncurses-bin & ncurses-base

Quote:
Originally Posted by Uncle_Theodore View Post
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.
 
Old 02-18-2008, 02:58 AM   #6
rmanocha
Member
 
Registered: Oct 2003
Location: Austin,TX
Distribution: Debian SID-->fully content-->Love APT,kernel 2.6.4
Posts: 327

Rep: Reputation: 30
Quote:
scripts/kconfig/lxdialog/dialog.h:31:20: error: curses.h: No such file or directory
As Uncle_theodore had noted above, install the ncurses(-devel) package.
 
Old 02-21-2008, 10:54 AM   #7
gr8scot
Member
 
Registered: Jun 2007
Distribution: Debian, kubuntu
Posts: 73

Rep: Reputation: 16
Thumbs up Thank you, that worked!

Quote:
Originally Posted by rmanocha View Post
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.

http://www.linuxquestions.org/questi...ompile-206992/
 
  


Reply



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
How to unset kernel hacking clergykid Linux - Kernel 6 02-02-2007 09:56 AM
Kernel Hacking Siva4Linux Linux - Kernel 3 11-20-2006 01:27 AM
Linux Kernel Hacking gr33ndata LQ Suggestions & Feedback 1 02-18-2005 06:43 PM
Kernel Hacking sigep739 Linux - Software 2 01-08-2005 12:30 AM
Kernel hacking AMDPwred Linux - General 5 06-22-2003 02:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration