Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m0lPU-0003pj-Tl for pgsql-bugs@arkaria.postgresql.org; Tue, 06 Jul 2021 13:46:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m0lPT-0005K2-LS for pgsql-bugs@arkaria.postgresql.org; Tue, 06 Jul 2021 13:46:47 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m0lPT-0005Jt-Em for pgsql-bugs@lists.postgresql.org; Tue, 06 Jul 2021 13:46:47 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m0lPR-00075e-4D for pgsql-bugs@lists.postgresql.org; Tue, 06 Jul 2021 13:46:46 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 166DkfiJ1666183; Tue, 6 Jul 2021 09:46:41 -0400 From: Tom Lane To: ml+postgresql@03s.net cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17083: [PATCH] PostgreSQL fails to build with OpenLDAP 2.5.x In-reply-to: <17083-a19190d9591946a7@postgresql.org> References: <17083-a19190d9591946a7@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Tue, 06 Jul 2021 11:42:34 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1666181.1625579201.1@sss.pgh.pa.us> Date: Tue, 06 Jul 2021 09:46:41 -0400 Message-ID: <1666182.1625579201@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Bug reporting form 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