LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   (Applying patch to the Kernal) TUX httpd accelerator in CentOS 5 (https://www.linuxquestions.org/questions/linux-newbie-8/applying-patch-to-the-kernal-tux-httpd-accelerator-in-centos-5-a-854763/)

furqan556 01-06-2011 11:37 PM

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

unSpawn 01-07-2011 08:11 PM

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?

furqan556 01-09-2011 11:23 PM

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.

unSpawn 01-10-2011 06:29 PM

Quote:

Originally Posted by furqan556 (Post 4218911)
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 (Post 4218911)
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).

resetreset 01-14-2011 09:46 AM

Quote:

Originally Posted by furqan556 (Post 4218911)
(i.e. Prefork process or thread process).

what are these?


All times are GMT -5. The time now is 06:12 PM.