[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: .so version numbers for dlopen'd objects



Ryan Tandy wrote:
On Tue, May 22, 2018 at 12:51:49PM -0700, Paul B. Henson wrote:
They say that shared objects which are intended to be dlopen'd, as opposed
to linked to, should not include version numbers, and it should look like:

-rwxr-xr-x 1 henson henson 1773576 May 21 12:54 back_bdb-2.4.so
-rwxr-xr-x 1 henson henson     864 May 21 12:54 back_bdb.la

Personally I'd even go further:

-rwxr-xr-x 1 henson henson 1773576 May 21 12:54 back_bdb.so

I'd say it's a mistake to remove the version info, since modules tend to be intimately tied to the specific version of OpenLDAP for which they were built.

Backends in particular are dependent on the specific slap.h. Password modules etc may be less version-dependent.

(and no .la at all - on platforms where that's feasible)




--
  -- Howard Chu
  CTO, Symas Corp.           http://www.symas.com
  Director, Highland Sun     http://highlandsun.com/hyc/
  Chief Architect, OpenLDAP  http://www.openldap.org/project/