All of lore.kernel.org
 help / color / mirror / Atom feed
* xt_CHAOS - PDE_DATA compilation error
@ 2014-03-16 15:53 M.G.
  2014-03-16 16:23 ` Mart Frauenlob
  0 siblings, 1 reply; 5+ messages in thread
From: M.G. @ 2014-03-16 15:53 UTC (permalink / raw)
  To: netfilter-devel

 
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 majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: xt_CHAOS - PDE_DATA compilation error
  2014-03-16 15:53 xt_CHAOS - PDE_DATA compilation error M.G.
@ 2014-03-16 16:23 ` Mart Frauenlob
  2014-03-16 18:01   ` M.G.
  0 siblings, 1 reply; 5+ messages in thread
From: Mart Frauenlob @ 2014-03-16 16:23 UTC (permalink / raw)
  To: M.G.; +Cc: netfilter-devel

On 16.03.2014 16:53, M.G. wrote:
>
> 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 ?

I think you can modify 'mconfig' to:

build_CHAOS=

so it won't be built.

Best regards

Mart

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: xt_CHAOS - PDE_DATA compilation error
  2014-03-16 16:23 ` Mart Frauenlob
@ 2014-03-16 18:01   ` M.G.
  2014-03-17 12:51     ` Jesper Dangaard Brouer
  0 siblings, 1 reply; 5+ messages in thread
From: M.G. @ 2014-03-16 18:01 UTC (permalink / raw)
  To: netfilter-devel






On Sunday, March 16, 2014 5:22 PM, Mart Frauenlob <mart.frauenlob@chello.at> wrote:
On 16.03.2014 16:53, M.G. wrote:
>
> 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 ?

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 majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: xt_CHAOS - PDE_DATA compilation error
  2014-03-16 18:01   ` M.G.
@ 2014-03-17 12:51     ` Jesper Dangaard Brouer
  2014-03-17 12:55       ` Jesper Dangaard Brouer
  0 siblings, 1 reply; 5+ messages in thread
From: Jesper Dangaard Brouer @ 2014-03-17 12:51 UTC (permalink / raw)
  To: M.G.; +Cc: brouer, netfilter-devel


On Sun, 16 Mar 2014 11:01:36 -0700 (PDT)"M.G." <mg887@yahoo.com> wrote:
> On Sunday, March 16, 2014 5:22 PM, Mart Frauenlob <mart.frauenlob@chello.at> wrote:
> On 16.03.2014 16:53, M.G. wrote:
> >
> > 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 ?

[...]
> 
> Yes you are right, but I have the same compilation errror in xt_geoip.c 
> Any 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

-- 
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 majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: xt_CHAOS - PDE_DATA compilation error
  2014-03-17 12:51     ` Jesper Dangaard Brouer
@ 2014-03-17 12:55       ` Jesper Dangaard Brouer
  0 siblings, 0 replies; 5+ messages in thread
From: Jesper Dangaard Brouer @ 2014-03-17 12:55 UTC (permalink / raw)
  To: Jesper Dangaard Brouer; +Cc: M.G., netfilter-devel

On Mon, 17 Mar 2014 13:51:26 +0100
Jesper Dangaard Brouer <brouer@redhat.com> wrote:

> 
> On Sun, 16 Mar 2014 11:01:36 -0700 (PDT)"M.G." <mg887@yahoo.com> wrote:
> > On Sunday, March 16, 2014 5:22 PM, Mart Frauenlob <mart.frauenlob@chello.at> wrote:
> > On 16.03.2014 16:53, M.G. wrote:
> > >
> > > 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 ?
> 
> [...]
> > 
> > Yes you are right, but I have the same compilation errror in xt_geoip.c 
> > Any 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

You might also need to look at commit:
 https://github.com/netoptimizer/IPTV-Analyzer/commit/b97e57fd9bf46 

-- 
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 majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-03-17 12:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-16 15:53 xt_CHAOS - PDE_DATA compilation error M.G.
2014-03-16 16:23 ` Mart Frauenlob
2014-03-16 18:01   ` M.G.
2014-03-17 12:51     ` Jesper Dangaard Brouer
2014-03-17 12:55       ` Jesper Dangaard Brouer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.