Re: LFS problem with Debian testing

2003-08-20 Thread Jukka Salmi
Colin Watson --> debian-user (2003-08-20 16:50:50 +0100): > Oh, um, sorry, let's test this time. > > Either use -D_FILE_OFFSET_BITS=64, in which case I believe you can > simply drop the O_LARGEFILE option as open() will support opening large > files by default; or else use -D_LARGEFILE64_SOURCE.

Re: LFS problem with Debian testing

2003-08-20 Thread Colin Watson
On Wed, Aug 20, 2003 at 04:32:38PM +0200, Jukka Salmi wrote: > Colin Watson --> debian-user (2003-08-20 11:55:14 +0100): > > Try building with the -D_FILE_OFFSET_BITS=64 option. See 'info libc' > > under "Feature Test Macros" for more details. > > Does not help, same result as before... Oh, um, s

Re: LFS problem with Debian testing

2003-08-20 Thread Jukka Salmi
Damien Solley --> debian-user (2003-08-20 21:09:16 +1000): > Check out: > http://www.suse.de/~aj/linux_lfs.html I read this article and followed the instructions, without success. Neither compiling with '-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE' nor adding O_LARGEFILE to the flags for open(2) wo

Re: LFS problem with Debian testing

2003-08-20 Thread Jukka Salmi
Damien Solley --> debian-user (2003-08-20 21:09:16 +1000): > Also, what file system are you using? Smbfs, fat and nfs all > have issues with lfs that ext doesn't. I'm using ext3 and ReiserFS (3.6.x), they both have full LFS support. But I'm having problems during compile time, so the file system s

Re: LFS problem with Debian testing

2003-08-20 Thread Jukka Salmi
Hi, Colin Watson --> debian-user (2003-08-20 11:55:14 +0100): > Try building with the -D_FILE_OFFSET_BITS=64 option. See 'info libc' > under "Feature Test Macros" for more details. Does not help, same result as before... Thanks anyway, Jukka -- bashian roulette: $ ((RANDOM%6)) || rm -rf ~ -

Re: LFS problem with Debian testing

2003-08-20 Thread Colin Watson
On Wed, Aug 20, 2003 at 07:37:28PM +1000, Damien Solley wrote: > On Wed, 2003-08-20 at 19:17, Jukka Salmi wrote: > > I'm having problems with opening large (>2 GB) files on a Debian testing > > System: > > > > --- > > #include > > #include > > #include > > [...] > > int fd; > > fd = open(argv[1

Re: LFS problem with Debian testing

2003-08-20 Thread Colin Watson
On Wed, Aug 20, 2003 at 11:08:20AM +0200, Jukka Salmi wrote: > I'm having problems with opening large (>2 GB) files on a Debian > testing system: > > --- > #include > #include > #include > [...] > int fd; > fd = open(argv[1], O_RDONLY | O_LARGEFILE); > [...] > --- > > gcc complains that O_LARG

Re: LFS problem with Debian testing

2003-08-20 Thread Damien Solley
On Wed, 2003-08-20 at 20:01, Jukka Salmi wrote: > Damien Solley --> debian-user (2003-08-20 19:37:28 +1000): > > Old kernel version? AFAIK, you need a recent (ish) kernel to create > > files greater than 2GB. > > $ uname -sr > Linux 2.4.21-3-686-smp > > It's the latest kernel from the kernel-imag

LFS problem with Debian testing

2003-08-20 Thread Jukka Salmi
Hello, I'm having problems with opening large (>2 GB) files on a Debian testing system: --- #include #include #include [...] int fd; fd = open(argv[1], O_RDONLY | O_LARGEFILE); [...] --- gcc complains that O_LARGEFILE is undeclared. However, if I #define O_LARGEFILE 010 the program works.

Re: LFS problem with Debian testing

2003-08-20 Thread Jukka Salmi
Damien Solley --> debian-user (2003-08-20 19:37:28 +1000): > Old kernel version? AFAIK, you need a recent (ish) kernel to create > files greater than 2GB. $ uname -sr Linux 2.4.21-3-686-smp It's the latest kernel from the kernel-image-2.4-686-smp package. Greetings, Jukka -- bashian roulette:

Re: LFS problem with Debian testing

2003-08-20 Thread Damien Solley
On Wed, 2003-08-20 at 19:17, Jukka Salmi wrote: > Hello, > I'm having problems with opening large (>2 GB) files on a Debian testing > System: > > --- > #include > #include > #include > [...] > int fd; > fd = open(argv[1], O_RDONLY | O_LARGEFILE); > [...] > --- > > gcc complains that O_LARGEFIL

LFS problem with Debian testing

2003-08-20 Thread Jukka Salmi
Hello, I'm having problems with opening large (>2 GB) files on a Debian testing System: --- #include #include #include [...] int fd; fd = open(argv[1], O_RDONLY | O_LARGEFILE); [...] --- gcc complains that O_LARGEFILE is undeclared. However, if I #define O_LARGEFILE 010 the program works.