[Live-devel] "fopen()" problem with large files on Fedora?
Ross Finlayson
finlayson at live555.com
Tue Jan 2 23:39:18 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...
OK, so to be on the safe side I'll add - to the next release of the
software - the flag
-D_FILE_OFFSET_BITS=64
to the COMPILE_OPTS line in each of the "linux" config files.
("-D_LARGEFILE_SOURCE=1" is already there.)
--
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
More information about the live-devel
mailing list