Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 632110 - net-firewall/xtables-addons-2.8 fails compile w/ kernel 4.9 + gcc 5.4.0 : xt_DELUDE.c:124:25: error: passing argument 1 of ‘ip_route_me_harder’ from incompatible pointer type [-Werror=incompatible-pointer-types]
Summary: net-firewall/xtables-addons-2.8 fails compile w/ kernel 4.9 + gcc 5.4.0 : xt_...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-26 22:15 UTC by Kent Fredric (IRC: kent\n) (RETIRED)
Modified: 2017-10-02 21:17 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (xtables-addons-2.8:20170926-205651.log,44.45 KB, text/plain)
2017-09-26 22:15 UTC, Kent Fredric (IRC: kent\n) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2017-09-26 22:15:18 UTC
Created attachment 496616 [details]
build.log

/var/tmp/portage/net-firewall/xtables-addons-2.8/work/xtables-addons-2.8/extensions/xt_DELUDE.c: In function ‘delude_send_reset’:
/var/tmp/portage/net-firewall/xtables-addons-2.8/work/xtables-addons-2.8/extensions/xt_DELUDE.c:124:25: error: passing argument 1 of ‘ip_route_me_harde
r’ from incompatible pointer type [-Werror=incompatible-pointer-types]                                                       
  if (ip_route_me_harder(nskb, addr_type))                       
                         ^                                                                           
In file included from /usr/src/linux-4.9.6-gentoo-r1/include/linux/netfilter/x_tables.h:214:0,
                 from /var/tmp/portage/net-firewall/xtables-addons-2.8/work/xtables-addons-2.8/extensions/xt_DELUDE.c:20:
/usr/src/linux-4.9.6-gentoo-r1/include/linux/netfilter_ipv4.h:9:5: note: expected ‘struct net *’ but argument is of type ‘struct sk_buff *’
 int ip_route_me_harder(struct net *net, struct sk_buff *skb, unsigned addr_type);
     ^                                                  
/var/tmp/portage/net-firewall/xtables-addons-2.8/work/xtables-addons-2.8/extensions/xt_DELUDE.c:124:31: warning: passing argument 2 of ‘ip_route_me_har
der’ makes pointer from integer without a cast [-Wint-conversion]                                                                                      
  if (ip_route_me_harder(nskb, addr_type))                            



Portage 2.3.6 (python 2.7.12-final-0, default/linux/amd64/13.0/no-multilib, gcc-5.4.0, glibc-2.23-r4, 4.9.6-gentoo-r1 x86_64)
=================================================================
System uname: Linux-4.9.6-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E6750_@_2.66GHz-with-gentoo-2.3
KiB Mem:     2042732 total,    933816 free
KiB Swap:   18588764 total,  18388536 free
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.28.1 p1.0) 2.28.1
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.26.1::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.7.2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.31.2::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.28.1::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r4::gentoo
Comment 1 Anthony Basile gentoo-dev 2017-09-26 22:25:50 UTC
Can you try out xtables-addons-2.13.  It looks like a kernel header may have changed and 2.8 is pretty old now.
Comment 2 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2017-09-27 06:18:03 UTC
Yep. 2.13 builds fine :).

Just happened to stumble into the breakage while doing regression testing for perl.

I also noted while I was there that xtables-addons-1.47 needs kernel <3.9 , and there's not a lot of those left in tree:

 sys-kernel/vanilla-sources-3.2.93
 sys-kernel/tuxonice-sources-3.4.{110,111,112}
 sys-kernel/xbox-sources-2.6.16.26
 sys-kernel/zen-sources-3.8.9999
Comment 3 Anthony Basile gentoo-dev 2017-10-02 21:17:26 UTC
(In reply to Kent Fredric (IRC: kent\n) from comment #2)
> Yep. 2.13 builds fine :).
> 
> Just happened to stumble into the breakage while doing regression testing
> for perl.
> 
> I also noted while I was there that xtables-addons-1.47 needs kernel <3.9 ,
> and there's not a lot of those left in tree:
> 
>  sys-kernel/vanilla-sources-3.2.93
>  sys-kernel/tuxonice-sources-3.4.{110,111,112}
>  sys-kernel/xbox-sources-2.6.16.26
>  sys-kernel/zen-sources-3.8.9999

oaky i've stabilized 2.13 and removed the older versions.