[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: libc6 in woody and sarge with kernel 2.4



At Wed, 28 Jul 2004 00:18:32 +0100,
Ketil Froyn wrote:
> I think I have found a bug in the libc6 packages bundled with debian
> woody and sarge. I tried searching online for this, but nothing came
> up.
> 
> When a program tries to lstat() a file larger than 2gb, the syscall
> lstat64() returns ok, but libc6 says something wrong happened. Here is
> some test output on a woody system, tested with libc6 2.3.2 from sarge
> and libc6 2.2.5 from woody, and kernel 2.2.20 from woody and a custom
> 2.4.26 kernel, vanilla source (Linus tree, no patches). This appears
> to have worked on a redhat8 system with a custom 2.4 kernel and glibc
> 2.3.2, though I have not tested with this minimal program (because
> that redhat8 instance does not exist any longer):

I guess your program is needed to compile with LFS option:

	gcc -D_FILE_OFFSET_BITS=64

Or use _LARGEFILE64_SOURCE, or O_LARGEFILE for open.

See:	http://www.suse.de/~aj/linux_lfs.html

Regards,
-- gotom



Reply to: