LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-07-2011, 12:37 AM   #1
furqan556
LQ Newbie
 
Registered: Jan 2011
Posts: 2

Rep: Reputation: 0
Smile (Applying patch to the Kernal) TUX httpd accelerator in CentOS 5


Hi everyone,
I have installed the tux-3.2.18-9.fc6.i386.rpm succefully in CentOS 5. I have got the following error, when I apply the patch tux3-2.6.18-1 to the kernal.

File to patch: /tmp/tux/tux3-2.6.18-1
patching file /tmp/tux/tux3-2.6.18-1
Hunk #1 FAILED at 240.
1 out of 1 hunk FAILED -- saving rejects to file /tmp/tux/tux3-2.6.18-1.rej
can't find file to patch at input line 25
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: linux/arch/i386/kernel/syscall_table.S
|===================================================================
|--- linux.orig/arch/i386/kernel/syscall_table.S
|+++ linux/arch/i386/kernel/syscall_table.S
--------------------------
File to patch: /tmp/tux/tux3-2.6.18-1
patching file /tmp/tux/tux3-2.6.18-1
Hunk #1 FAILED at 221.
1 out of 1 hunk FAILED -- saving rejects to file /tmp/tux/tux3-2.6.18-1.rej
can't find file to patch at input line 46
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: linux/arch/ia64/kernel/entry.S
|===================================================================
|--- linux.orig/arch/ia64/kernel/entry.S
|+++ linux/arch/ia64/kernel/entry.S
--------------------------
File to patch: /tmp/tux//tux3-2.6.18-1
patching file /tmp/tux//tux3-2.6.18-1
Hunk #1 FAILED at 1427.
1 out of 1 hunk FAILED -- saving rejects to file /tmp/tux//tux3-2.6.18-1.rej
can't find file to patch at input line 66
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: linux/arch/ia64/kernel/ia64_ksyms.c
|===================================================================
|--- linux.orig/arch/ia64/kernel/ia64_ksyms.c
|+++ linux/arch/ia64/kernel/ia64_ksyms.c
--------------------------

I will be very thankful if someone can give me usefull suggestion.
 
Old 01-07-2011, 09:11 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531
Centos 5.5 currently is at kernel 2.6.18-194.32.1.el5 so a patch for kernel 2.6.18-1 won't work without maximum --fuzz (and even then). Where did you get the patch from and what is it needed for?
 
Old 01-10-2011, 12:23 AM   #3
furqan556
LQ Newbie
 
Registered: Jan 2011
Posts: 2

Original Poster
Rep: Reputation: 0
Actually, i want to make a simple webserver program, that handles multiples requests through any of the two procedures (i.e. Prefork process or thread process). Therefore, I am installing a TUX webserver. As, the procedures of installing it is given at the link (http://people.redhat.com/mingo/TUX-p...kStart-TUX.txt), I am following this procedures with the new version files available in TUX patches. Therefore during installation when i apply patch to the kernal i got an error.

I will be very thankfull if you kindly help me in this regard.
 
Old 01-10-2011, 07:29 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531
Quote:
Originally Posted by furqan556 View Post
As, the procedures of installing it is given at the link (http://people.redhat.com/mingo/TUX-p...kStart-TUX.txt), I am following this procedures with the new version files available in TUX patches. Therefore during installation when i apply patch to the kernal i got an error.
Posting exact error messages (attach as plain text?) would be more helpful than talking about them.Also note if you compare http://people.redhat.com/mingo/TUX-p.../tux3-2.6.18-1 and http://www.takatan.net/lxr/source/ne...2.6.18-194.el5 they're the same, ergo 2.6.18-194.el5 comes with the TUX patches. (Sure I could have read changelogs to find that out but why not look at and compare code when you can?..) Maybe just recompile the 2.6.18-194.el5 and check for "CONFIG_TUX_MODULE"?


Quote:
Originally Posted by furqan556 View Post
Actually, i want to make a simple webserver program, that handles multiples requests through any of the two procedures (i.e. Prefork process or thread process). Therefore, I am installing a TUX webserver.
Apache is a userland application, meaning process or thread-handling behaviour is based on the userland libraries (APR, NPTL?). I doubt you can compare userland threading with kernel-level threading 1:1 (but then again I'm not much into concepts like semphores, mutex atomics and CAS any more than what "Understanding the Linux Kernel" tells me so if I'm wrong just tell me).
 
Old 01-14-2011, 10:46 AM   #5
resetreset
Senior Member
 
Registered: Mar 2008
Location: Cyberspace
Distribution: Dynebolic, Ubuntu 10.10
Posts: 1,340

Rep: Reputation: 62
Quote:
Originally Posted by furqan556 View Post
(i.e. Prefork process or thread process).
what are these?
 
  


Reply


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
Applying a kernel patch? posix_memalign Linux - Software 1 12-20-2008 06:08 AM
Applying samba patch kool_kid Linux - Networking 2 12-14-2007 08:37 AM
applying patch? alaios Linux - General 1 11-29-2004 11:41 AM
applying a patch darthczyz Linux - Newbie 2 05-07-2004 09:44 AM
Applying driver patch ... suriyamohan Linux - Software 20 05-08-2003 03:48 PM


All times are GMT -5. The time now is 02:20 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration