netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* xtables-addons compile error (DNETMAP)
@ 2013-04-18 22:36 Dash Four
  2013-04-19 15:22 ` Dash Four
  0 siblings, 1 reply; 2+ messages in thread
From: Dash Four @ 2013-04-18 22:36 UTC (permalink / raw)
  To: Netfilter Developer Mailing List

During build I get the following error:

xt_DNETMAP.c: In function 'dnetmap_tg_check':
xt_DNETMAP.c:331: error: incompatible types when assigning to type 
'kuid_t' from type 'unsigned int'
xt_DNETMAP.c:332: error: incompatible types when assigning to type 
'kgid_t' from type 'unsigned int'
xt_DNETMAP.c:344: error: incompatible types when assigning to type 
'kuid_t' from type 'unsigned int'
xt_DNETMAP.c:345: error: incompatible types when assigning to type 
'kgid_t' from type 'unsigned int'

The target kernel is 3.8.7. Any idea what could cause this?

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

* Re: xtables-addons compile error (DNETMAP)
  2013-04-18 22:36 xtables-addons compile error (DNETMAP) Dash Four
@ 2013-04-19 15:22 ` Dash Four
  0 siblings, 0 replies; 2+ messages in thread
From: Dash Four @ 2013-04-19 15:22 UTC (permalink / raw)
  To: Netfilter Developer Mailing List; +Cc: Jan Engelhardt



Dash Four wrote:
> During build I get the following error:
>
> xt_DNETMAP.c: In function 'dnetmap_tg_check':
> xt_DNETMAP.c:331: error: incompatible types when assigning to type 
> 'kuid_t' from type 'unsigned int'
> xt_DNETMAP.c:332: error: incompatible types when assigning to type 
> 'kgid_t' from type 'unsigned int'
> xt_DNETMAP.c:344: error: incompatible types when assigning to type 
> 'kuid_t' from type 'unsigned int'
> xt_DNETMAP.c:345: error: incompatible types when assigning to type 
> 'kgid_t' from type 'unsigned int'
>
> The target kernel is 3.8.7. Any idea what could cause this?
The above error (and this is not confined to just DNETMAP) seems to be 
caused by CONFIG_UIDGID_STRICT_TYPE_CHECKS. When this is set, together 
with CONFIG_PROC_FS also being enabled in the kernel, the uid and gid 
fields of proc_dir_entry (proc_fs.h) are no longer "unsigned int", but a 
struct types, so they should be accessed/set with uid.val and gid.val 
instead - at least that is how I managed to get it work. I'll attach a 
patch if there is interest in fixing this bug - just let me know.

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

end of thread, other threads:[~2013-04-19 15:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-18 22:36 xtables-addons compile error (DNETMAP) Dash Four
2013-04-19 15:22 ` Dash Four

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).