<div class="gmail_quote">On Thu, Aug 16, 2012 at 12:09 PM, W.C.A. Wijngaards <span dir="ltr"><<a href="mailto:wouter@nlnetlabs.nl" target="_blank">wouter@nlnetlabs.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
Hi Mariano,<br>
<div><div class="h5"><br>
On 08/16/2012 04:45 PM, Mariano Absatz - gmail wrote:<br>
> Hi,<br>
><br>
> Is there some kind of correlation between the libunbound version<br>
> number and the Unbound package version number?<br>
><br>
> I had previously compiled Unbound 1.4.13 and the library files I<br>
> got in /usr/local/lib included libunbound.so.2.13.0<br>
><br>
> I just compiled the latest Unbound 1.4.18 and the new library file<br>
> is libunbound.so.2.1.3<br>
><br>
> It's not so strange that the library has a different versioning<br>
> from the package, however, 2.1.3 looks like older than 2.13.0.<br>
><br>
> Has the library gone backwards? Did the versioning scheme changed?<br>
<br>
</div></div>It uses GNU libtool versioning, shared library versions:<br>
<a href="http://www.gnu.org/software/libtool/manual/html_node/Libtool-versioning.html" target="_blank">http://www.gnu.org/software/libtool/manual/html_node/Libtool-versioning.html</a><br>
<br>
unbound version has libtool version current:revision:age<br>
1.4.13 has 2:13:0<br>
1.4.18 has 3:3:1<br>
<br>
Because, at 1.4.14, the ub_version() call is added to the library,<br>
making a new version (which is binary compatible with the previous<br>
version).  So, there is a symlink for libunbound.so.2 binary API<br>
(thus, existing programs continue to link and run).<br>
<br>
The shared library numbers represent the library API.<br>
<br></blockquote><div><br></div><div>OK, but shouldn't the main binary be called  libunbound.so.3.1 (or something like that) instead of libunbound.so.2.1.3? That is, then you can symlink it from libunbound.so.2 and so on.</div>
<div><br></div><div>Here's the content of my recently compiled & installed /usr/local/lib:</div><div><br></div><div><div><font face="'courier new', monospace">-rw-r--r--  1 root staff 2615310 2012-08-16 12:34 libunbound.a</font></div>
<div><font face="'courier new', monospace">-rw-r--r--  1 root staff     986 2012-08-16 12:34 <a href="http://libunbound.la">libunbound.la</a></font></div><div><font face="'courier new', monospace">lrwxrwxrwx  1 root staff      19 2012-08-16 12:34 libunbound.so -> libunbound.so.2.1.3*</font></div>
<div><font face="'courier new', monospace">lrwxrwxrwx  1 root staff      19 2012-08-16 12:34 libunbound.so.2 -> libunbound.so.2.1.3*</font></div><div><font face="'courier new', monospace">-rwxr-xr-x  1 root staff 1719555 2012-08-16 12:34 libunbound.so.2.1.3*</font></div>
</div><div><br></div></div><br clear="all"><div><br></div>-- <br>Mariano Absatz - El Baby<br><a href="http://www.clueless.com.ar" target="_blank">www.clueless.com.ar</a><br><br><br>