Skip to contentSkip to conversation

patch-o-matic help

DISCUSSION Noman Liaquat 3 participants 4 messages Dec 23, 2005

lore
Share & tools
lore
#0 lore raw

I am using kernel

Operating system=REDHAT ENTERPRISE LINUX#ES kernel= linux-2.6.14.4 iptables=iptables-1.3.2

i downloaded the patch-o-matic
svn co
https://svn.netfilter.org/netfilter/trunk/patch-o-matic-ng

i tried 10 times after patching the kernel with patch-matic, but getting the same error.

why

---------------------------------ERROR--------------------------------- scripts/Makefile.build:51: kbuild:
net/ipv4/netfilter/Makefile - Usage of export-objs is obsolete in 2.6. Please fix!
CC [M] net/ipv4/netfilter/ip_conntrack_standalone.o
In file included from include/linux/netfilter_ipv4/ip_conntrack.h:157,
from
net/ipv4/netfilter/ip_conntrack_standalone.c:34:
include/linux/netfilter_ipv4/ip_conntrack_talk.h:7:43:
linux/netfilter_ipv4/lockhelp.h: No such file or
directory
In file included from include/linux/netfilter_ipv4/ip_conntrack.h:157,
from
net/ipv4/netfilter/ip_conntrack_standalone.c:34:
include/linux/netfilter_ipv4/ip_conntrack_talk.h:10:
warning: type defaults to int' in declaration of DECLARE_LOCK_EXTERN' include/linux/netfilter_ipv4/ip_conntrack_talk.h:10:
warning: parameter names (without types) in function declaration include/linux/netfilter_ipv4/ip_conntrack_talk.h:10:
warning: data definition has no type or storage class make[3]: ***
[net/ipv4/netfilter/ip_conntrack_standalone.o] Error 1 make[2]: *** [net/ipv4/netfilter] Error 2
make[1]: *** [net/ipv4] Error 2
make: *** [net] Error 2 ---------------------------------ERROR---------------------------------

Regards
Khan

__________________________________________
Yahoo! DSL – Something to write home about. Just $16.99/mo. or less.
dsl.yahoo.com

#1 lore raw

Now after compilation of all things. i am getting this error. what that means my kernel is not compiled properly or my iptables have some problem

[root@mail iptables-1.3.4]# iptables -A INPUT -p tcp -m string --string "/bin/sh" -j DROP iptables v1.3.4:
STRING match: You must specify `--algo'
Try `iptables -h' or 'iptables --help' for more information.

Regards
khan

Quoted 10 lines · --- Noman Liaquat

I am using kernel

Operating system=REDHAT ENTERPRISE LINUX#ES kernel= linux-2.6.14.4 iptables=iptables-1.3.2

i downloaded the patch-o-matic
svn co

https://svn.netfilter.org/netfilter/trunk/patch-o-matic-ng

Quoted 7 lines

i tried 10 times after patching the kernel with patch-matic, but getting the same error.

why

---------------------------------ERROR---------------------------------

Quoted 11 lines

scripts/Makefile.build:51: kbuild:
net/ipv4/netfilter/Makefile - Usage of export-objs is
obsolete in 2.6. Please fix!
CC [M]
net/ipv4/netfilter/ip_conntrack_standalone.o In file included from include/linux/netfilter_ipv4/ip_conntrack.h:157,
from
net/ipv4/netfilter/ip_conntrack_standalone.c:34:

include/linux/netfilter_ipv4/ip_conntrack_talk.h:7:43:

Quoted 13 lines

linux/netfilter_ipv4/lockhelp.h: No such file or directory
In file included from include/linux/netfilter_ipv4/ip_conntrack.h:157,
from
net/ipv4/netfilter/ip_conntrack_standalone.c:34:
include/linux/netfilter_ipv4/ip_conntrack_talk.h:10:
warning: type defaults to int' in declaration of DECLARE_LOCK_EXTERN' include/linux/netfilter_ipv4/ip_conntrack_talk.h:10:
warning: parameter names (without types) in function declaration include/linux/netfilter_ipv4/ip_conntrack_talk.h:10:

Quoted 9 lines

warning: data definition has no type or storage class
make[3]: *** [net/ipv4/netfilter/ip_conntrack_standalone.o] Error 1
make[2]: *** [net/ipv4/netfilter] Error 2 make[1]: *** [net/ipv4] Error 2
make: *** [net] Error 2

---------------------------------ERROR---------------------------------

Quoted 6 lines

Regards
Khan

Quoted 6 lines

__________________________________________
Yahoo! DSL – Something to write home about. Just $16.99/mo. or less.
dsl.yahoo.com

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

#2 lore raw

Hello Noman,

Friday, December 23, 2005, 9:56:34 AM, you wrote:

NL> [root@mail iptables-1.3.4]# iptables -A INPUT -p tcp NL> -m string --string "/bin/sh" -j DROP iptables v1.3.4:
NL> STRING match: You must specify `--algo'
NL> Try `iptables -h' or 'iptables --help' for more NL> information.

You can use --algo bm for Boyer-Moore algorithm, or --algo kmp for Knuth-Pratt-Morris algorithm.

Signature · 2 lines
Best regards,
 Oleg                            mailto:[email protected]
#3 lore raw
In reply to Noman Liaquat
Quoted 10 lines · Noman Liaquat

Operating system=REDHAT ENTERPRISE LINUX#ES
kernel= linux-2.6.14.4
iptables=iptables-1.3.2

i downloaded the patch-o-matic
svn co
https://svn.netfilter.org/netfilter/trunk/patch-o-matic-ng

i tried 10 times after patching the kernel with
patch-matic, but getting the same error.

[...]

Quoted 10 lines

---------------------------------ERROR--------------------------------- scripts/Makefile.build:51: kbuild:
net/ipv4/netfilter/Makefile - Usage of export-objs is obsolete in 2.6. Please fix!
CC [M] net/ipv4/netfilter/ip_conntrack_standalone.o
In file included from include/linux/netfilter_ipv4/ip_conntrack.h:157,
from
net/ipv4/netfilter/ip_conntrack_standalone.c:34:
include/linux/netfilter_ipv4/ip_conntrack_talk.h:7:43:

Do you really need the conntrack/nat helper for talk?

If not, simply do not apply the patch from pom-ng or do not select the helper when configuring the kernel.

The talk helper in pom-ng is a relic and hasn't been updated for a long time.

Best regards,
Jozsef
-
E-mail : [email protected], [email protected] PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : KFKI Research Institute for Particle and Nuclear Physics

          H-1525 Budapest 114, POB. 49, Hungary