This is the mail archive of the
libc-alpha@sourceware.cygnus.com
mailing list for the glibc project.
Re: getconf bug: wrong CFLAGS for large file support at i586
- To: wiget at pld dot org dot pl
- Subject: Re: getconf bug: wrong CFLAGS for large file support at i586
- From: Paul Eggert <eggert at twinsun dot com>
- Date: Mon, 27 Sep 1999 08:21:29 -0700 (PDT)
- CC: libc-alpha at sourceware dot cygnus dot com
- References: <199909271322.PAA12823@wiget.t17.ds.pwr.wroc.pl>
Date: Mon, 27 Sep 1999 15:22:52 +0200
From: Artur Frysiak <wiget@pld.org.pl>
getconf on i586-*-linux-gnu wrote -D_FILE_OFFSET_BITS=64 if I ask
for LFS_CFLAGS. Correct value is -D_FILE_OFFSET_BITS=32 (AI86
can't mmap() more that 2^32 bytes).
Could you explain this bug a bit more? mmap can't map more bytes than
its size_t length parameter can represent, so it's not a bug if the
problem is merely that you can't mmap more than 2**32 bytes at once.
(That is how 32-bit Solaris 7 works, for example.)
However, if you can't pass an off_t offset parameter larger than 2**32
to mmap and get the correct behavior, then that is indeed a bug. But
surely this is a bug with mmap, not a bug with getconf.