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 1no2Uz-0001rQ-T0 for pgsql-hackers@arkaria.postgresql.org; Mon, 09 May 2022 12:28:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1no2Ux-0000UC-6e for pgsql-hackers@arkaria.postgresql.org; Mon, 09 May 2022 12:28:23 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1no2Uw-0000U2-3G for pgsql-hackers@lists.postgresql.org; Mon, 09 May 2022 12:28:22 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1no2Us-0008Qv-Lx for pgsql-hackers@postgresql.org; Mon, 09 May 2022 12:28:20 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 293D25C01A9; Mon, 9 May 2022 08:28:16 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 09 May 2022 08:28:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1652099296; x=1652185696; bh=QES4sOTdVjXE3 QemUtW3/cdv1BQXXAS97qgfHij3GRM=; b=EI2ei+IpsNJYvrM3Usd0Ojhs4QHpq 7CSj1E2iLBJOG3mUUf6n9+I0YbU25GxMI4QGVkVjcuejBc3wvuqmyzEyGYm5SWBX 9IswJVFRGDjNR5yyisjyGyeX4Xt5U4xOviHCz3oVhfq5UNNBHMqPnSnRekidfSno T2YrlofOeX407yMkuwYoPXHzi4x1OfeL/eJAk8+L+I3bdWUnbfQ2Ntf3xPWBcZqh EPTp2QM4ECWshMH4duINXZVg94eywh8Rl6H6WDM3yeX1UoFTqzaBSxH1u5y4vn3J 5EXAf4EsTo9ZPx6HiZm093oddEvBQN3XBOEKZ7aNvn4lmF3mc5Bxg17iA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeelgdehvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtje ertddtfeejnecuhfhrohhmpefrvghtvghrucfgihhsvghnthhrrghuthcuoehpvghtvghr rdgvihhsvghnthhrrghuthesvghnthgvrhhprhhishgvuggsrdgtohhmqeenucggtffrrg htthgvrhhnpeehleffgeegudejteeihfelteduvdeifffhffdvjedvffegjeekudeludeh udeifeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hpvghtvghrrdgvihhsvghnthhrrghuthesvghnthgvrhhprhhishgvuggsrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 9 May 2022 08:28:14 -0400 (EDT) Message-ID: Date: Mon, 9 May 2022 14:28:13 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: configure openldap crash warning Content-Language: en-US To: Tom Lane Cc: pgsql-hackers References: <1832824.1651500238@sss.pgh.pa.us> <2358598.1651677372@sss.pgh.pa.us> <2360302.1651678212@sss.pgh.pa.us> <2957308.1651860043@sss.pgh.pa.us> <2971088.1651865107@sss.pgh.pa.us> From: Peter Eisentraut In-Reply-To: <2971088.1651865107@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 06.05.22 21:25, Tom Lane wrote: > I wrote: >> After thinking about this for awhile, it seems like the best solution >> is to make configure proceed like this: > >> 1. Find libldap. >> 2. Detect whether it's OpenLDAP 2.5 or newer. >> 3. If not, try to find libldap_r. > > Here's a proposed patch for that. It seems to do the right thing > with openldap 2.4.x and 2.6.x, but I don't have a 2.5 installation > at hand to try. This patch works for me. I think it's a good solution.