Bill Allombert on Fri, 30 Nov 2012 11:55:42 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Strange mix of SO version for libpari.so


On Fri, Nov 30, 2012 at 03:27:04AM +0100, Jan Engelhardt wrote:
> 
> Compiling pari-2.5.3 (the problem goes back to at least 2.5.0) produces 
> a libpari.so.2.5.3, but uses -Wl,-soname,libpari.so.3. What is the 
> reason that this obvious mismatch has been put into the Makefile?

There is no mismatch: libpari.so.2.5.3 is the filename, and
libpari.so.3 is the SONAME. They do not have to be identical.

> (libpari.so.2.5.3 will never be used, because all programs that link to 
> libpari.so will get the library's SONAME - so.3 - encoded in the 
> DT_NEEDED entries.)

We provide a symlink from .so.3 to libpari.so.2.5.3 for that reason.

All libpari.so.2.5.* version use the same SONAME which is so.3.
(libpari.so.2.1.* was using so.1, libpari.so.2.3 was using so.2).
For a fixed odd n, all libpari.so.2.n.* provide the same ABI and so
keep the same SONAME so.(n-1)/2

See this FAQ entry <http://pari.math.u-bordeaux.fr/faq.html#versionnum>
and especially the link
<http://pari.math.u-bordeaux.fr/archives/pari-dev-0206/msg00092.html>

Cheers,
Bill.