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

Re: BP build OpenLDAP and lmdb packages



Abdelhamid Meddeb wrote:
Hi,

+1
Statically link is a bad idea in this case, IMHO.

OpenLDAP source code is released as a single unit. This situation is no different than building slapd itself against libldap_r. If you split things apart and mix versions, you can potentially break them.

Le 26/09/2015 20:39, Quanah Gibson-Mount a écrit :
--On Saturday, September 26, 2015 8:11 PM +0200 Michael Ströder
<michael@stroeder.com> wrote:

HI!

I wonder what's considered best practice for building OpenLDAP and lmdb
packages e.g. for a Linux distribution.

Fortunately lmdb seems to be leveraged by more and more other
software. So
Linux distributions start to ship lmdb libs and tools as separate
packages.

1. Do I have a chance to build OpenLDAP against those packages? Which
releases have to be aligned?

2. Or should I link back-mdb statically into slapd when producing
OpenLDAP
packages? This would probably also require to build separate version of
the mdb tools.

OpenLDAP should only ever be statically linked to the version of liblmdb
it ships with.

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