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

Re: patch 2.5-2.0.1



On Thu, Feb 03, 2000 at 14:58:50 +0100, Roman Hodek wrote:

> Hmm... I suspected that my 2.0 kernel just didn't implement a syscall
> needed for 64 bit seeks. But if 2.2 can't do it either, it looks like
> a glibc problem :-(

No, it isn't, it's a bug in patch. Just add -D_XOPEN_SOURCE=500 to the
CFLAGS in debian/rules and it works. Otherwise fseeko() isn't defined
(compile with -Wall and you'll see the warning) and more to the point it
isn't redirected to fseeko64(), but off_t is (to __off64_t). So what happens
is that the 32 bit fseeko() is called with a 64 bit argument and of course
complains about an invalid argument.

-Michael


Reply to: