xt_CHAOS - PDE_DATA compilation error
Today at 1:49 PM
Hello Everyone,
in Centos 6 x64 with kernel 2.6.32-431.3.1.el6.centos.plus.x86_64 I have compilation error with conflicting types for PDE_DATA. How to fix it ?
Is it possible to exclude this xt_CHAOS module from compilation ?
make all-recursive
make[1]: Entering directory `/root/xtables-addons-2.4'
Making all in extensions
make[2]: Entering directory `/root/xtables-addons-2.4/extensions'
Xtables-addons 2.4 - Linux 2.6.32-431.5.1.el6.centos.plus.x86_64
if [ -n "/lib/modules/2.6.32-431.3.1.el6.centos.plus.x86_64/build" ]; then make -C /lib/modules/2.6.32-431.3.1.el6.centos.plus.x86_64/build M=/root/xtables-addons-2.4/extensions modules; fi; make[3]: Entering directory `/usr/src/kernels/2.6.32-431.5.1.el6.centos.plus.x86_64'
CC [M] /root/xtables-addons-2.4/extensions/xt_CHAOS.o
In file included from /root/xtables-addons-2.4/extensions/compat_xtables.h:7,
from /root/xtables-addons-2.4/extensions/xt_CHAOS.c:24:/root/xtables-addons-2.4/extensions/compat_xtnu.h:16: warning: âstruct xt_action_paramâ declared inside parameter list /root/xtables-addons-2.4/extensions/compat_xtnu.h:16: warning: its scope is only this definition or declaration, which is probably not what you want /root/xtables-addons-2.4/extensions/compat_xtnu.h:31: warning: âstruct xt_action_paramâ declared inside parameter list
In file included from /root/xtables-addons-2.4/extensions/xt_CHAOS.c:24:/root/xtables-addons-2.4/extensions/compat_xtables.h:12:3: warning: #warning Kernels below 3.7 not supported.
In file included from /root/xtables-addons-2.4/extensions/xt_CHAOS.c:24:/root/xtables-addons-2.4/extensions/compat_xtables.h:54: error: expected declaration specifiers or â...â before âkuid_tâ /root/xtables-addons-2.4/extensions/compat_xtables.h:54: error: expected declaration specifiers or â...â before âkgid_tâ /root/xtables-addons-2.4/extensions/compat_xtables.h: In function âproc_set_userâ:/root/xtables-addons-2.4/extensions/compat_xtables.h:56: error: âuidâ undeclared (first use in this function) /root/xtables-addons-2.4/extensions/compat_xtables.h:56: error: (Each undeclared identifier is reported only once /root/xtables-addons-2.4/extensions/compat_xtables.h:56: error: for each function it appears in.)/root/xtables-addons-2.4/extensions/compat_xtables.h:57: error: âgidâ undeclared (first use in this function) /root/xtables-addons-2.4/extensions/compat_xtables.h: At top level:/root/xtables-addons-2.4/extensions/compat_xtables.h:60: error: conflicting types for âPDE_DATAâinclude/linux/proc_fs.h:328: note: previous definition of âPDE_DATAâ was here/root/xtables-addons-2.4/extensions/xt_CHAOS.c:49: warning: âstruct xt_action_paramâ declared inside parameter list /root/xtables-addons-2.4/extensions/xt_CHAOS.c: In function âxt_chaos_totalâ:/root/xtables-addons-2.4/extensions/xt_CHAOS.c:51: error: dereferencing pointer to incomplete type/root/xtables-addons-2.4/extensions/xt_CHAOS.c:60: error: storage size of âlocal_parâ isnât known/root/xtables-addons-2.4/extensions/xt_CHAOS.c:61: error: dereferencing pointer to incomplete type/root/xtables-addons-2.4/extensions/xt_CHAOS.c:62: error: dereferencing pointer to incomplete type/root/xtables-addons-2.4/extensions/xt_CHAOS.c:62: warning: left-hand operand of comma expression has no effect /root/xtables-addons-2.4/extensions/xt_CHAOS.c:63: warning: left-hand operand of comma expression has no effect /root/xtables-addons-2.4/extensions/xt_CHAOS.c:60: warning: unused variable âlocal_parâ/root/xtables-addons-2.4/extensions/xt_CHAOS.c:76: error: storage size of âlocal_parâ isnât known/root/xtables-addons-2.4/extensions/xt_CHAOS.c:77: error: dereferencing pointer to incomplete type/root/xtables-addons-2.4/extensions/xt_CHAOS.c:78: error: dereferencing pointer to incomplete type/root/xtables-addons-2.4/extensions/xt_CHAOS.c:79: error: dereferencing pointer to incomplete type/root/xtables-addons-2.4/extensions/xt_CHAOS.c:81: error: dereferencing pointer to incomplete type/root/xtables-addons-2.4/extensions/xt_CHAOS.c:82: error: dereferencing pointer to incomplete type/root/xtables-addons-2.4/extensions/xt_CHAOS.c:76: warning: unused variable âlocal_parâ/root/xtables-addons-2.4/extensions/xt_CHAOS.c: At top level:/root/xtables-addons-2.4/extensions/xt_CHAOS.c:88: warning: âstruct xt_action_paramâ declared inside parameter list /root/xtables-addons-2.4/extensions/xt_CHAOS.c: In function âchaos_tgâ:/root/xtables-addons-2.4/extensions/xt_CHAOS.c:98: error: dereferencing pointer to incomplete type/root/xtables-addons-2.4/extensions/xt_CHAOS.c:102: error: storage size of âlocal_parâ isnât known/root/xtables-addons-2.4/extensions/xt_CHAOS.c:103: error: dereferencing pointer to incomplete type/root/xtables-addons-2.4/extensions/xt_CHAOS.c:104: error: dereferencing pointer to incomplete type/root/xtables-addons-2.4/extensions/xt_CHAOS.c:105: error: dereferencing pointer to incomplete type/root/xtables-addons-2.4/extensions/xt_CHAOS.c:102: warning: unused variable âlocal_parâ/root/xtables-addons-2.4/extensions/xt_CHAOS.c:114: error: dereferencing pointer to incomplete type/root/xtables-addons-2.4/extensions/xt_CHAOS.c:115: warning: passing argument 2 of âxt_chaos_totalâ from incompatible pointer type /root/xtables-addons-2.4/extensions/xt_CHAOS.c:49: note: expected âconst struct xt_action_param *â but argument is of type âconst struct xt_action_param *â /root/xtables-addons-2.4/extensions/xt_CHAOS.c: At top level:/root/xtables-addons-2.4/extensions/xt_CHAOS.c:145: warning: initialization from incompatible pointer type/root/xtables-addons-2.4/extensions/xt_CHAOS.c:146: warning: initialization from incompatible pointer type/root/xtables-addons-2.4/extensions/xt_CHAOS.c: In function âchaos_tg_initâ:/root/xtables-addons-2.4/extensions/xt_CHAOS.c:155: error: implicit declaration of function âxt_request_find_matchâ /root/xtables-addons-2.4/extensions/xt_CHAOS.c:155: warning: assignment makes pointer from integer without a cast
make[4]: *** [/root/xtables-addons-2.4/extensions/xt_CHAOS.o] Error 1
make[3]: *** [_module_/root/xtables-addons-2.4/extensions] Error 2
make[3]: Leaving directory `/usr/src/kernels/2.6.32-431.5.1.el6.centos.plus.x86_64'
make[2]: *** [modules] Error 2
make[2]: Leaving directory `/root/xtables-addons-2.4/extensions'
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 8 lines · M.G.
Today at 1:49 PM
Hello Everyone,in Centos 6 x64 with kernel 2.6.32-431.3.1.el6.centos.plus.x86_64 I have compilation error with conflicting types for
PDE_DATA. How to fix it ?
Is it possible to exclude thisxt_CHAOSmodule from compilation ?
I think you can modify 'mconfig' to:
build_CHAOS=
so it won't be built.
Best regards
Mart
On Sunday, March 16, 2014 5:22 PM, Mart Frauenlob <[email protected]> wrote:
Quoted 8 lines · M.G.
Today at 1:49 PM
Hello Everyone,in Centos 6 x64 with kernel 2.6.32-431.3.1.el6.centos.plus.x86_64 I have compilation error with conflicting types for
PDE_DATA. How to fix it ?
Is it possible to exclude thisxt_CHAOSmodule from compilation ?
I think you can modify 'mconfig' to:
build_CHAOS=
so it won't be built.
Yes you are right, but I have the same compilation errror in xt_geoip.c Any idea how to fix it ?
Best regards
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 5 lines · On Sun, 16 Mar 2014 11:01:36 -0700 (PDT)"M.G." <[email protected]> wrote:
On Sunday, March 16, 2014 5:22 PM, Mart Frauenlob <[email protected]> wrote:
Quoted 3 lines · M.G.
in Centos 6 x64 with kernel 2.6.32-431.3.1.el6.centos.plus.x86_64 I have compilation error with conflicting types for
PDE_DATA. How to fix it ?
[...]
Quoted 3 lines
Yes you are right, but I have the same compilation errror in
xt_geoip.cAny idea how to fix it ?
The PDE_DATA problem is related to /proc API changes.
You can fix it, by looking at how it was fixed in my iptv-analyzer project:
https://github.com/netoptimizer/IPTV-Analyzer/commit/afdfc7e45d8340
Signature · 9 lines
Best regards, Jesper Dangaard Brouer MSc.CS, Sr. Network Kernel Developer at Red Hat Author of http://www.iptv-analyzer.org LinkedIn: http://www.linkedin.com/in/brouer -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 10 lines · On Mon, 17 Mar 2014 13:51:26 +0100 Jesper Dangaard Brouer <[email protected]>…
Quoted 5 lines · On Sun, 16 Mar 2014 11:01:36 -0700 (PDT)"M.G." <[email protected]> wrote:
On Sunday, March 16, 2014 5:22 PM, Mart Frauenlob <[email protected]> wrote:
Quoted 3 lines · M.G.
in Centos 6 x64 with kernel 2.6.32-431.3.1.el6.centos.plus.x86_64 I have compilation error with conflicting types for
PDE_DATA. How to fix it ?[...]
Quoted 1 line
Quoted 7 lines
Quoted 2 lines
Yes you are right, but I have the same compilation errror in
xt_geoip.cAny idea how to fix it ?The
PDE_DATAproblem is related to /proc API changes.You can fix it, by looking at how it was fixed in my iptv-analyzer project:
https://github.com/netoptimizer/IPTV-Analyzer/commit/afdfc7e45d8340
You might also need to look at commit:
https://github.com/netoptimizer/IPTV-Analyzer/commit/b97e57fd9bf46
Signature · 9 lines
Best regards, Jesper Dangaard Brouer MSc.CS, Sr. Network Kernel Developer at Red Hat Author of http://www.iptv-analyzer.org LinkedIn: http://www.linkedin.com/in/brouer -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html