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 1mIu7w-0000RX-MP for pgsql-bugs@arkaria.postgresql.org; Wed, 25 Aug 2021 14:43:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mIu7v-0000bl-Ht for pgsql-bugs@arkaria.postgresql.org; Wed, 25 Aug 2021 14:43:39 +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 1mItsP-0004l3-9c for pgsql-bugs@lists.postgresql.org; Wed, 25 Aug 2021 14:27:37 +0000 Received: from mail.aegee.org ([144.76.142.78]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mItsI-0003ry-Hx for pgsql-bugs@lists.postgresql.org; Wed, 25 Aug 2021 14:27:36 +0000 Authentication-Results: mail.aegee.org/17PERQno1626656; auth=pass (LOGIN) smtp.auth=didopalauzov@aegee.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aegee.org; s=k4096; t=1629901647; i=dkim+MSA-tls@aegee.org; bh=vCPq2LJh1I44T7Vp6xQrTUZUek1KqHkYL4UB7KBtT+A=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=JjaWQ/xoPG7gm8k6QXdX6BdNcDnTJN6fbac/UrDaWC32faLEXc/bDp+k54czhqs0d zhFMUGWpEvFb9kRkygESHMMW96fBMK4JgYe34IlGJLvnrYXZaMhJ/BVTLNunWhxO3s B2jITFYlOU8rYNud8m2Sg7DS49wFZSe8GprLVKzwjC5uRiM/ZazWUuLmGAKFTjs8CF BghLj109UmqBg/3YgxQc4uSIxymRC+4hP0WD8tSFthLM6JHGx7Oq6HpqxnQPKSmglU pjj+TI/YV7gGJ98jkLStEWis1JpmVNnoQmIzAkIv5u0jKToPFI3bIixVxHjVRbibW8 qg5btaV8eDQ7qBPvrWvYC3FyuebB/9+UwBylKDeVdPy4e6E2d0re7hE7tSJ99mMbQY iKedSxi2pa87feIHtWwU7HGyHFPV9PyUzINLPnNFFPWVUbujgetqgUl+4J/0je5PiY X3wWsXvswxNd9T1A2S4erXuY46ByszgOKrSSgKn5WFuiJbPWJBczVVRlHUuAAwkveI 3qf21q9n0rkGfuRPyL1E1uogZpoEIqk8M3IEqYJVfy7r+AJi9hWFIf2dxgHzSHoGCw 0qwYcUv0eU8wL5cPIm3fxfUYh5u64qwEOxAGuEoKCu1TohP87v2KmX9mjQ36+8H6RN yjomK3+QH+rFczixyCx3g3Go= Authentication-Results: mail.aegee.org/17PERQno1626656; dkim=none Received: from [192.168.0.199] (87.118.146.153.topnet.bg [87.118.146.153] (may be forged)) (authenticated bits=0) by mail.aegee.org (8.15.2/8.15.2) with ESMTPSA id 17PERQno1626656 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 25 Aug 2021 14:27:27 GMT Message-ID: <8bf71cb05679342f8a09206cb03fc727d5d52830.camel@aegee.org> Subject: Re: No libldap_r in OpenLDAP 2.5 - use LDAP_API_FEATURE_X_OPENLDAP_REENTRANT from ldap_features.h From: =?UTF-8?Q?=D0=94=D0=B8=D0=BB=D1=8F=D0=BD_?= =?UTF-8?Q?=D0=9F=D0=B0=D0=BB=D0=B0=D1=83=D0=B7=D0=BE=D0=B2?= To: Tom Lane Cc: pgsql-bugs@lists.postgresql.org Date: Wed, 25 Aug 2021 17:27:26 +0300 In-Reply-To: <544882.1629900910@sss.pgh.pa.us> References: <20210825052142.Horde.fX47Irhz5YmXoRVbIbyYUJm@webmail.aegee.org> <520273.1629872978@sss.pgh.pa.us> <3894d2a91d141b0fe454da01b3b7faad6fa9d07a.camel@aegee.org> <544882.1629900910@sss.pgh.pa.us> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.41.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello Tom, I run Linux from Scratch system. All old binaries, are linked with libldap(_r)-2.4, all new things get linked towards libldap-2.5 . So the configuration step always sees libldap-2.5 as most current (and its header files). I can in theory point the build process to versioned- headers, but I do not have to. The problem here is, that libldap_r-2.4, libldap-2.4, and libldap-2.5 are installed on the system. I want that libpq.so is not linked with libldap_r-2.4, but with libldap-2.5. Greetings Dilyan Palauzov On Wed, 2021-08-25 at 10:15 -0400, Tom Lane wrote: > =?UTF-8?Q?=D0=94=D0=B8=D0=BB=D1=8F=D0=BD_?= =?UTF- > 8?Q?=D0=9F=D0=B0=D0=BB=D0=B0=D1=83=D0=B7=D0=BE=D0=B2?= > writes: > > Hello Tom, > > on my system I have installed first OpenLDAP 2.4, and then in > > addition > > OpenLDAP 2.5. > > Doesn't sound like a particularly good idea.  How are you going to > get their header files to coexist?  What if configure sees the wrong > header file for the library it picks up? > >                         regards, tom lane