Re: No libldap_r in OpenLDAP 2.5 - use LDAP_API_FEATURE_X_OPENLDAP_REENTRANT from ldap_features.h

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: No libldap_r in OpenLDAP 2.5 - use LDAP_API_FEATURE_X_OPENLDAP_REENTRANT from ldap_features.h
Дата
Msg-id 520273.1629872978@sss.pgh.pa.us
обсуждение исходный текст
Ответ на No libldap_r in OpenLDAP 2.5 - use LDAP_API_FEATURE_X_OPENLDAP_REENTRANT from ldap_features.h  (Dilyan Palauzov <Dilyan.Palauzov@aegee.org>)
Ответы Re: No libldap_r in OpenLDAP 2.5 - use LDAP_API_FEATURE_X_OPENLDAP_REENTRANT from ldap_features.h  (Дилян Палаузов <dilyan.palauzov@aegee.org>)
Список 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 по дате отправления:

Предыдущее
От: Masahiko Sawada
Дата:
Сообщение: Re: BUG #17156: pg_restore: [custom archiver] WARNING: ftell mismatch with expected position -- ftell used
Следующее
От: Rainer Tammer
Дата:
Сообщение: Re: Postgres 9.2.13 on AIX 7.1