Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rtUYc-00F9be-NM for pgsql-bugs@arkaria.postgresql.org; Sun, 07 Apr 2024 15:35:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rtUYb-008U41-Jo for pgsql-bugs@arkaria.postgresql.org; Sun, 07 Apr 2024 15:35:45 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rtUYb-008Ty1-AZ for pgsql-bugs@lists.postgresql.org; Sun, 07 Apr 2024 15:35:45 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rtUYX-001P0q-Jw for pgsql-bugs@lists.postgresql.org; Sun, 07 Apr 2024 15:35:43 +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 437FZe1H2848765; Sun, 7 Apr 2024 11:35:40 -0400 From: Tom Lane To: arun007@pm.me cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18424: Build failure when static linking with openldap In-reply-to: <18424-bc056c6239e511fd@postgresql.org> References: <18424-bc056c6239e511fd@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Sun, 07 Apr 2024 13:21:45 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2848763.1712504140.1@sss.pgh.pa.us> Date: Sun, 07 Apr 2024 11:35:40 -0400 Message-ID: <2848764.1712504140@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: > Static linking openldap results in failure with the following error: > libpq.so.5.16: U pthread_exit@GLIBC_2.2.5 > libpq must not be calling any function which invokes exit [ shrug... ] So don't do that. Statically linking libraries from different sources is a pretty evil idea anyway, because it makes package updates much harder. Having said that, if you're hacking the makefiles enough to make the link static, you can surely find and remove that check. Just don't expect us to take a patch to that effect. regards, tom lane