Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache2 can not handle 2G+ files
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
jahve
n00b
n00b


Joined: 25 Aug 2002
Posts: 44
Location: Uppsala, Sweden

PostPosted: Mon Mar 22, 2004 6:38 pm    Post subject: Apache2 can not handle 2G+ files Reply with quote

When trying to download a 4.3G mac disk image, Apache/2.0.48 fails strangly and writes
Code:
(75)Value too large for defined data type: access to /backup/XXX.dmg failed
in my error_log file.

Actually it won't even list my backup image in the apache-generated index, while other files (with same file extension) in the same directory shows up without problem.

Google searches gives me discussions on the subject and it seems to be an issue with lacking large file support (LFS) in linux and/or Apache.
http://www.suse.de/~aj/linux_lfs.html
http://www.apacheweek.com/features/vendorversions
It seems like SuSE, Debian among other distros are building Apache with LFS-support. But I want a Gentoo solution to this matter. Where do I go from here?
_________________
Interoperating only with yourself is just a standards-compliant form of masturbation. /Mark Pilgrim
Back to top
View user's profile Send private message
bombcar
Guru
Guru


Joined: 08 Apr 2003
Posts: 453
Location: Wisconsin

PostPosted: Wed Mar 24, 2004 10:06 pm    Post subject: Reply with quote

I added

Code:

-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64


to my CFLAGS, and then it seems to kinda work, but Mozilla doesn't like it.
Back to top
View user's profile Send private message
cpdsaorg
Guru
Guru


Joined: 16 Oct 2003
Posts: 359

PostPosted: Wed May 09, 2007 8:15 am    Post subject: Reply with quote

question about your fix... I am running apache-2.0.58-r2

does your entire system have to be compiled with that flag our can you just compile apache and take it back out??
_________________
PentiumM 2.0 GHz, MSI 915GM Speedster-FA4, Seagate ST3500641AS SATA 400GB
Back to top
View user's profile Send private message
xces
Guru
Guru


Joined: 11 Oct 2002
Posts: 515

PostPosted: Thu May 10, 2007 10:12 pm    Post subject: Reply with quote

cpdsaorg wrote:
does your entire system have to be compiled with that flag our can you just compile apache and take it back out??

Since Apache httpd 2.2.4 was just added to ~ARCH, you shouldn't need to set these flags anymore.
Back to top
View user's profile Send private message
mudrii
l33t
l33t


Joined: 26 Jun 2003
Posts: 789
Location: Singapore

PostPosted: Thu May 10, 2007 11:54 pm    Post subject: Reply with quote

apache has an limitation on 32 bits OS if your CPU support 64 bit you will not have eny more this problem.
_________________
www.gentoo.ro
Back to top
View user's profile Send private message
xces
Guru
Guru


Joined: 11 Oct 2002
Posts: 515

PostPosted: Fri May 11, 2007 2:48 pm    Post subject: Reply with quote

mudrii wrote:
apache has an limitation on 32 bits OS

Not if you use Apache httpd 2.2...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum