Re: 2.5.37 : compile failed with undefined reference to find_smp_config with SMP disabled

Dan Aloni (da-x@gmx.net)
Sat, 21 Sep 2002 19:37:52 +0300


On Sat, Sep 21, 2002 at 11:59:42AM -0400, Alexis de Bernis wrote:

> This happens with the vanilla 2.5.37 kernel. More information available
> on demand.
>
> Note : I have even more undefined reference with APIC enabled (and even, even more
> with IO-APIC enabled).

The problem is that CONFIG_X86_FIND_SMP_CONFIG gets always enabled when you
enable APIC (CONFIG_X86_LOCAL_APIC).

--- linux-2.5-BKcurr/arch/i386/config.in.orig 2002-09-21 19:32:26.000000000 +0300
+++ linux-2.5-BKcurr/arch/i386/config.in 2002-09-21 19:33:00.000000000 +0300
@@ -440,7 +440,9 @@

if [ "$CONFIG_X86_LOCAL_APIC" = "y" ]; then
define_bool CONFIG_X86_EXTRA_IRQS y
- define_bool CONFIG_X86_FIND_SMP_CONFIG y
+ if [ "$CONFIG_SMP" = "y" ]; then
+ define_bool CONFIG_X86_FIND_SMP_CONFIG y
+ fi
fi

endmenu

-- 
Dan Aloni
da-x@gmx.net
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/