[nanomsg] Re: Brief introduction, and pkgconfig vs SONAME question

  • From: Martin Sustrik <sustrik@xxxxxxxxxx>
  • To: nanomsg@xxxxxxxxxxxxx
  • Date: Tue, 29 Jul 2014 20:04:22 +0200

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

See for example here:

http://blog.asleson.org/index.php/2014/07/08/libtool-library-versioning-version-info-currentrevisionage/

My understanding is that version passed to the libtool is used to
create appropriate symbolic links. For example, if "age" is 2, two
symbolic links are created to the actual .so to allow applications
asking for the older version of the lib use the new
backward-compatible version.

Given the above, the .so version is not necessarily the same as
libtool ABI version.

Confusing, but kind of understandable...

Martin


On 29/07/14 18:45, J.C. Cleaver wrote:
> 
> 
> On Mon, July 28, 2014 10:43 pm, Martin Sustrik wrote:
>> On 29/07/14 07:36, Martin Sustrik wrote:
>> 
>>> Correct ABI version is 2.0.2. Where exactly does 0.2.0 come
>>> from, I am nor sure.
>> 
>> There's this line in Makefile.am:
>> 
>> libnanomsg_la_LDFLAGS = -no-undefined -version-info
>> @NN_LIBTOOL_VERSION@
>> 
>> And NN_LIBOOL_VERSION seems to be 2.0.2 ...
>> 
>> Also grepping for "0.2.0" is the generated scripts yields no
>> results...
>> 
>> Which seems to imply that 0.2.0 is just some kind of a libtool
>> artifact.
>> 
>> Martin
> 
> 
> Yeah, that's exactly where I was stuck at as well. Eventually it
> shows up in:
> 
> ./../BUILD/nanomsg-0.4-beta/.libs/libnanomsg.la:library_names='libnanomsg.so.0.2.0
>
> 
libnanomsg.so.0 libnanomsg.so'
> ../../BUILD/nanomsg-0.4-beta/.libs/libnanomsg.lai:library_names='libnanomsg.so.0.2.0
>
> 
libnanomsg.so.0 libnanomsg.so'
> ../../BUILD/nanomsg-0.4-beta/libnanomsg.la:library_names='libnanomsg.so.0.2.0
>
> 
libnanomsg.so.0 libnanomsg.so'
> 
> ... but I can't determine where it's generating that from. By that
> time, Makefile is just: ./Makefile:libnanomsg_la_LDFLAGS =
> -no-undefined -version-info 2:0:2
> 
> 
> -jc
> 
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJT1+ImAAoJENTpVjxCNN9Y+74H/1iPVfFx136+AzgwdRyxKHgD
XrxJTJ9hVgSeiO6n6qYtVrfepLhR3kdoBYKxV1MxeqOPbTCp5sltd5ANwE5qqcRY
Bf+/A6Zwbao+ci/zACptGaT7QssFXGHMe81sZJXvjEwsG9b4bF7+BPBqatuREnlg
Q17dTRzkb3JNwgN+jeqG3vJf54jVDvGXcc+AD11UQTIayOLJBQtPzYxJNmL4gP70
MAOF91Oha5twh5GyWkERNcfL7ilodD8LcXatloorgQwIsSDCjStnKJ1fuYO3EI8T
UzuIKO975ELHCb8TUVVBaCMuotp/Cgj+0rrtYInta8TCCXeWZEwn6eBAd6ZKVGM=
=iGDt
-----END PGP SIGNATURE-----

Other related posts: