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

Re: lfs in apache



Omry Yadan wrote:
> Hi,
> 
> today large files can easily take more than a few gigabytes (dvd images,
> vide data etc).
> 
> apache2 does not support large files by default, there is a compile
> option for it,
> 
> CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"

I don't recall the exact details, but this requires a bit of care to get
right.  Specifically, the problem is what happens when other things
aren't compiled with these flags.  I once spent two or three days
chasing after an extremely subtle bug in Rivet that was caused by a
struct being overwritten in a nasy way because Tcl had those flags and
Apache didn't (or vice versa?).

-- 
David N. Welton
- http://www.dedasys.com/davidw/

Linux, Open Source Consulting
- http://www.dedasys.com/



Reply to: