cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl_easy_perform

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 25 Jan 2006 14:34:41 +0100 (CET)

On Wed, 25 Jan 2006, namitha.gowda_at_wipro.com wrote:

> 100 27.3M 0 0 0 27.3M 0 2290k --:--:-- 0:00:12 --:--:-- 1759k*

> Uploaded unaligned file size (29506942 out of -4265460354 bytes)

> The actual file size is 29506942 only. we dont know why it is taking
> -4265460354 bytes. probably this is the source of error. Please tell us how
> to correct this.

This is likely the same problem we discussed the other day:

Your app probably have a 32bit curl_off_t type but your libcurl was built with
a 64bit curl_off_t. A quick work-around if to not use the *_LARGE option, and
the correct fix would be to figure out why your app doesn't find/use a 64bit
off_t.

You didn't tell us what compiler or operating system you're using.

Some compilers/environments want one of these defines set to pick the 64bit
ones:

  _LARGE_FILES
  _FILE_OFFSET_BITS
  FILESIZEBITS
  _LARGEFILE_SOURCE
  _LARGEFILE64_SOURCE

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2006-01-25