[prev in list] [next in list] [prev in thread] [next in thread]
List: netfilter
Subject: ip6tables bug, again
From: Thiago Macieira <thiagom () mail ! com>
Date: 2001-03-18 23:01:06
[Download RAW message or body]
I am reporting the same bug I reported several months ago, for iptables
1.1.1.
When compiling iptables/ip6tables with BINDIR, LIBDIR, etc. variables
set to anything else than /usr/local/..., ip6tables doesn't work. For
instance, a simple command like:
ip6tables -A FORWARD -j ACCEPT
doesn't work.
I have been able to trace the problem down to the fact that IP6T_LIB_DIR
not being defined in the source code when compiling ip6tables, so it
defines the default /usr/local/lib/iptables. That means that when
installing the extension modules in, for instance, /usr/lib/iptables,
the ip6tables program will break because it can't find them.
The solution is quite simple, actually. In the top level Makefile, the
ip6tables compilation command-line defines IPT_LIB_DIR, when it should
define IP6T_LIB_DIR. That solves the problem.
Here's the patch:
diff -ur iptables-1.1.1/Makefile iptables-1.1.1-2/Makefile
--- iptables-1.1.1/Makefile Fri Jul 14 04:46:42 2000
+++ iptables-1.1.1-2/Makefile Sat Sep 23 21:35:39 2000
@@ -64,10 +64,10 @@
cp $< $@
ip6tables.o: ip6tables.c
- $(CC) $(CFLAGS) -DIPT_LIB_DIR=\"$(IPT_LIBDIR)\" -c -o $@ $<
+ $(CC) $(CFLAGS) -DIP6T_LIB_DIR=\"$(IPT_LIBDIR)\" -c -o $@ $<
ip6tables: ip6tables-standalone.c ip6tables.o libiptc/libiptc.a
- $(CC) $(CFLAGS) -DIPT_LIB_DIR=\"$(IPT_LIBDIR)\" -rdynamic -o $@
$^ -ldl
+ $(CC) $(CFLAGS) -DIP6T_LIB_DIR=\"$(IPT_LIBDIR)\" -rdynamic -o $@
$^ -ldl
$(DESTDIR)$(BINDIR)/ip6tables: ip6tables
@[ -d $(DESTDIR)$(BINDIR) ] || mkdir -p $(DESTDIR)$(BINDIR)
--
Thiago Macieira - UFOT Registry number: 1001
thiagom@mail.com talha@geocities.com
ICQ UIN: 1967141 PGP: 0x8F2978D5 and 0xEA9037A5
Registered Linux user #65028
54/388. Let's make sure history never forgets the name Enterprise. --
Capt. Picard, "Yesterday's Enterprise"
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic