Re: [OMG] test8-pre6 horribly, awfully screwed!

From: Keith Owens (kaos@ocs.com.au)
Date: Fri Sep 08 2000 - 05:14:46 EST


On Fri, 08 Sep 2000 23:50:32 -1100,
Daniel Stone <daniel@dustpuppy.ods.org> wrote:
>When I boot up, I have a netfilter init script. It loads many netfilter
>modules, among them, ipt_LOG, ipt_state, and ipt_limit. When they load,
>whammo, instant OOPS.
>ip_conntrack_irc is also among them.

You might have been bitten by the spurious dependencies that pulls in
both ipchains and ip_conntrack which do not co-exist well. It has been
reported that modules.dep contains lines like this.

/lib/modules/2.4.0-test8-pre1/kernel/net/ipv4/netfilter/ip_nat_ftp.o:
        /lib/modules/2.4.0-test8-pre1/kernel/net/ipv4/netfilter/iptable_nat.o \
        /lib/modules/2.4.0-test8-pre1/kernel/net/ipv4/netfilter/ipchains.o \
        /lib/modules/2.4.0-test8-pre1/kernel/net/ipv4/netfilter/ip_conntrack.o

ipchains does not export any symbols, nor does it suppress symbol
export so the default is export everything. This results in duplicate
exported symbols which confuses depmod. This patch appears to fix the
problem, apply, make modules, make modules_install.

Index: 0-test8-pre6.4/net/ipv4/netfilter/ipchains_core.c
--- 0-test8-pre6.4/net/ipv4/netfilter/ipchains_core.c Fri, 26 May 2000 13:10:01 +1000 kaos (linux-2.4/g/2_ipchains_c 1.1 644)
+++ 0-test8-pre6.4(w)/net/ipv4/netfilter/ipchains_core.c Fri, 08 Sep 2000 15:27:43 +1100 kaos (linux-2.4/g/2_ipchains_c 1.1 644)
@@ -67,6 +67,8 @@
  * This software is provided ``AS IS'' without any warranties of any kind. */
 
 #include <linux/config.h>
+#include <linux/module.h>
+EXPORT_NO_SYMBOLS;
 
 #include <asm/uaccess.h>
 #include <asm/system.h>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Sep 15 2000 - 21:00:10 EST