Re: No libldap_r in OpenLDAP 2.5 - use LDAP_API_FEATURE_X_OPENLDAP_REENTRANT from ldap_features.h - Mailing list pgsql-bugs

From Tom Lane
Subject Re: No libldap_r in OpenLDAP 2.5 - use LDAP_API_FEATURE_X_OPENLDAP_REENTRANT from ldap_features.h
Date
Msg-id 520273.1629872978@sss.pgh.pa.us
Whole thread Raw
In response to No libldap_r in OpenLDAP 2.5 - use LDAP_API_FEATURE_X_OPENLDAP_REENTRANT from ldap_features.h  (Dilyan Palauzov <Dilyan.Palauzov@aegee.org>)
Responses Re: No libldap_r in OpenLDAP 2.5 - use LDAP_API_FEATURE_X_OPENLDAP_REENTRANT from ldap_features.h  (Дилян Палаузов <dilyan.palauzov@aegee.org>)
List pgsql-bugs
Dilyan Palauzov <Dilyan.Palauzov@aegee.org> writes:
> The current postgres/configure.ac logic is: if libldap_r is availabe,  
> then use it, otherwise use libldap.

Right.

> I propose, instead of looking for the presence of libldap_r, to check  
> the feature macro, and if libldap is reentrant, not to use libldap_r .

Why?  This seems more fragile (i.e., it adds an assumption that the
visible header file matches the available libraries), and if there is
a concrete benefit, you did not say what that is.

            regards, tom lane



pgsql-bugs by date:

Previous
From: Masahiko Sawada
Date:
Subject: Re: BUG #17156: pg_restore: [custom archiver] WARNING: ftell mismatch with expected position -- ftell used
Next
From: Rainer Tammer
Date:
Subject: Re: Postgres 9.2.13 on AIX 7.1