<html>
    <head>
      <base href="https://bugzilla.netfilter.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - iptables 1.8.0+ no longer builds against kernel 3.10.108"
   href="https://bugzilla.netfilter.org/show_bug.cgi?id=1291">1291</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>iptables 1.8.0+ no longer builds against kernel 3.10.108
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>iptables
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>arm
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>other
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P5
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>iptables
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>netfilter-buglog@lists.netfilter.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>netfilter@nmacleod.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Since commit 672accf153037c9d9b39f39381e9bc0f2df57c8c ("include: update kernel
netfilter header files"), iptables no longer builds against kernel 3.10.108.

Building with gcc-8.2.0, glibc-2.28; cross-compiling to arm on Ubuntu x86_64
(LibreELEC toolchain).

The build failure is[2]:

libtool: compile: 
/home/ubuntu/projects/LibreELEC.tv/build.LibreELEC-WeTek_Core.arm-9.0-devel/toolchain/bin/armv7a-libreelec-linux-gnueabi-gcc
-DHAVE_CONFIG_H -I.
-I/home/ubuntu/projects/LibreELEC.tv/build.LibreELEC-WeTek_Core.arm-9.0-devel/iptables-1.8.1/libiptc
-I.. -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT
-DXTABLES_LIBDIR=\"/usr/lib/xtables\" -DXTABLES_INTERNAL -I../include
-I/home/ubuntu/projects/LibreELEC.tv/build.LibreELEC-WeTek_Core.arm-9.0-devel/iptables-1.8.1/include
-I/home/ubuntu/projects/LibreELEC.tv/build.LibreELEC-WeTek_Core.arm-9.0-devel/linux-95ba9d626c0fce672caa296f5911ab9190881642/include/uapi
-I/home/ubuntu/projects/LibreELEC.tv/build.LibreELEC-WeTek_Core.arm-9.0-devel/linux-95ba9d626c0fce672caa296f5911ab9190881642/include
-I/home/ubuntu/projects/LibreELEC.tv/build.LibreELEC-WeTek_Core.arm-9.0-devel/linux-95ba9d626c0fce672caa296f5911ab9190881642/include/uapi
-I/home/ubuntu/projects/LibreELEC.tv/build.LibreELEC-WeTek_Core.arm-9.0-devel/linux-95ba9d626c0fce672caa296f5911ab9190881642/include
-Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes
-Wredundant-decls -Wshadow -Wstrict-prototypes -Wlogical-op -Winline -pipe
-march=armv7-a -mtune=cortex-a9 -mabi=aapcs-linux -Wno-psabi
-Wa,-mno-warn-deprecated -mcpu=cortex-a9 -mfloat-abi=hard -mfpu=neon-fp16
-fomit-frame-pointer -Wall -pipe -Os -MT libip6tc.lo -MD -MP -MF
.deps/libip6tc.Tpo -c
/home/ubuntu/projects/LibreELEC.tv/build.LibreELEC-WeTek_Core.arm-9.0-devel/iptables-1.8.1/libiptc/libip6tc.c
 -fPIC -DPIC -o .libs/libip6tc.o
In file included from
/home/ubuntu/projects/LibreELEC.tv/build.LibreELEC-WeTek_Core.arm-9.0-devel/toolchain/armv7a-libreelec-linux-gnueabi/sysroot/usr/include/netinet/ip.h:24,
                 from
/home/ubuntu/projects/LibreELEC.tv/build.LibreELEC-WeTek_Core.arm-9.0-devel/iptables-1.8.1/include/libiptc/ipt_kernel_headers.h:8,
                 from
/home/ubuntu/projects/LibreELEC.tv/build.LibreELEC-WeTek_Core.arm-9.0-devel/iptables-1.8.1/include/libiptc/libiptc.h:6,
                 from
/home/ubuntu/projects/LibreELEC.tv/build.LibreELEC-WeTek_Core.arm-9.0-devel/iptables-1.8.1/libiptc/libip4tc.c:29:
/home/ubuntu/projects/LibreELEC.tv/build.LibreELEC-WeTek_Core.arm-9.0-devel/linux-95ba9d626c0fce672caa296f5911ab9190881642/include/uapi/linux/in.h:26:3:
error: redeclaration of enumerator 'IPPROTO_IP'
   IPPROTO_IP = 0,  /* Dummy protocol for TCP  */
   ^~~~~~~~~~
/home/ubuntu/projects/LibreELEC.tv/build.LibreELEC-WeTek_Core.arm-9.0-devel/toolchain/armv7a-libreelec-linux-gnueabi/sysroot/usr/include/netinet/in.h:42:5:
note: previous definition of 'IPPROTO_IP' was here
     IPPROTO_IP = 0,    /* Dummy protocol for TCP.  */
     ^~~~~~~~~~
/home/ubuntu/projects/LibreELEC.tv/build.LibreELEC-WeTek_Core.arm-9.0-devel/linux-95ba9d626c0fce672caa296f5911ab9190881642/include/uapi/linux/in.h:28:3:
error: redeclaration of enumerator 'IPPROTO_ICMP'
   IPPROTO_ICMP = 1,  /* Internet Control Message Protocol */
   ^~~~~~~~~~~~
/home/ubuntu/projects/LibreELEC.tv/build.LibreELEC-WeTek_Core.arm-9.0-devel/toolchain/armv7a-libreelec-linux-gnueabi/sysroot/usr/include/netinet/in.h:44:5:
note: previous definition of 'IPPROTO_ICMP' was here
     IPPROTO_ICMP = 1,    /* Internet Control Message Protocol.  */
     ^~~~~~~~~~~~

etc.

Any thoughts, or is 1.8.0+ no longer compatible with older 3.x.y kernels?

Prior to this commmit, iptables does build successfully against 3.10.108.

Thanks
Neil

1.
<a href="https://git.netfilter.org/iptables/commit/?id=672accf153037c9d9b39f39381e9bc0f2df57c8c">https://git.netfilter.org/iptables/commit/?id=672accf153037c9d9b39f39381e9bc0f2df57c8c</a>
2. <a href="http://ix.io/1re0">http://ix.io/1re0</a></pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>