title: Package xtables was not found in the pkg-config search path
body: <p>I have downloaded <code>iproute2</code>. When I make <code>./configure &amp;&amp; make &amp;&amp; make install</code> I get these errors.</p>
  
  <pre><code>TC schedulers
   ATM    no
   IPT    Package xtables was not found in the pkg-config search path.
  Perhaps you should add the directory containing `xtables.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'xtables' found
  using iptables
   IPSET  yes
  
  iptables modules directory: /lib/xtables
  libc has setns: yes
  SELinux support: no
  ELF support: no
  libmnl support: no
  Berkeley DB: no
  
  docs: latex: no
   WARNING: no docs can be built from LaTeX files
   sgml2html: no
   WARNING: no HTML docs can be built from SGML
  
  make[1]: Entering directory `/home/mininet/iproute2-4.6.0/lib'
  make[1]: Nothing to be done for `all'.
  make[1]: Leaving directory `/home/mininet/iproute2-4.6.0/lib'
  make[1]: Entering directory `/home/mininet/iproute2-4.6.0/ip'
  make[1]: Nothing to be done for `all'.
  make[1]: Leaving directory `/home/mininet/iproute2-4.6.0/ip'
  make[1]: Entering directory `/home/mininet/iproute2-4.6.0/tc'    
  gcc -Wall -Wstrict-prototypes  -Wmissing-prototypes -Wmissing-declarations -Wold-style-definition -Wformat=2 -O2 -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib\" -DCONFDIR=\"/etc/iproute2\" -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE  -DHAVE_SETNS -DCONFIG_GACT -DCONFIG_GACT_PROB -DIPT_LIB_DIR=\"/lib/xtables\" -DYY_NO_INPUT   -c -o m_ipt.o m_ipt.c
      In file included from m_ipt.c:17:0:
      ../include/linux/if.h:106:19: error: redeclaration of enumerator ‘IFF_UP’
       #define IFF_UP    IFF_UP
                         ^
      ../include/linux/if.h:79:2: note: previous definition of ‘IFF_UP’ was here
        IFF_UP    = 1&lt;&lt;0,  /* sysfs */
        ^
      ../include/linux/if.h:107:25: error: redeclaration of enumerator ‘IFF_BROADCAST’
       #define IFF_BROADCAST   IFF_BROADCAST
                               ^
      ../include/linux/if.h:80:2: note: previous definition of ‘IFF_BROADCAST’ was here
        IFF_BROADCAST   = 1&lt;&lt;1,  /* __volatile__ */
        ^
      ../include/linux/if.h:108:21: error: redeclaration of enumerator ‘IFF_DEBUG’
       #define IFF_DEBUG   IFF_DEBUG
                           ^
      ../include/linux/if.h:81:2: note: previous definition of ‘IFF_DEBUG’ was here
        IFF_DEBUG   = 1&lt;&lt;2,  /* sysfs */
        ^
      ../include/linux/if.h:109:24: error: redeclaration of enumerator ‘IFF_LOOPBACK’
       #define IFF_LOOPBACK   IFF_LOOPBACK
                              ^
      ../include/linux/if.h:82:2: note: previous definition of ‘IFF_LOOPBACK’ was here
        IFF_LOOPBACK   = 1&lt;&lt;3,  /* __volatile__ */
        ^
      ../include/linux/if.h:110:27: error: redeclaration of enumerator ‘IFF_POINTOPOINT’
       #define IFF_POINTOPOINT   IFF_POINTOPOINT
                                 ^
      ../include/linux/if.h:83:2: note: previous definition of ‘IFF_POINTOPOINT’ was here
        IFF_POINTOPOINT   = 1&lt;&lt;4,  /* __volatile__ */
        ^
      ../include/linux/if.h:111:26: error: redeclaration of enumerator ‘IFF_NOTRAILERS’
       #define IFF_NOTRAILERS   IFF_NOTRAILERS
                                ^
      ../include/linux/if.h:84:2: note: previous definition of ‘IFF_NOTRAILERS’ was here
        IFF_NOTRAILERS   = 1&lt;&lt;5,  /* sysfs */
        ^
      ../include/linux/if.h:112:23: error: redeclaration of enumerator ‘IFF_RUNNING’
       #define IFF_RUNNING   IFF_RUNNING
                             ^
      ../include/linux/if.h:85:2: note: previous definition of ‘IFF_RUNNING’ was here
        IFF_RUNNING   = 1&lt;&lt;6,  /* __volatile__ */
        ^
      ../include/linux/if.h:113:21: error: redeclaration of enumerator ‘IFF_NOARP’
       #define IFF_NOARP   IFF_NOARP
                           ^
      ../include/linux/if.h:86:2: note: previous definition of ‘IFF_NOARP’ was here
        IFF_NOARP   = 1&lt;&lt;7,  /* sysfs */
        ^
      ../include/linux/if.h:114:23: error: redeclaration of enumerator ‘IFF_PROMISC’
       #define IFF_PROMISC   IFF_PROMISC
                             ^
      ../include/linux/if.h:87:2: note: previous definition of ‘IFF_PROMISC’ was here
        IFF_PROMISC   = 1&lt;&lt;8,  /* sysfs */
        ^
      ../include/linux/if.h:115:24: error: redeclaration of enumerator ‘IFF_ALLMULTI’
       #define IFF_ALLMULTI   IFF_ALLMULTI
                              ^
      ../include/linux/if.h:88:2: note: previous definition of ‘IFF_ALLMULTI’ was here
        IFF_ALLMULTI   = 1&lt;&lt;9,  /* sysfs */
        ^
      ../include/linux/if.h:116:22: error: redeclaration of enumerator ‘IFF_MASTER’
       #define IFF_MASTER   IFF_MASTER
                            ^
      ../include/linux/if.h:89:2: note: previous definition of ‘IFF_MASTER’ was here
        IFF_MASTER   = 1&lt;&lt;10, /* __volatile__ */
        ^
      ../include/linux/if.h:117:21: error: redeclaration of enumerator ‘IFF_SLAVE’
       #define IFF_SLAVE   IFF_SLAVE
                           ^
      ../include/linux/if.h:90:2: note: previous definition of ‘IFF_SLAVE’ was here
        IFF_SLAVE   = 1&lt;&lt;11, /* __volatile__ */
        ^
      ../include/linux/if.h:118:25: error: redeclaration of enumerator ‘IFF_MULTICAST’
       #define IFF_MULTICAST   IFF_MULTICAST
                               ^
      ../include/linux/if.h:91:2: note: previous definition of ‘IFF_MULTICAST’ was here
        IFF_MULTICAST   = 1&lt;&lt;12, /* sysfs */
        ^
      ../include/linux/if.h:119:23: error: redeclaration of enumerator ‘IFF_PORTSEL’
       #define IFF_PORTSEL   IFF_PORTSEL
                             ^
      ../include/linux/if.h:92:2: note: previous definition of ‘IFF_PORTSEL’ was here
        IFF_PORTSEL   = 1&lt;&lt;13, /* sysfs */
        ^
      ../include/linux/if.h:120:25: error: redeclaration of enumerator ‘IFF_AUTOMEDIA’
       #define IFF_AUTOMEDIA   IFF_AUTOMEDIA
                               ^
      ../include/linux/if.h:93:2: note: previous definition of ‘IFF_AUTOMEDIA’ was here
        IFF_AUTOMEDIA   = 1&lt;&lt;14, /* sysfs */
        ^
      ../include/linux/if.h:121:23: error: redeclaration of enumerator ‘IFF_DYNAMIC’
       #define IFF_DYNAMIC   IFF_DYNAMIC
                             ^
      ../include/linux/if.h:94:2: note: previous definition of ‘IFF_DYNAMIC’ was here
        IFF_DYNAMIC   = 1&lt;&lt;15, /* sysfs */
        ^
      In file included from ../include/xtables.h:16:0,
                       from ../include/iptables.h:5,
                       from m_ipt.c:18:
      /usr/include/net/if.h:111:8: error: redefinition of ‘struct ifmap’
       struct ifmap
              ^
      In file included from m_ipt.c:17:0:
      ../include/linux/if.h:189:8: note: originally defined here
       struct ifmap {
              ^
      In file included from ../include/xtables.h:16:0,
                       from ../include/iptables.h:5,
                       from m_ipt.c:18:
      /usr/include/net/if.h:126:8: error: redefinition of ‘struct ifreq’
       struct ifreq
              ^
      In file included from m_ipt.c:17:0:
      ../include/linux/if.h:226:8: note: originally defined here
       struct ifreq {
              ^
      In file included from ../include/xtables.h:16:0,
                       from ../include/iptables.h:5,
                       from m_ipt.c:18:
      /usr/include/net/if.h:176:8: error: redefinition of ‘struct ifconf’
       struct ifconf
              ^
      In file included from m_ipt.c:17:0:
      ../include/linux/if.h:278:8: note: originally defined here
       struct ifconf  {
              ^
      In file included from ../include/iptables.h:5:0,
                       from m_ipt.c:18:
      ../include/xtables.h:34:29: fatal error: xtables-version.h: No such file or directory
       #include &lt;xtables-version.h&gt;
                                   ^
      compilation terminated.
      make[1]: *** [m_ipt.o] Error 1
      make[1]: Leaving directory `/home/mininet/iproute2-4.6.0/tc'
      make: *** [all] Error 2
  </code></pre>
  
  <p>please help </p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I ended up updating the kernel and it work!</p>