Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 535820 - net-firewall/ipt_netflow-2.0.1 with kernel 3.17 - .../work/ipt-netflow-2.0.1/ipt_NETFLOW.c:847:26: error: unknown type name ‘ctl_table’
Summary: net-firewall/ipt_netflow-2.0.1 with kernel 3.17 - .../work/ipt-netflow-2.0.1/...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sergey Popov
URL: http://sourceforge.net/p/ipt-netflow/...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: 535558
  Show dependency tree
 
Reported: 2015-01-06 20:10 UTC by Jeroen Roovers (RETIRED)
Modified: 2015-01-09 20:51 UTC (History)
1 user (show)

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


Attachments
net-firewall:ipt_netflow-2.0.1:20150106-200452.log (20150106-200452.log,9.49 KB, text/plain)
2015-01-06 20:10 UTC, Jeroen Roovers (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Roovers (RETIRED) gentoo-dev 2015-01-06 20:10:43 UTC
Created attachment 393368 [details]
net-firewall:ipt_netflow-2.0.1:20150106-200452.log

/home/jer/portage/net-firewall/ipt_netflow-2.0.1/work/ipt-netflow-2.0.1/ipt_NETFLOW.c:847:26: error: unknown type name ‘ctl_table’
 static int hsize_procctl(ctl_table *ctl, int write, BEFORE2632(struct file *filp,)
                          ^
/home/jer/portage/net-firewall/ipt_netflow-2.0.1/work/ipt-netflow-2.0.1/ipt_NETFLOW.c:865:27: error: unknown type name ‘ctl_table’
 static int sndbuf_procctl(ctl_table *ctl, int write, BEFORE2632(struct file *filp,)
                           ^
/home/jer/portage/net-firewall/ipt_netflow-2.0.1/work/ipt-netflow-2.0.1/ipt_NETFLOW.c:898:32: error: unknown type name ‘ctl_table’
 static int destination_procctl(ctl_table *ctl, int write, BEFORE2632(struct file *filp,)
                                ^
/home/jer/portage/net-firewall/ipt_netflow-2.0.1/work/ipt-netflow-2.0.1/ipt_NETFLOW.c:914:32: error: unknown type name ‘ctl_table’
 static int aggregation_procctl(ctl_table *ctl, int write, BEFORE2632(struct file *filp,)
                                ^
/home/jer/portage/net-firewall/ipt_netflow-2.0.1/work/ipt-netflow-2.0.1/ipt_NETFLOW.c:944:26: error: unknown type name ‘ctl_table’
 static int flush_procctl(ctl_table *ctl, int write, BEFORE2632(struct file *filp,)
                          ^
/home/jer/portage/net-firewall/ipt_netflow-2.0.1/work/ipt-netflow-2.0.1/ipt_NETFLOW.c:966:29: error: unknown type name ‘ctl_table’
 static int protocol_procctl(ctl_table *ctl, int write, BEFORE2632(struct file *filp,)
                             ^
/home/jer/portage/net-firewall/ipt_netflow-2.0.1/work/ipt-netflow-2.0.1/ipt_NETFLOW.c:1057:20: error: ‘hsize_procctl’ undeclared here (not in a function)
   .proc_handler = &hsize_procctl,
                    ^
/home/jer/portage/net-firewall/ipt_netflow-2.0.1/work/ipt-netflow-2.0.1/ipt_NETFLOW.c:1064:20: error: ‘sndbuf_procctl’ undeclared here (not in a function)
   .proc_handler = &sndbuf_procctl,
                    ^
/home/jer/portage/net-firewall/ipt_netflow-2.0.1/work/ipt-netflow-2.0.1/ipt_NETFLOW.c:1072:20: error: ‘destination_procctl’ undeclared here (not in a function)
   .proc_handler = &destination_procctl,
                    ^
/home/jer/portage/net-firewall/ipt_netflow-2.0.1/work/ipt-netflow-2.0.1/ipt_NETFLOW.c:1081:20: error: ‘aggregation_procctl’ undeclared here (not in a function)
   .proc_handler = &aggregation_procctl,
                    ^
/home/jer/portage/net-firewall/ipt_netflow-2.0.1/work/ipt-netflow-2.0.1/ipt_NETFLOW.c:1097:20: error: ‘flush_procctl’ undeclared here (not in a function)
   .proc_handler = &flush_procctl,
                    ^
/home/jer/portage/net-firewall/ipt_netflow-2.0.1/work/ipt-netflow-2.0.1/ipt_NETFLOW.c:1104:20: error: ‘protocol_procctl’ undeclared here (not in a function)
   .proc_handler = &protocol_procctl,
                    ^
/home/jer/portage/net-firewall/ipt_netflow-2.0.1/work/ipt-netflow-2.0.1/ipt_NETFLOW.c:1620:12: warning: ‘set_hashsize’ defined but not used [-Wunused-function]
Comment 1 Sergey Popov gentoo-dev 2015-01-09 20:37:27 UTC
+  09 Jan 2015; Sergey Popov <pinkbyte@gentoo.org> -ipt_netflow-2.0-r1.ebuild,
+  ipt_netflow-2.0.1.ebuild:
+  Add version check for kernel sources to prevent building on unsupported
+  kernels, drop old

Unfortunately backporting is not so easy, i will add snapshot ebuild later instead. Author plans to make a release in a short time.

Good news is that new snapshot will not need hardened patch - it went upstream
Comment 2 Sergey Popov gentoo-dev 2015-01-09 20:51:08 UTC
+*ipt_netflow-2.0.1_p20150109 (09 Jan 2015)
+
+  09 Jan 2015; Sergey Popov <pinkbyte@gentoo.org>
+  +ipt_netflow-2.0.1_p20150109.ebuild:
+  Version bump: add git snapshot that runs correctly on recent kernels, wrt bug
+  #535820