Skip to contentSkip to conversation

CONFIG_IP_NF_IPTABLES=m breaks 2.6 BK compile

DISCUSSION Applied Matthias Andree 3 participants 4 messages Oct 27, 2003

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi,

there is a configuration problem in the current BK kernel. With CONFIG_IP_NF_IPTABLES=m, I'm getting these errors:

net/built-in.o(.init.text+0x248e): In function `init':
: undefined reference to ipt_register_match' net/built-in.o(.exit.text+0x1ae): In function fini':
: undefined reference to `ipt_unregister_match'

These go away with CONFIG_IP_NF_IPTABLES=y.

.config file at
http://mandree.home.pages.de/linux-2.6-BK-config
(MD5 hash is 5e32c5b9305943587f977711cf8a8c66)

BK checked out a moment ago, 1.1359 is the rightmost entry in bk histtool. Parent repository is bk://linux.bkbits.net/linux-2.5/

Signature · 3 lines
Matthias Andree

Encrypt your mail: my GnuPG key ID is 0x052E7D95
#1 lore raw
Quoted 5 lines · Matthias Andree

net/built-in.o(.init.text+0x248e): In function `init':
: undefined reference to `ipt_register_match'

.config file at
http://mandree.home.pages.de/linux-2.6-BK-config

Please try the below. The option needs to inherit whatever iptables itself got set to.

regards
john

Index: linux-cvs/net/ipv4/netfilter/Kconfig
===================================================================
RCS file: /home/cvs/linux-2.5/net/ipv4/netfilter/Kconfig,v retrieving revision 1.12

net/ipv4/netfilter/Kconfig +1 -1
diff -u -a -p -r1.12 Kconfig
@@ -267,7 +267,7 @@ config IP_NF_MATCH_OWNER
 
 config IP_NF_MATCH_PHYSDEV
 	tristate "Physdev match support"
-	depends on IP_NF_IPTABLES!=n && BRIDGE_NETFILTER
+	depends on IP_NF_IPTABLES && BRIDGE_NETFILTER
 	help
 	  Physdev packet matching matches against the physical bridge ports
 	  the IP packet arrived on or will leave by.
#2 lore raw
Quoted 2 lines · John Levon

Please try the below. The option needs to inherit whatever iptables itself got set to.

...

net/ipv4/netfilter/Kconfig config IP_NF_MATCH_OWNER · line 270

Quoted 2 lines
net/ipv4/netfilter/Kconfig +1 -1
-	depends on IP_NF_IPTABLES!=n && BRIDGE_NETFILTER
+	depends on IP_NF_IPTABLES && BRIDGE_NETFILTER

Compiles fine (haven't run it yet). Thank you!

Signature · 3 lines
Matthias Andree

Encrypt your mail: my GnuPG key ID is 0x052E7D95