Skip to contentSkip to conversation

2.6.12-rc2-mm1 compilation failure

DISCUSSION Janet Morgan 2 participants 2 messages Apr 5, 2005 – Apr 6, 2005

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

I ran into this when trying to build 2.6.12-rc2-mm1:

arch/i386/kernel/built-in.o(.init.text+0x161f): In function `setup_arch':
: undefined reference to acpi_boot_table_init' arch/i386/kernel/built-in.o(.init.text+0x1624): In function setup_arch':
: undefined reference to `acpi_boot_init'
make: *** [.tmp_vmlinux1] Error 1

Thanks,
-Janet

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>

#1 lore raw
Quoted 8 lines · Janet Morgan

I ran into this when trying to build 2.6.12-rc2-mm1:

arch/i386/kernel/built-in.o(.init.text+0x161f): In function `setup_arch':
: undefined reference to acpi_boot_table_init' arch/i386/kernel/built-in.o(.init.text+0x1624): In function setup_arch':
: undefined reference to `acpi_boot_init'
make: *** [.tmp_vmlinux1] Error 1

yup.

include/linux/acpi.h renamed from include/linux/acpi.h~no-acpi-build-fix +13 -10
diff -puN include/linux/acpi.h~no-acpi-build-fix include/linux/acpi.h
@@ -418,16 +418,6 @@ extern int sbf_port ;
 
 #define acpi_mp_config	0
 
-static inline int acpi_boot_init(void)
-{
-	return 0;
-}
-
-static inline int acpi_boot_table_init(void)
-{
-	return 0;
-}
-
 #endif 	/*!CONFIG_ACPI_BOOT*/
 
 unsigned int acpi_register_gsi (u32 gsi, int edge_level, int active_high_low);
@@ -538,5 +528,18 @@ static inline int acpi_get_pxm(acpi_hand
 
 extern int pnpacpi_disabled;
 
+#else	/* CONFIG_ACPI */
+
+static inline int acpi_boot_init(void)
+{
+	return 0;
+}
+
+static inline int acpi_boot_table_init(void)
+{
+	return 0;
+}
+
 #endif	/* CONFIG_ACPI */
+
 #endif	/* _LINUX_ACPI_H */

_

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>