Description of problem: The following code fails: #include <libiptc/libiptc.h> void main() { } ruben@wodan: iptables-test$ gcc test.c In file included from /usr/include/netinet/ip.h:24:0, from /usr/include/libiptc/ipt_kernel_headers.h:9, from /usr/include/libiptc/libiptc.h:6, from test.c:1: /usr/include/linux/in.h:26:3: error: redeclaration of enumerator ‘IPPROTO_IP’ IPPROTO_IP = 0, /* Dummy protocol for TCP */ ^ /usr/include/netinet/in.h:42:5: note: previous definition of ‘IPPROTO_IP’ was here IPPROTO_IP = 0, /* Dummy protocol for TCP. */ ^ and lots more. It seems that both the glibc headers and the kernel headers are included by libiptc.h, and they both define IPPROTO_IP and co. Version-Release number of selected component (if applicable): ruben@wodan: ~$ rpm -q iptables iptables-1.4.21-15.fc23.x86_64 ruben@wodan: ~$ uname -r 4.2.0-0.rc0.git4.1.fc23.x86_64 This breaks collectd's iptables plugin.
This happens when upgrading kernel-headers from 4.1.0-1.fc23 to 4.2.0-0.rc0.git1.1.fc23.
This bug appears to have been reported against 'rawhide' during the Fedora 23 development cycle. Changing version to '23'. (As we did not run this process for some time, it could affect also pre-Fedora 23 development cycle bugs. We are very sorry. It will help us with cleanup during Fedora 23 End Of Life. Thank you.) More information and reason for this action is here: https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora23
This bug appears to have been reported against 'rawhide' during the Fedora 24 development cycle. Changing version to '24'. More information and reason for this action is here: https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora24#Rawhide_Rebase
This has been fixed in kernel headers and is not an issue anymore.
Are you sure? # rpm -q iptables-devel kernel-headers iptables-devel-1.6.0-1.fc25.x86_64 kernel-headers-4.6.0-0.rc3.git0.1.fc25.x86_64 # printf '#include <libiptc/libiptc.h>\n' | gcc -c -x c - In file included from /usr/include/libiptc/ipt_kernel_headers.h:13:0, from /usr/include/libiptc/libiptc.h:6, from <stdin>:1: /usr/include/linux/if.h:71:2: error: redeclaration of enumerator ‘IFF_UP’ IFF_UP = 1<<0, /* sysfs */ ^
Oups, this is an issue in F25, still. I am sorry for closing.
Reassigning to kernel. See #1300256.
(In reply to Thomas Woerner from comment #7) > Reassigning to kernel. See #1300256. A duplicate now?
Since https://bugzilla.redhat.com/show_bug.cgi?id=1300256, which is actually a duplicate of this bug, has been fixed, let's close this too.