[PATCH] fix compilation of xtables 1.37

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

the attached patch fixes compilation of xtables 1.37.

My scenario is:

1) xtables.h is in /usr/local/iptables/include
2) configure was done as:
     export PKG_CONFIG_PATH=/usr/local/iptables/lib/pkgconfig
     ./configure --with-xtlibdir=/usr/local/iptables/libexec/xtables

The error was:

libxt_ACCOUNT.c:13:21: warning: xtables.h: No such file or directory


HTH
cheers,
Frank Reppin

--
43rd Law of Computing:
        Anything that can go wr
fortune: Segmentation violation -- Core dumped
diff -Naur xtables-addons-1.37.dist/extensions/ACCOUNT/Makefile.in xtables-addons-1.37/extensions/ACCOUNT/Makefile.in
--- xtables-addons-1.37.dist/extensions/ACCOUNT/Makefile.in	2011-06-25 11:24:37.000000000 +0200
+++ xtables-addons-1.37/extensions/ACCOUNT/Makefile.in	2011-08-08 00:43:21.000000000 +0200
@@ -247,7 +247,7 @@
 top_srcdir = @top_srcdir@
 xtlibdir = @xtlibdir@
 AM_CPPFLAGS = ${regular_CPPFLAGS} -I${abs_top_srcdir}/extensions
-AM_CFLAGS = ${regular_CFLAGS}
+AM_CFLAGS = ${regular_CFLAGS} ${libxtables_CFLAGS}
 XA_SRCDIR = ${srcdir}
 XA_TOPSRCDIR = ${top_srcdir}
 XA_ABSTOPSRCDIR = ${abs_top_srcdir}
diff -Naur xtables-addons-1.37.dist/extensions/pknock/Makefile.in xtables-addons-1.37/extensions/pknock/Makefile.in
--- xtables-addons-1.37.dist/extensions/pknock/Makefile.in	2011-06-25 11:24:37.000000000 +0200
+++ xtables-addons-1.37/extensions/pknock/Makefile.in	2011-08-08 00:44:03.000000000 +0200
@@ -216,7 +216,7 @@
 top_srcdir = @top_srcdir@
 xtlibdir = @xtlibdir@
 AM_CPPFLAGS = ${regular_CPPFLAGS} -I${abs_top_srcdir}/extensions
-AM_CFLAGS = ${regular_CFLAGS}
+AM_CFLAGS = ${regular_CFLAGS} ${libxtables_CFLAGS}
 XA_SRCDIR = ${srcdir}
 XA_TOPSRCDIR = ${top_srcdir}
 XA_ABSTOPSRCDIR = ${abs_top_srcdir}

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux