[BusyBox] Problems with httpd !

Steven Scholz steven.scholz at imc-berlin.de
Wed Aug 13 09:15:10 UTC 2003


Philip Blundell wrote:

> On Wed, 2003-08-13 at 09:31, Steven Scholz wrote:
> 
>>Without LARGE_FILE_SUPPORT evertyhing is fine!!!
>>Apparently off_t is different then!
> 
> 
> Yes; LARGE_FILE_SUPPORT will probably cause off_t to grow from 32 bits
> to 64 bits.  If you try to print it with %ld you will get only the first
> 32 bits of the value.  On powerpc, these would be the most significant
> bits, which are probably all zero.

So how about the attached patch?
Or even simpler:

-                             timeStr, Content_length, config->ContentLength);
+                             timeStr, Content_length, (long) config->ContentLength);


It works for me and my MPC8xx PowerPC. I can't test any other platform.

Steven
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: httpd_LFS.patch
Url: http://lists.busybox.net/pipermail/busybox/attachments/20030813/524c3ac3/attachment.diff 


More information about the busybox mailing list