[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#223773: busybox-cvs-static: FTBFS on i386



Package: busybox-cvs-static
Version: 20030926-2.1
Severity: serious
Justification: no longer builds from source

Busybox-cvs doesn't compile any more with the current libc6 and
linux-kernel-headers packages.  It chokes on fdisk.c with the error:

	util-linux/fdisk.c: In function `get_geometry':
        util-linux/fdisk.c:4060: error: subscripted value is neither array nor pointer
	
It seems that the definition of _IOR has changed in the kernel headers,
and so the definition of BLKGETSIZE64 at the top of fdisk.c needs to be
updated.  A patch is attached which changes this to be the same as the
#define in /usr/include/linux/fs.h.

--- fdisk.c.old	2003-09-26 21:13:20.000000000 +0800
+++ fdisk.c	2003-12-12 17:49:32.000000000 +0800
@@ -55,7 +55,7 @@
 #define BLKGETSIZE _IO(0x12,96)    /* return device size */
 #define BLKFLSBUF  _IO(0x12,97)    /* flush buffer cache */
 #define BLKSSZGET  _IO(0x12,104)   /* get block device sector size */
-#define BLKGETSIZE64 _IOR(0x12,114,8)  /* 8 = sizeof(u64) */
+#define BLKGETSIZE64 _IOR(0x12,114,size_t)
 
 /*
    fdisk.h

Reply to: