<div dir="ltr">I was trying to disable IPv6 support when compiling <span>OpenWrt</span> for <span>TP</span>-Link <span>tl</span>-wr3040 router and got some errors compiling the <span>iptables</span> package.<div><br></div><div>It seems that <span>iptables</span> package cannot be compiled if IPv6 support was disabled.</div><div><br></div><div>Checking the <span>Makefile</span> for <span>iptables</span> package I think I found something wrong with the "--disable-ipv6" configure argument option.</div><div><br></div><div>The patch that follows solved the problem.</div><div><br></div><div>Signed-off-by: <span>Ronaldo</span> <span>Afonso</span> <<a href="mailto:ronaldo@ronaldoafonso.com.br" target="_blank"><span>ronaldo</span>@<span>ronaldoafonso</span>.com.<span>br</span></a>></div><div><br></div><div><div>diff --git a/package/network/<span>utils</span>/<span>iptables</span>/<span>Makefile</span> b/package/network/<span>utils</span>/<span>iptables</span>/<span>Makefile</span></div><div>index 6f7529c..4e2c4c8 100644</div><div>--- a/package/network/<span>utils</span>/<span>iptables</span>/<span>Makefile</span></div><div>+++ b/package/network/<span>utils</span>/<span>iptables</span>/<span>Makefile</span></div><div>@@ -434,8 +434,11 @@ CONFIGURE_<span>ARGS</span> += \</div><div>        --enable-<span>devel</span> \</div><div>        --with-kernel="$(LINUX_DIR)/user_headers" \</div><div>        --with-<span>xtlibdir</span>=/<span>usr</span>/lib/<span>iptables</span> \</div><div>-       --enable-static \</div><div>-       $(if $(<span>CONFIG</span>_IPV6),,--disable-ipv6)</div><div>+       --enable-static</div><div>+</div><div>+<span>ifndef</span> ($(<span>CONFIG</span>_IPV6))</div><div>+       CONFIGURE_<span>ARGS</span> += --disable-ipv6</div><div>+<span>endif</span></div><div> </div><div> MAKE_FLAGS := \</div><div>        $(TARGET_CONFIGURE_OPTS) \</div></div><div><div><div dir="ltr"></div></div>
</div></div>