<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 - Compilation failure on Linux 4.5.x when including libiptc/libiptc.h"
   href="https://bugzilla.netfilter.org/show_bug.cgi?id=1067">1067</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Compilation failure on Linux 4.5.x when including libiptc/libiptc.h
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>1.4.x
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86_64
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>enhancement
          </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>quentin@armitage.org.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Including <libiptc/libiptc.h> causes a compilation failure with multiple
messages like:

In file included from /usr/include/linux/netfilter_ipv4/ip_tables.h:20:0,
                 from /usr/include/libiptc/libiptc.h:12,
                 from /tmp/inc.c:1:
/usr/include/linux/if.h:71:2: error: redeclaration of enumerator ‘IFF_UP’
In file included from /usr/include/libiptc/ipt_kernel_headers.h:14:0,
                 from /usr/include/libiptc/libiptc.h:6,
                 from /tmp/inc.c:1:
/usr/include/net/if.h:44:5: note: previous definition of ‘IFF_UP’ was here

Kernel patch 1ffad83dffd675cd742286ae82dca7d746cb0da8 appears to have caused
the problem, by including <linux/if.h>, which has multiple namespace collisions
with <net/if.h>.

<libiptc/libiptc.h> includes <libiptc/ipt_kernel_headers.h> and also
<linux/netfilter_ipv4/ip_tables.h>.

<libiptc/ipt_kernel_headers.h> includes <net/if.h>, and since the above kernel
patch, <linux/netfilter_ipv4/ip_tables.h> includes <linux.if.h>.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>