cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [PATCH] 64-bit curl_off_t no longer gated to off_t

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 7 Aug 2008 13:17:57 +0200 (CEST)

On Thu, 7 Aug 2008, Yang Tse wrote:

I now get some strange new problem and I must admit I can't really see why
this happens.

A quote from my config.log:

configure:6114: checking size of curl_off_t
configure:6116: result: 8
configure:6119: checking formatting string directive for curl_off_t
configure:6161: result: "ll d"
configure:6164: checking formatting string directive for unsigned curl_off_t
configure:6166: result: "ll u"

These cause curlbuild.h to contain:

/* curl_off_t formatting string directive without "%" conversion specifier. */
#define CURL_FMT_OFF_T "ll d"

/* unsigned curl_off_t formatting string without "%" conversion specifier. */
#define CURL_FMT_OFF_TU "ll u"

The key to notice here is the space in the defined strings, which then in the
end make test 3 fail like this:

  protocol FAILED:
--- log/check-expected 2008-08-07 13:03:06.000000000 +0200
+++ log/check-generated 2008-08-07 13:03:06.000000000 +0200
@@ -2,7 +2,7 @@
  Authorization: Basic ZmFrZTotdXNlcg==
  Host: 127.0.0.1:8990
  Accept: */*
-Content-Length: 37
+Content-Length: 37

(autoconf 2.61, m4 1.4.11, bash 3.2.39, GNU sed 4.1.5)

-- 
  / daniel.haxx.se
Received on 2008-08-07