cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Binary compatibility and 64-bit curl_off_t

From: Phil Blundell <pb_at_reciva.com>
Date: Wed, 13 Aug 2008 18:01:28 +0100

On Wed, 2008-08-13 at 08:07 -0700, Dan Fandrich wrote:
> The 64 bit curl_off_t patch that has recently gone in is going to cause
> a binary compatibility break on platforms that have a 64 bit integer type
> but a 32 bit off_t type. People who upgrade to 7.19.0 on these platforms
> are going to be surprised when their apps stop working. I see a few ways
> to solve this problem:

Based on what you wrote above, it sounds like it should be fairly
straightforward to write a configure test to detect whether the old and
new versions are compatible. (I guess this equates to whether
curl_off_t used to be 32 bits and is about to become 64 bits, if I've
understood the issue correctly.)

That being the case, it should be possible to refine your option (4):
reserve a new -version-info and have the configure script select it only
for the specific platforms that are going to break.

p.
Received on 2008-08-13