From: Ævar Arnfjörð Bjarmason Date: Tue, 05 Oct 2010 01:07:04 GMT Subject: Re: large files and low memory Message-ID: In-Reply-To: <20101005005715.GB2768@nibiru.local> On Tue, Oct 5, 2010 at 00:57, Enrico Weigelt wrote: > * Jonathan Nieder wrote: >> Shawn Pearce wrote: >> >> > The mmap() isn't the problem.  Its the allocation of a buffer that is >> > larger than the file in order to hold the result of deflating the file >> > before it gets written to disk. >> >> Wasn't this already fixed, at least in some cases? >> >> commit 9892bebafe0865d8f4f3f18d60a1cfa2d1447cd7 (tags/v1.7.0.2~11^2~1) >> Author: Nicolas Pitre >> Date:   Sat Feb 20 23:27:31 2010 -0500 > > I guess I'll have to do a update. > > But: latest tag (1.7.3.1) doesnt build: > > >    CC read-cache.o >    read-cache.c: In function `fill_stat_cache_info': >    read-cache.c:73: structure has no member named `st_ctim' >    read-cache.c:74: structure has no member named `st_mtim' >    read-cache.c: In function `read_index_from': >    read-cache.c:1334: structure has no member named `st_mtim' >    read-cache.c: In function `write_index': >    read-cache.c:1614: structure has no member named `st_mtim' >    make: *** [read-cache.o] Fehler 1 > > Is my libc too old ? Those lines are accessing members called st_ctime, i.e. with an "e" at the end, but your errors just report "st_ctim". What gives?