cURL / Mailing Lists / curl-library / Single Mail


Re: [RFC PATCH] symbols versioning

From: Daniel Stenberg <>
Date: Mon, 19 Dec 2011 09:57:23 +0100 (CET)

On Sun, 18 Dec 2011, Alessandro Ghedini wrote:

> Attached is the (hopefully) final version of the patch :)


> A little note: currently the major soname version ("4") is hardcoded in the
> lib/ file, so that it will need to be manually changed when
> the soname will be bumped. AFAICT, currently the version info to pass to ld
> is only set in lib/ so that there is no easy way to make this
> process automatic.

That's very unfortunate and it feels like something that we'll forget to
update the distant day in the future when we bump the major SONAMe number.
Possibly it'll be so rare that it won't be a big deal.

There's not even any 4 in lib/ as the current version info is
actually 6:0:2 which happens to get translated to major number 4 on most

But it also made me think more. What exactly is that number in the
version-script supposed to be used for? If we add functions to the API
shouldn't, we then (if we want to be technically correct) add a new "label" in
the version-script for that? If so, shouldn't then the label either match the
full SONAME number or perhaps even the libcurl version string when the symbol
is introduced to make it clearer to those who'd see an error message?

List admin:
Received on 2011-12-19