Unable to build uClibc with _FILE_OFFSET_BITS=64

mail-an-mw123 at gmx.de mail-an-mw123 at gmx.de
Tue Jan 8 14:24:16 UTC 2013


Hi uClibc Team,

I'm working with uClibc and have problems compiling uCLibc with _FILE_OFFSET_BITS=64. I've ensured that LFS IS ACTIVATED in .config file but _FILE_OFFSET_BITS ist hard undefined in file include/features.h:445-446. Despite of activated LFS _FILE_OFFSET_BITS is not defined during compile of file e.g. libc/misc/dirent/opendir.c.

If I force definition of the _FILE_OFFSET_BITS flag in file include/features.h I get the following error:

######################################
# build uClibc                       #
######################################
make -C lib/uClibc/ -f Makefile
make[1]: Entering directory `/a/bcm-uclinux-rootfs/lib/uClibc'
make[2]: Nothing to be done for `locale_headers'.
  CC libc/sysdeps/linux/mips/mmap.os
In file included from libc/sysdeps/linux/mips/mmap.c:10:0:
./include/sys/mman.h:62:9: error: macro names must be identifiers
libc/sysdeps/linux/mips/mmap.c:24:1: error: conflicting types for 'mmap64'
./include/sys/mman.h:72:14: note: previous declaration of 'mmap64' was here
libc/sysdeps/linux/mips/mmap.c: In function 'mmap64':
libc/sysdeps/linux/mips/mmap.c:25:1: error: '__NR_mmap64' undeclared (first use in this function)
libc/sysdeps/linux/mips/mmap.c:25:1: note: each undeclared identifier is reported only once for each function it appears in
libc/sysdeps/linux/mips/mmap.c: At top level:
libc/sysdeps/linux/mips/mmap.c:26:1: error: '__EI_mmap64' aliased to undefined symbol '__GI_mmap64'
libc/sysdeps/linux/mips/mmap.c:26:1: error: '__EI_mmap64' aliased to undefined symbol '__GI_mmap64'
make[1]: *** [libc/sysdeps/linux/mips/mmap.os] Error 1
make[1]: Leaving directory `/a/bcm-uclinux-rootfs/lib/uClibc'
make: *** [build-uClibc] Fehler 2

Tool chain:

-uClibc-9.32.1
-Broadcom: stbgcc-4.5.3-2.4
-mipsel

Why is _FILE_OFFSET_BITS not defined if LFS is enabled?

BR
Martin

-------- Original-Nachricht --------
> Datum: Fri, 21 Dec 2012 08:45:07 +0100
> Von: "Bernhard Reutner-Fischer" <rep.dot.nop at gmail.com>
> An: mail-an-mw123 at gmx.de, uclibc at uclibc.org
> Betreff: Re: Unable to build uClibc with _FILE_OFFSET_BITS=64

> On 20 December 2012 15:28:26 mail-an-mw123 at gmx.de wrote:
> > Hi uCLibc Team,
> >
> > [Please keep me on CC:, I'm not subscribed]
> >
> 
> > Is it possible to build the library with large file support (especially 
> > _FILE_OFFSET_BITS=64)? Do You have any suggestion?
> 
> Turn on LFS in your .config
> make menuconfig, and search for large file support.
> 
> 
> Sent with AquaMail for Android
> http://www.aqua-mail.com
> 
> 


More information about the uClibc mailing list