Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
What the hell is going on? (patching)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
growse
Apprentice
Apprentice


Joined: 24 Jan 2003
Posts: 154
Location: Sunny UK

PostPosted: Sat Dec 11, 2004 2:24 pm    Post subject: What the hell is going on? (patching) Reply with quote

<noob>

I get a patch file, in this case it's the nitro4 patch bzip2. I decompress it, and then I do:

patch -p1 < /usr/src/patch-2.6.9-nitro4

It then starts saying things like "Shall I assume -R [n]" and "Should I patch this anyway [n]"?

What do I answer?

If I do the default "no" and "no", the kernel compile fails with:

kernel/sysctl.c:658: error: `KERN_INTERACTIVE' undeclared here (not in a function)
kernel/sysctl.c:658: error: initializer element is not constant
kernel/sysctl.c:658: error: (near initialization for `kern_table[33].ctl_name')
kernel/sysctl.c:664: error: initializer element is not constant
kernel/sysctl.c:664: error: (near initialization for `kern_table[33]')

ARGH!

</noob>
_________________
Getting there....
Back to top
View user's profile Send private message
blueworm
l33t
l33t


Joined: 09 May 2003
Posts: 962

PostPosted: Sat Dec 11, 2004 5:12 pm    Post subject: Reply with quote

You have to patch against the correct kernel source.
Most kernel patches are meant to be patched against the vanilla kernel.
Back to top
View user's profile Send private message
sobers_2002
Veteran
Veteran


Joined: 16 Mar 2004
Posts: 1128

PostPosted: Sat Dec 11, 2004 6:49 pm    Post subject: Reply with quote

its best to get the ebuild and let it do the job
_________________
Pdict - dockable dictionary client for linux
FREE97WIN: Use this code on Dreamhost and you get $97 off !!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum