[Live-devel] "fopen()" problem with large files on Fedora?

Morgan Tørvolt morgan.torvolt at gmail.com
Tue Jan 2 23:23:23 PST 2007


Hi folks.

Experienced the same problem. I believe what we did was alter the
first line of the config.linux file to this:

COMPILE_OPTS =          $(INCLUDES) -I. -O2 -DSOCKLEN_T=socklen_t
-D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64

IIRC it was the file offset bits that did the trick. This needed to be
done even on our AMD64 based computer running 64 bits linux. Don't ask
why, I don't know...

Best "new year" regards

-Morgan-

On 03/01/07, Ross Finlayson <finlayson at live555.com> wrote:
>
>
> Can anyone shed light on this guy's problem.  He says he's using Fedora Core
> 5, but gets a "File too large" error when he tries to open a 2+ GByte file
> using "fopen()".  I thought that all modern OSs could now handle files this
> large?
>
>
> Could he perhaps be using an out-of-date version of "libc" instead??
>
>
>
>
> I am using Fedora Core 5 here.
>  thanks
>  Rgds
>  Rishi
>
> On 1/3/07, Ross Finlayson <finlayson at live555.com > wrote:
>
> >I debug that file with a simple program.
>  >fd = fopen("test.ts ","rb")
>  >if (fd == NULL) perror(Failed to open");
>  >
>  >
>  >error it is givingas
>  >./a.out
>  >Failed to open
>  >: File too large.
>  >
>  >How to slove this
>
>  You need to upgrade to a newer operating system (one that supports
>  files >2^31 bytes in size).
>  --
>
>  Ross Finlayson
>  Live Networks, Inc.
>  http://www.live555.com/
>
>
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live555.com
> http://lists.live555.com/mailman/listinfo/live-devel
>
>
>


More information about the live-devel mailing list