Re: BUG #17083: [PATCH] PostgreSQL fails to build with OpenLDAP 2.5.x - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #17083: [PATCH] PostgreSQL fails to build with OpenLDAP 2.5.x
Date
Msg-id 1666182.1625579201@sss.pgh.pa.us
Whole thread Raw
In response to BUG #17083: [PATCH] PostgreSQL fails to build with OpenLDAP 2.5.x  (PG Bug reporting form <noreply@postgresql.org>)
Responses Re: BUG #17083: [PATCH] PostgreSQL fails to build with OpenLDAP 2.5.x  (Adrian Ho <ml+postgresql@03s.net>)
List pgsql-bugs
PG Bug reporting form <noreply@postgresql.org> writes:
> OpenLDAP 2.5 merged the `ldap_r` and `ldap` libraries, so all per-handle
> routines are now thread-safe by default.

Hm, does 2.5 exist in the wild yet?  I checked Fedora rawhide, which
is my usual go-to platform for bleeding-edge stuff, but they are still
at 2.4.58.

As for the patch itself, I'm wondering about

+      LDAP_LIBS_FE="${ac_lib:+-l}$ac_lib $EXTRA_LDAP_LIBS"

That seems undesirably intimate with the implementation details
of AC_SEARCH_LIBS.  Surely there's a better way?

            regards, tom lane



pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #17083: [PATCH] PostgreSQL fails to build with OpenLDAP 2.5.x
Next
From: Adrian Ho
Date:
Subject: Re: BUG #17083: [PATCH] PostgreSQL fails to build with OpenLDAP 2.5.x