Bug 2851

Summary: util-linux/fdisk.c not compiled without large file support in uclibc-based toolchain
Product: Busybox Reporter: Sergey Gusarov <laborer2008>
Component: OtherAssignee: unassigned
Status: RESOLVED INVALID    
Severity: major CC: busybox-cvs
Priority: P5    
Version: 1.16.x   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:

Description Sergey Gusarov 2010-11-18 11:17:25 UTC
util-linux/fdisk.c: In function 'seek_sector':
util-linux/fdisk.c:603: error: 'off64_t' undeclared (first use in this function)
util-linux/fdisk.c:603: error: (Each undeclared identifier is reported only once
util-linux/fdisk.c:603: error: for each function it appears in.)
util-linux/fdisk.c:603: error: expected ';' before 'off'
util-linux/fdisk.c:604: warning: implicit declaration of function 'lseek64'
util-linux/fdisk.c:604: error: 'off' undeclared (first use in this function)

Large file support disabled in the busybox config.
gcc - 4.4.5, uClibc - 0.9.30.2
Comment 1 Denys Vlasenko 2010-11-21 19:28:10 UTC
Disable FDISK_SUPPORT_LARGE_DISKS
Comment 2 Sergey Gusarov 2010-11-22 13:24:42 UTC
(In reply to comment #1)
> Disable FDISK_SUPPORT_LARGE_DISKS

This option is related to CONFIG_LFS. Maybe she should removed automatically(when CONFIG_LFS is not setted)?
Comment 3 Denys Vlasenko 2010-11-24 00:13:32 UTC
The point of that option is _exactly_ that while you might want to drop support for huge _files_ by de-selecting LFS, yet you do want that 8Gb USB stick to be properly handled by fdisk.