Re: configure openldap crash warning

Peter Eisentraut <peter.eisentraut@enterprisedb.com>

From: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2022-05-04T14:05:45Z
Lists: pgsql-hackers
On 02.05.22 16:03, Tom Lane wrote:
> I'm not that excited about getting rid of this warning, because to the
> extent that anyone notices it at all, it'll motivate them to get OpenLDAP
> from Homebrew or MacPorts, which seems like a good thing.

I tried building with Homebrew-supplied openldap.  What ends up 
happening is that the postgres binary is indeed linked with openldap, 
but libpq still is linked against the OS-supplied LDAP framework. 
(Checked with "otool -L" in each case.)  Can someone else reproduce 
this, too?




Commits

  1. configure: don't probe for libldap_r if libldap is 2.5 or newer.