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-09T12:36:47Z
Lists: pgsql-hackers
On 04.05.22 17:16, Tom Lane wrote:
> Hmm, I just tried it with up-to-date MacPorts, and it was a*complete*
> fail: I got all the deprecation warnings (so the system include headers
> were used), and both postgres and libpq.dylib still ended up linked
> against /System/Library/Frameworks/LDAP.framework/Versions/A/LDAP.

Btw., I was a bit puzzled about all this talk about deprecation 
warnings, which I have not seen.  I turns out that you only get those if 
you use the OS compiler, not a third-party gcc installation.

So in terms of my original message, my installation is clearly niche. 
The possibly false-positive configure warning is a drop in the bucket 
compared to the deprecation warnings from the compiler.  So it's 
probably okay to leave this as is and encourage users to use openldap.




Commits

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