Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 813993

Summary: net-firewall/ipt_netflow-2.6 - /.../ipt_NETFLOW.c: error: static declaration of sk_error_report follows non-static declaration
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Sergey Popov <pinkbyte>
Status: RESOLVED FIXED    
Severity: normal CC: kalin, netmon, sam
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/aabc/ipt-netflow/commit/66e4304101010108892376866334ec9317b427d8
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 811696    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tar.bz2
net-firewall:ipt_netflow-2.6:20210919-225835.log
temp.tar.bz2
patch per upstream commit 66e4304101010108892376866334ec9317b427d8

Description Toralf Förster gentoo-dev 2021-09-20 07:16:13 UTC
make[1]: Entering directory '/usr/src/linux-5.14.6-gentoo-dist'
  CC [M]  /var/tmp/portage/net-firewall/ipt_netflow-2.6/work/ipt_netflow-2.6/ipt_NETFLOW.o
/var/tmp/portage/net-firewall/ipt_netflow-2.6/work/ipt_netflow-2.6/ipt_NETFLOW.c:1946:13: error: static declaration of ‘sk_error_report’ follows non-static declaration
 1946 | static void sk_error_report(struct sock *sk)
      |             ^~~~~~~~~~~~~~~
In file included from ./include/net/inet_sock.h:22,
                 from ./include/linux/udp.h:16,

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1-j4-20210917-172407

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.2.0 *
/usr/lib/llvm/12
12.0.1
Python 3.9.7
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-1.55.0 *
The Glorious Glasgow Haskell Compilation System, version 8.10.4
  (none found)

  HEAD of ::gentoo
commit e5195c6a5269346b13da7b32c5eb34603e25677d
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Sep 19 22:06:27 2021 +0000

    2021-09-19 22:06:26 UTC

emerge -qpvO net-firewall/ipt_netflow
[ebuild  N    ] net-firewall/ipt_netflow-2.6  USE="-debug -dist-kernel -natevents -snmp"
Comment 1 Toralf Förster gentoo-dev 2021-09-20 07:16:14 UTC
Created attachment 740211 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-09-20 07:16:16 UTC
Created attachment 740214 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-09-20 07:16:17 UTC
Created attachment 740217 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-09-20 07:16:19 UTC
Created attachment 740220 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-09-20 07:16:20 UTC
Created attachment 740223 [details]
net-firewall:ipt_netflow-2.6:20210919-225835.log
Comment 6 Toralf Förster gentoo-dev 2021-09-20 07:16:21 UTC
Created attachment 740226 [details]
temp.tar.bz2
Comment 7 Kalin KOZHUHAROV 2021-10-23 08:36:42 UTC
Created attachment 746232 [details, diff]
patch per upstream commit 66e4304101010108892376866334ec9317b427d8

I recently saw that issue with sys-kernel/vanilla-sources-5.14.14 and managed to fix it with a custom patch (see attached) that was generated from the upstream repo by:
git format-patch -1 66e4304101010108892376866334ec9317b427d8

Here is it on github:
https://github.com/aabc/ipt-netflow/commit/66e4304101010108892376866334ec9317b427d8

(for non-devs, while this is in the working: put that patch in /etc/portage/patches/net-firewall/ipt_netflow-2.6/ and enable epatch_user per https://wiki.gentoo.org/wiki//etc/portage/patches )
Comment 8 Larry the Git Cow gentoo-dev 2021-12-16 22:37:07 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47dba6226b616c192fd3fb9d0f37ec2945498f60

commit 47dba6226b616c192fd3fb9d0f37ec2945498f60
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-12-16 22:36:56 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-12-16 22:37:00 +0000

    net-firewall/ipt_netflow: fix build with linux-headers-5.14
    
    Closes: https://bugs.gentoo.org/813993
    Signed-off-by: Sam James <sam@gentoo.org>

 .../ipt_netflow-2.6-fix-linux-headers-5.14.patch   | 29 ++++++++++++++++++++++
 net-firewall/ipt_netflow/ipt_netflow-2.6.ebuild    |  2 ++
 2 files changed, 31 insertions(+)