Bug 2851 - util-linux/fdisk.c not compiled without large file support in uclibc-based toolchain
Summary: util-linux/fdisk.c not compiled without large file support in uclibc-based to...
Status: RESOLVED INVALID
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: 1.16.x
Hardware: PC Linux
: P5 major
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-18 11:17 UTC by Sergey Gusarov
Modified: 2010-11-24 00:13 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.