[BusyBox-cvs] [BusyBox 0000346]: coreutils/stat.c does not build for toolchains using linux-libc-headers-2.6.x
bugs at busybox.net
bugs at busybox.net
Thu Jul 21 15:24:35 UTC 2005
The following issue has been SUBMITTED.
======================================================================
http://busybox.net/bugs/view.php?id=346
======================================================================
Reported By: apgo
Assigned To: BusyBox
======================================================================
Project: BusyBox
Issue ID: 346
Category: Other
Reproducibility: always
Severity: minor
Priority: normal
Status: assigned
======================================================================
Date Submitted: 07-21-2005 08:24 PDT
Last Modified: 07-21-2005 08:24 PDT
======================================================================
Summary: coreutils/stat.c does not build for toolchains using
linux-libc-headers-2.6.x
Description:
For toolchains built with linux-libc-headers-2.6.x,
$busybox/coreutils/stat.c fails to build with:
/tmp/test/busybox/coreutils/stat.c: In function `print_statfs':
/tmp/test/busybox/coreutils/stat.c:183: error: structure has no member
named `f_frsize'
`f_frsize' is exclusive to `struct statvfs'. Here's what statfs(2) has to
say (See also http://www.linuxbase.org/talks/kingdon200301/):
LSB has deprecated the library calls [f]statfs() and tells us to use
[f]statvfs() instead.
However, `struct statvfs' is a 2.6x-specific. So simply s/struct\
statfs/struct\ statvfs/ Just Won't Do It(tm):
/tmp/test/busybox/coreutils/stat.c: In function `print_statfs':
/tmp/test/busybox/coreutils/stat.c:154: error: structure has no member
named `f_namelen'
/tmp/test/busybox/coreutils/stat.c:158: error: structure has no member
named `f_type'
/tmp/test/busybox/coreutils/stat.c:162: error: structure has no member
named `f_type'
The equivalent for `f_namelen' in struct statvfs is `f_namemax'. statvfs
also provides no definition for `f_type'; used mainly with calls
human_fstype().
Upstream coreutils handled this with a kludge of compat macros:
http://savannah.gnu.org/cgi-bin/viewcvs/coreutils/coreutils/src/stat.c?rev=1.87&content-type=text/vnd.viewcvs-markup
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
07-21-05 08:24 apgo New Issue
07-21-05 08:24 apgo Status new => assigned
07-21-05 08:24 apgo Assigned To => BusyBox
======================================================================
More information about the busybox-cvs
mailing list