Subject: Re: Build failure - port i386 - kernel link error
To: Paul Goyette <paul@whooppee.com>
From: Tom Spindler <dogcow@babymeat.com>
List: current-users
Date: 12/09/2007 18:51:01
> acpi_wakeup.o: In function `acpi_md_sleep':
> acpi_wakeup.c:(.text+0x49f): undefined reference to `mtrr_funcs'

Try this:

diff -u -w -p -r1.41 acpi_wakeup.c
--- sys/arch/i386/acpi/acpi_wakeup.c    9 Dec 2007 20:27:44 -0000       1.41
+++ sys/arch/i386/acpi/acpi_wakeup.c    10 Dec 2007 02:50:32 -0000
@@ -313,8 +313,10 @@ out:
        x86_enable_intr();
        splx(s);
 
+#ifdef MTRR
        if (mtrr_funcs != NULL)
                mtrr_commit();
+#endif
 
        return (ret);
 #undef WAKECODE_FIXUP

I'll probably commit this shortly.