compiling ip_set_iptree.o
Subsystems (2)
Compiling ip_set_iptree.o as module get this error :-
CC [M] net/ipv4/netfilter/ip_set_iptree.onet/ipv4/netfilter/ip_set_iptree.c:123: error: parse error before "flags" net/ipv4/netfilter/ip_set_iptree.c:124: warning: function declaration isn't a prototype net/ipv4/netfilter/ip_set_iptree.c: In function `__addip':net/ipv4/netfilter/ip_set_iptree.c:125: error: `set' undeclared (first use in this function) net/ipv4/netfilter/ip_set_iptree.c:125: error: (Each undeclared identifier is reported only once net/ipv4/netfilter/ip_set_iptree.c:125: error: for each function it appears in.) net/ipv4/netfilter/ip_set_iptree.c:132: error: hash_ip' undeclared (first use in this function) net/ipv4/netfilter/ip_set_iptree.c:132: error: ip' undeclared (first use in this function) net/ipv4/netfilter/ip_set_iptree.c:135: error: flags' undeclared (first use in this function) net/ipv4/netfilter/ip_set_iptree.c:141: error: timeout' undeclared (first use in this function) make[4]: *** [net/ipv4/netfilter/ip_set_iptree.o] Error 1
Regards.
Quoted 6 lines · Ming-Ching Tiew
Compiling ip_set_iptree.o as module get this error :-
CC [M]
net/ipv4/netfilter/ip_set_iptree.onet/ipv4/netfilter/ip_set_iptree.c:123: error: parse error before "flags"net/ipv4/netfilter/ip_set_iptree.c:124: warning: function declaration isn't a prototypenet/ipv4/netfilter/ip_set_iptree.c: In function `__addip':
Could you be a little be more specific? What is the kernel version, patch-o-matic-ng version (if downloaded from ipset.netfilter.org), ipset version, gcc version?
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
From: "Jozsef Kadlecsik" <[email protected]>
Quoted 5 lines
Could you be a little be more specific? What is the kernel version, patch-o-matic-ng version (if downloaded from ipset.netfilter.org), ipset version, gcc version?
I tried with patch-o-matic-ng-20051016 and patch-o-matic-ng-20051013 as well. Both the same. Kernel 2.6.11.12 and ipset 2.2.5-2005103 ( but I have no problems compiling the user space program ), gcc 3.4.3.
Turning off ip_set_iptree will finally allowed me to get a successful compilation.
I have not been having luck with newer kernels because it will hit other errors first before reaching compilation of ipset.
Cheers.
Quoted 6 lines · Ming-Ching Tiew
Compiling ip_set_iptree.o as module get this error :-
CC [M]
net/ipv4/netfilter/ip_set_iptree.onet/ipv4/netfilter/ip_set_iptree.c:123: error: parse error before "flags"net/ipv4/netfilter/ip_set_iptree.c:124: warning: function declaration isn't a prototypenet/ipv4/netfilter/ip_set_iptree.c: In function `__addip':
That's due to a backward compatibility issue - I tested the code on 2.6.12.x and - as you wrote - you try to use ipset on 2.6.11.x. Please use the attached patch which takes care of it.
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
net/ipv4/netfilter/ip_set_iptree.c +5 -0
@@ -19,6 +19,11 @@#include <asm/bitops.h> #include <linux/spinlock.h> +/* Backward compatibility */ +#ifndef __nocast +#define __nocast +#endif +#include <linux/netfilter_ipv4/ip_set_iptree.h> /* Garbage collection interval in seconds: */
Re: compiling ip_set_iptree.o ( and other netfiler patches )
From: "Jozsef Kadlecsik" <[email protected]>
Quoted 5 lines
That's due to a backward compatibility issue - I tested the code on 2.6.12.x and - as you wrote - you try to use ipset on 2.6.11.x. Please use the attached patch which takes care of it.
As it turns out, I tried with kernel 2.6.12.6, gcc 3.4.3, it is the smoothest compile of all, the (edited ) messsages I got are :-
CC [M] net/ipv4/netfilter/ip_nat_sip.onet/ipv4/netfilter/ip_nat_sip.c: In function `ip_nat_sip':net/ipv4/netfilter/ip_nat_sip.c:99: warning: ISO C90 forbids mixed declarations and code
CC [M] net/ipv4/netfilter/ip_conntrack_h323_core.o CC [M] net/ipv4/netfilter/ip_conntrack_h323_h225.o CC [M] net/ipv4/netfilter/ip_conntrack_h323_h245.o CC [M] net/ipv4/netfilter/ip_nat_h323.o CC [M] net/ipv4/netfilter/ip_conntrack_proto_gre.o CC [M] net/ipv4/netfilter/ip_nat_proto_gre.o CC [M] net/ipv4/netfilter/ip_conntrack_proto_sctp.o CC [M] net/ipv4/netfilter/ip_conntrack_quake3.o CC [M] net/ipv4/netfilter/ip_conntrack_pptp.o
net/ipv4/netfilter/ip_conntrack_pptp.c: In function `timeout_ct_or_exp':net/ipv4/netfilter/ip_conntrack_pptp.c:159: warning: implicit declaration of
ction `__ip_conntrack_expect_find'net/ipv4/netfilter/ip_conntrack_pptp.c:159: warning: assignment makes pointe
om integer without a cast
CC [M] net/ipv4/netfilter/ip_nat_pptp.o
......
CC [M] net/ipv4/netfilter/ip_set.onet/ipv4/netfilter/ip_set.c: In function `ip_set_sockfn_get':net/ipv4/netfilter/ip_set.c:1906: warning: ignoring return value of `copy_to_user', declared with attribute warn_unused_result
CC [M] net/ipv4/netfilter/ip_set_ipmap.o CC [M] net/ipv4/netfilter/ip_set_portmap.o CC [M] net/ipv4/netfilter/ip_set_macipmap.o CC [M] net/ipv4/netfilter/ip_set_iphash.o CC [M] net/ipv4/netfilter/ip_set_nethash.o CC [M] net/ipv4/netfilter/ip_set_ipporthash.o CC [M] net/ipv4/netfilter/ip_set_iptree.o LD [M] net/ipv4/netfilter/ip_conntrack_h323.o
So conclusion is 2.6.11.x and 2.6.13.x are no good with respect to patch-o-matic-ng !
Cheers.
Re: compiling ip_set_iptree.o ( and other netfiler patches )
From: "Ming-Ching Tiew" <[email protected]>
Quoted 7 lines
CC [M]
net/ipv4/netfilter/ip_conntrack_pptp.onet/ipv4/netfilter/ip_conntrack_pptp.c: In function `timeout_ct_or_exp':net/ipv4/netfilter/ip_conntrack_pptp.c:159: warning: implicit declaration of ction `__ip_conntrack_expect_find'net/ipv4/netfilter/ip_conntrack_pptp.c:159: warning: assignment makes pointe om integer without a cast
This **notorious** ip_conntrack_pptp module failed to link due to unresolved symbol,
__ip_conntrack_expect_find,
there is a history of it in the maillist. I looked all over and I finally changed all references ( actually there is only one reference ) to :-
__ip_conntrack_exp_find
It happily linked now. Is this the right fix ?
Cheers.