Re: Compile error w ac20

From: Francois romieu (romieu@ensta.fr)
Date: Sun Jun 18 2000 - 12:36:22 EST


The Sun, Jun 18, 2000 at 02:52:43PM +0200, iafilius@xs4all.nl wrote :
[...]
> drivers/block/block.o: In function `md_init':
> drivers/block/block.o(.text.init+0x1f0): undefined reference to `calibrate_xor_block'
> make: *** [vmlinux] Error 1

Apply the following and 'make oldconfig'.

diff -u --recursive linux-2.4.0-test1-ac20.orig/drivers/block/Config.in linux-2.4.0-test1-ac20/drivers/block/Config.in
--- linux-2.4.0-test1-ac20.orig/drivers/block/Config.in Sun Jun 18 07:40:59 2000
+++ linux-2.4.0-test1-ac20/drivers/block/Config.in Sun Jun 18 17:18:43 2000
@@ -53,6 +53,9 @@
         bool ' Boot support' CONFIG_MD_BOOT
         bool ' Auto Detect support' CONFIG_AUTODETECT_RAID
 fi
+if [ "$CONFIG_MD_RAID5" != "n" ]; then
+ define_bool CONFIG_MD_XOR $CONFIG_BLK_DEV_MD
+fi
 tristate 'RAM disk support' CONFIG_BLK_DEV_RAM
 if [ "$CONFIG_BLK_DEV_RAM" = "y" -o "$CONFIG_BLK_DEV_RAM" = "m" ]; then
         int ' Default RAM disk size' CONFIG_BLK_DEV_RAM_SIZE 4096
diff -u --recursive linux-2.4.0-test1-ac20.orig/drivers/block/Makefile linux-2.4.0-test1-ac20/drivers/block/Makefile
--- linux-2.4.0-test1-ac20.orig/drivers/block/Makefile Sun Jun 18 07:40:59 2000
+++ linux-2.4.0-test1-ac20/drivers/block/Makefile Sun Jun 18 17:19:55 2000
@@ -42,8 +42,8 @@
 obj-$(CONFIG_MD_LINEAR) += linear.o
 obj-$(CONFIG_MD_RAID0) += raid0.o
 obj-$(CONFIG_MD_RAID1) += raid1.o
-obj-$(CONFIG_MD_RAID5) += xor.o
 obj-$(CONFIG_MD_RAID5) += raid5.o
+obj-$(CONFIG_MD_XOR) += xor.o
 
 obj-$(CONFIG_BLK_DEV_NBD) += nbd.o
 

-- 
Ueimor

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



This archive was generated by hypermail 2b29 : Fri Jun 23 2000 - 21:00:16 EST