-   Linux - Kernel (
-   -   kernel compilation error in centos 5.1 (

megerdin 07-03-2008 06:23 AM

kernel compilation error in centos 5.1
Hi guru,
I am trying to compile new kernel version linux-

In my operation when I run


make rpm
After a long procedure following error appeared.


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

make all
Same result..

Any help for me..

w3bd3vil 07-03-2008 07:30 AM

Did you make any changes to the kernel?

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


yum install kernel

megerdin 07-05-2008 03:58 AM

I don't want to use yum.
I want to configure it my own way, cause yum kernel doesn't built the all feature.

megerdin 07-05-2008 04:11 AM

ops! yes I just upload my current configuration...and nothing more..

w3bd3vil 07-05-2008 05:45 AM

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..

megerdin 07-06-2008 05:49 AM

sorry! to bother you.
Actually I used this command

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.?

jomen 07-06-2008 06:23 AM

You should do this:

make clean in the source tree if you already have tried compilation
cp /boot/config /usr/src/linux/.config
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
make ...

All times are GMT -5. The time now is 09:48 PM.