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 07-03-2008, 06:23 AM   #1
megerdin
Member
 
Registered: Jul 2007
Location: London
Distribution: FC11,FC10,FC7,FC4,Centos 5.1,Ubuntu,Mandrake Linux,puppy.LinuxMint.Opensuse
Posts: 181

Rep: Reputation: 31
kernel compilation error in centos 5.1


Hi guru,
I am trying to compile new kernel version linux-2.6.25.9.tar.bz2

In my operation when I run

Quote:
make rpm
After a long procedure following error appeared.

Quote:
kernel/capability.c:135: error: redefinition of ‘warn_deprecated_v2’
kernel/capability.c:72: error: previous definition of ‘warn_deprecated_v2’ was here
kernel/capability.c:153: error: redefinition of ‘cap_validate_magic’
kernel/capability.c:90: error: previous definition of ‘cap_validate_magic’ was here
kernel/capability.c:198: error: redefinition of ‘warn_deprecated_v2’
kernel/capability.c:135: error: previous definition of ‘warn_deprecated_v2’ was here
kernel/capability.c:216: error: redefinition of ‘cap_validate_magic’
kernel/capability.c:153: error: previous definition of ‘cap_validate_magic’ was here
make[1]: *** [kernel/capability.o] Error 1
make: *** [kernel] Error 2
Can I get ride of this message....
also try
Quote:
make
make all
Same result..

Any help for me..
 
Old 07-03-2008, 07:30 AM   #2
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,189

Rep: Reputation: 49
Did you make any changes to the kernel?

A much easier way would be to use yum. Moreover, go for linux-2.6.25.14.

Quote:
yum install kernel
 
Old 07-05-2008, 03:58 AM   #3
megerdin
Member
 
Registered: Jul 2007
Location: London
Distribution: FC11,FC10,FC7,FC4,Centos 5.1,Ubuntu,Mandrake Linux,puppy.LinuxMint.Opensuse
Posts: 181

Original Poster
Rep: Reputation: 31
I don't want to use yum.
I want to configure it my own way, cause yum kernel doesn't built the all feature.
 
Old 07-05-2008, 04:11 AM   #4
megerdin
Member
 
Registered: Jul 2007
Location: London
Distribution: FC11,FC10,FC7,FC4,Centos 5.1,Ubuntu,Mandrake Linux,puppy.LinuxMint.Opensuse
Posts: 181

Original Poster
Rep: Reputation: 31
ops! yes I just upload my current configuration...and nothing more..
 
Old 07-05-2008, 05:45 AM   #5
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,189

Rep: Reputation: 49
I really didnt understand. Let me repeat, the changes you made must be effecting the compilation of the kernel either post your changes or look for mistakes and typos..
 
Old 07-06-2008, 05:49 AM   #6
megerdin
Member
 
Registered: Jul 2007
Location: London
Distribution: FC11,FC10,FC7,FC4,Centos 5.1,Ubuntu,Mandrake Linux,puppy.LinuxMint.Opensuse
Posts: 181

Original Poster
Rep: Reputation: 31
sorry! to bother you.
Actually I used this command
Quote:
cp /boot/config-`uname -r` ./.config
to make a backup of my current configuration and in make menuconfig section I upload this file as alternative configurations file.
then save.

Is it enough inf.?
 
Old 07-06-2008, 06:23 AM   #7
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,684

Rep: Reputation: 54
You should do this:

make clean in the source tree if you already have tried compilation
then
cp /boot/config /usr/src/linux/.config
or
zcat /proc/config.gz /usr/src/linux/.config
to copy the config from your current kernel to the fresh source tree.
make oldconfig to configure the new tree using te old config
make menuconfig - or whatever you prefer - to configure the kernel the way you want it
then
make ...
 
  


Reply

Tags
centos, compilation, error, kernel


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
Kernel Compilation error praveen_repelle Linux - Newbie 1 02-12-2008 04:04 PM
Kernel compilation error: Error 15: File not found Niceman2005 Linux - General 9 10-04-2007 03:45 AM
kernel compilation error .. LN85 Linux - Kernel 0 06-28-2007 03:38 AM
Kernel compilation error!! vishamr2000 Linux - General 8 02-27-2006 10:48 AM
kernel compilation error in 2.4.20-8 cranium2004 Linux - Software 1 11-24-2004 06:04 AM


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