64 bit LFS compile error




I downloaded an application (mfs-tools) which I am trying to compile on my
Debian "Lenny" system, but the make is failing with the following errors:

gcc -DHAVE_CONFIG_H -I. -I../include -I../include -g -O2 -MT
readwrite.o -MD -MP -MF .deps/readwrite.Tpo -c -o readwrite.o readwrite.c
readwrite.c: In function ‘tivo_partition_read’:
readwrite.c:146: error: ‘off64_t’ undeclared (first use in this function)
readwrite.c:146: error: (Each undeclared identifier is reported only once
readwrite.c:146: error: for each function it appears in.)
readwrite.c:146: error: expected ‘)’ before ‘sector’
readwrite.c:146: error: expected ‘)’ before ‘sector’
readwrite.c: In function ‘tivo_partition_write’:
readwrite.c:261: error: ‘off64_t’ undeclared (first use in this function)
readwrite.c:261: error: expected ‘)’ before ‘sector’
readwrite.c:261: error: expected ‘)’ before ‘sector’
make[1]: *** [readwrite.o] Error 1
make[1]: Leaving directory `/downloads/software/mfstools-src/lib'
make: *** [all-recursive] Error 1

I've searched for the error, and I found some background information, but no
clear suggestions on how to resolve the issue. I tried setting the
variable:

CFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"

and then running the configure with

../configure --enable-debug

but I still get the same error. Any ideas?
.



Relevant Pages

  • 64 bit LFS compile error
    ... Debian "Lenny" system, but the make is failing with the following errors: ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: pros/cons of installing from source
    ... However debian is not the only distro with such commitment. ... I think that the packaging policy is what really sets debian ... developers, the admin of the system is the developer at the same time, ... and he/she is the one deciding what to compile against (libraries, ...
    (Debian-User)
  • ASUS A7N8X Deluxe Questions
    ... I was trying to get Debian working properly on my ... This was traced to an apparent need to compile a 2.4.22 kernel (I was ... with a Knoppix CD so I could write down my partition info. ...
    (Debian-User)
  • Re: ubuntu unreliable - options??
    ... My wife would not tolerate ... Debian, wouldn't they both have this sort of problem in common? ... Well - My understanding isthat Ubuntu is more leeding edge than ... And I think Ubuntu loads up much more "stuff" than Lenny does. ...
    (uk.comp.os.linux)
  • Re: Suggestions Invited
    ... I was once a Gentoo fan for its emerge and quick releases, ... Debian is all about being easy to get up and keep up. ... > having to compile every little obscure library for a point update. ... > about dependencies making an upgrade of gnome or kde nearly impossible. ...
    (Debian-User)