Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 09-08-2009, 04:21 PM   #1
LQ Newbie
Registered: Sep 2009
Posts: 1

Rep: Reputation: 0
Patching kernel using patch-o-matic

So the problem is that when I am trying to apply a patch, e.g IPMARK, I am receiving an error:
Do you want to apply this patch [N/y/t/f/a/r/b/w/q/?] y
unable to find ladd slot in src /tmp/pom-2459/net/ipv4/netfilter/Makefile (./patchlets/IPMARK/linux-2.6/./net/ipv4/netfilter/Makefile.ladd)
Do you want to apply this patch [N/y/t/f/a/r/b/w/q/?]
The thing I did before:
./runme download
and followed README to install ipset.
I am calling patch-o-matic with this command:
./runme IPMARK --kernel-path=/usr/src/linux --iptables-path=/usr/src/iptables
The kernel tree is
The iptables' one is 1.4.0.
Old 10-01-2009, 03:47 AM   #2
Registered: Sep 2008
Location: Middle of Nowhere, England
Distribution: Slackware 14.1, Ubuntu 13.10
Posts: 39

Rep: Reputation: 15
Hi there. I'm not entirely sure I can be much use, but hopefully I can point you in the right direction...

It sounds to me like the patch it's trying to apply isn't suitable for the kernel you're running. This kind of thing will happen when manually patching the kernel if you've used an incorrect patch version or applied the patch from the wrong place in the tree.

First stage is to check that the "/tmp/pom-2459/net/ipv4/netfilter/Makefile" file exists.

Next have a look inside the patch file (./patchlets/IPMARK/linux-2.6/./net/ipv4/netfilter/Makefile.ladd) and see if you can make head or tail of what it's trying to do.

If you can work out what it's supposed to do, then have a look at the contents of the first file and check that the code chunk where it's trying to insert the patch is identical in format to the way in which it is displayed in the .ladd file.

Unfortunately I don't know anything about the program you're using to apply the patch, so I can't really help on that front, but hopefully this has given you a couple of ideas.

Old 10-01-2009, 05:28 PM   #3
Registered: Jul 2003
Location: NY
Distribution: Slackware64, LFS
Posts: 313

Rep: Reputation: 53
As far as I know, POM is super-old and outdated. I used it for a long time way back when, but slowly the patches either stopped with the current kernel or merged into it. I'm talking pre-2.6.20-ish if I remember correctly. I'd stick with the in-kernel stuff. There's quite alot in the current


compilation, kernel, patches

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
Which version of patch-o-matic+kernel+iptables fits together? Lokiji Linux - Software 0 02-05-2008 09:59 AM
patching of MPLS patch with kernel-2.4.20-6 priyanka.chandel Linux - Kernel 0 12-15-2006 02:14 AM
Patch o matic and debian kernel dir ! gabsik Linux - Security 16 05-14-2006 11:53 PM
Patch-o-Matic TTL Patch Knopper Linux - Networking 1 02-02-2005 09:27 AM
How to Install patch-o-matic(a iptables patch) on redhat 9? itebooks Linux - Security 1 07-23-2004 08:51 AM > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 08:19 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration