LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 03-11-2009, 08:39 AM   #1
chanduy
LQ Newbie
 
Registered: Feb 2009
Posts: 4

Rep: Reputation: 0
linux kernel rebuild


Hi,

i am trying to rebuld the kernel..
i am using linux enterprise edition 5.3

the kernels i was downloaded are
1. kernel-2[1].6.18-128.el5.src.rpm
2. kernel -devel 2.6.18-128.el5.i686.rpm
3.kernel-headers-2.6.18-128.el5.i386.rpm
4. cpp-4.1.2-44.el5.i386.rpm
5.libgomp-4.3.2-7.el5.i386.rpm
6.redhat-rpm-config-8.0.28-1.1.noarch.rpm
7.elfutils-0.137-3.el5.i386.rpm
8.elfutils-libs-0.137-3.el5.i386.rpm
9.rpm-build-4.4.2.3-9.el5.i386.rpm
10.gcc-4.1.2-44.el5.i386.rpm
11.glibc-devel-2.5-34.i386.rpm
12.glibc-headers-2.5-34.i386.rpm

the sequence i installed the sequence as
kernel-2[1].6.18-128.el5.src.rpm,
elfutils-0.137-3.el5.i386.rpm
elfutils-libs-0.137-3.el5.i386.rpm
redhat-rpm-config-8.0.28-1.1.noarch.rpm
rpm-build-4.4.2.3-9.el5.i386.rpm
kernel -devel 2.6.18-128.el5.i686.rpm
kernel-headers-2.6.18-128.el5.i386.rpm
cpp-4.1.2-44.el5.i386.rpm
libgomp-4.3.2-7.el5.i386.rpm
glibc-headers-2.5-34.i386.rpm
glibc-devel-2.5-34.i386.rpm
gcc-4.1.2-44.el5.i386.rpm


for installing i used the command rpm -i <kernel-name>
rpmbuild -bp --target=i686 kernel-2.6.spec
it is installed and created in respective folders as in redhat
source and specs
/usr/src/redhat
BUILD RPMS SOURCES SPECS SRPMS

/usr/src/linux/linux-2.6.18.i686
arch CREDITS fs Kbuild Makefile REPORTING-BUGS sound
block crypto include kernel mm samples usr
configs Documentation init lib net scripts
COPYING drivers ipc MAINTAINERS README security


after this i used make mrproper

after this
i tried make menuconfigit is not working make config is working

when i tried make menuconfig the following error is listed


[root@oas2 linux-2.6.18.i686]# make menuconfig
make[1]: Warning: File `/usr/include/sys/types.h' has modification time 5.7e+06 s in the future
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
make[1]: warning: Clock skew detected. Your build may be incomplete.
make[1]: Warning: File `/usr/include/ctype.h' has modification time 5.7e+06 s in the future
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/kxgettext.o
HOSTCC scripts/kconfig/mconf.o
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/mconf
HOSTCC scripts/kconfig/lxdialog/checklist.o
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â
scripts/kconfig/lxdialog/dialog.h:129: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âuse_shadowâ
scripts/kconfig/lxdialog/dialog.h:131: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âattributesâ
scripts/kconfig/lxdialog/dialog.h:143: error: expected â)â before â*â token
scripts/kconfig/lxdialog/dialog.h:146: error: expected â)â before â*â token
scripts/kconfig/lxdialog/dialog.h:147: error: expected â)â before â*â token
scripts/kconfig/lxdialog/dialog.h:148: error: expected â)â before â*â token
scripts/kconfig/lxdialog/dialog.h:149: error: expected â)â before â*â token
scripts/kconfig/lxdialog/dialog.h:151: 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:117: error: âWINDOWâ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:117: error: (Each undeclared identifier is reported only once
scripts/kconfig/lxdialog/checklist.c:117: error: for each function it appears in.)
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 expression has no effect
scripts/kconfig/lxdialog/checklist.c:121: warning: implicit declaration of function âendwinâ
scripts/kconfig/lxdialog/checklist.c:122: warning: implicit declaration of function âfprintfâ
scripts/kconfig/lxdialog/checklist.c:122: warning: incompatible implicit declaration of built-in function â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 in this function)
scripts/kconfig/lxdialog/checklist.c:143: warning: implicit declaration of function âdraw_shadowâ
scripts/kconfig/lxdialog/checklist.c:143: error: âstdscrâ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:145: warning: implicit declaration of function ânewwinâ
scripts/kconfig/lxdialog/checklist.c:146: warning: implicit declaration of function âkeypadâ
scripts/kconfig/lxdialog/checklist.c:146: error: âTRUEâ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:148: warning: implicit declaration of function âdraw_boxâ
scripts/kconfig/lxdialog/checklist.c:148: error: âattributesâ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:149: warning: implicit declaration of function âwattrsetâ
scripts/kconfig/lxdialog/checklist.c:150: warning: implicit declaration of function âmvwaddchâ
scripts/kconfig/lxdialog/checklist.c:152: warning: implicit declaration of function âwaddchâ
scripts/kconfig/lxdialog/checklist.c:156: warning: implicit declaration of function âprint_titleâ
scripts/kconfig/lxdialog/checklist.c:159: warning: implicit declaration of function âprint_autowrapâ
scripts/kconfig/lxdialog/checklist.c:166: warning: implicit declaration of function âsubwinâ
scripts/kconfig/lxdialog/checklist.c:191: warning: implicit declaration of function âprint_itemâ
scripts/kconfig/lxdialog/checklist.c:197: warning: implicit declaration of function âprint_arrowsâ
scripts/kconfig/lxdialog/checklist.c:200: warning: implicit declaration of function âprint_buttonsâ
scripts/kconfig/lxdialog/checklist.c:202: warning: implicit declaration of function âwnoutrefreshâ
scripts/kconfig/lxdialog/checklist.c:204: warning: implicit declaration of function âdoupdateâ
scripts/kconfig/lxdialog/checklist.c:207: warning: implicit declaration of function â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 use in this function)
scripts/kconfig/lxdialog/checklist.c:224: error: âFALSEâ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:225: warning: implicit declaration of function âscrollokâ
scripts/kconfig/lxdialog/checklist.c:226: warning: implicit declaration of function âwscrlâ
scripts/kconfig/lxdialog/checklist.c:235: warning: implicit declaration of function âwrefreshâ
scripts/kconfig/lxdialog/checklist.c:285: warning: incompatible implicit declaration of built-in function âfprintfâ
scripts/kconfig/lxdialog/checklist.c:286: warning: implicit declaration of function âdelwinâ
scripts/kconfig/lxdialog/checklist.c:290: error: âKEY_LEFTâ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:291: error: âKEY_RIGHTâ undeclared (first use in this function)
make[2]: *** [scripts/kconfig/lxdialog/checklist.o] Error 1
make[1]: *** [menuconfig] Error 2
make: *** [menuconfig] Error 2




Please tell me if any package is required to install to rebuild or to use the make menuconfig function


regards
chandu
 
Old 03-11-2009, 12:08 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by chanduy View Post
HOSTCC scripts/kconfig/lxdialog/checklist.o
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
...you need "curses-devel".
 
  


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
Kernel Rebuild Nikosis Linux - Newbie 4 05-01-2006 12:40 AM
rebuild linux kernel need to recompile all hardware driver? gsbarry Linux - Software 4 04-01-2003 08:14 PM
Linux Kernel rebuild -- problems salman Linux - General 4 12-06-2001 01:40 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 11:48 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