[Buildroot] [PATCH 2/2] mtd-utils.git: fix targets

Peter Korsgaard jacmet at uclibc.org
Wed Aug 5 19:47:07 UTC 2009

>>>>> "Daniel" == Daniel Mack <daniel at caiaq.de> writes:

 Daniel> - Update git version for mtd-utils.git.
 Daniel> - In this new version, a new tool named 'ubiformat' exists which is
 Daniel>   exported by this patch.
 Daniel> - The tool ubimirror does not exist anymore, remove support for it.
 Daniel> - remove two patches that do no longer apply
 Daniel> - add a patch that removes the unconditional setting of
 Daniel>   -D_FILE_OFFSET_BITS=64
 Daniel> - introduce EXTRA_CPPFLAGS that is set to -D_FILE_OFFSET_BITS=64 in case
 Daniel>   BR2_LARGEFILE is set

Thanks, but it still doesn't build with a default (E.G. non-largefile)

mkfs.ubifs.c: In function 'write_leb':
mkfs.ubifs.c:768: error: 'off64_t' undeclared (first use in this function)
mkfs.ubifs.c:768: error: (Each undeclared identifier is reported only once
mkfs.ubifs.c:768: error: for each function it appears in.)
mkfs.ubifs.c:768: error: expected ';' before 'pos'
mkfs.ubifs.c:776: warning: implicit declaration of function 'lseek64'
mkfs.ubifs.c:776: error: 'pos' undeclared (first use in this function)
mkfs.ubifs.c: In function 'add_file':
mkfs.ubifs.c:1264: error: 'O_LARGEFILE' undeclared (first use in this

I expect that you just need to make mkfs.ubifs depend on largefile
support in the toolchain if it cannot easily be fixed in the sources.

Bye, Peter Korsgaard

More information about the buildroot mailing list