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 1rlaCs-003C5h-9Z for pgsql-bugs@arkaria.postgresql.org; Sat, 16 Mar 2024 20:00:38 +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 1rlaCq-00HU0q-G5 for pgsql-bugs@arkaria.postgresql.org; Sat, 16 Mar 2024 20:00:36 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rlaCq-00HU0h-7b for pgsql-bugs@lists.postgresql.org; Sat, 16 Mar 2024 20:00:36 +0000 Received: from dd25110.kasserver.com ([85.13.146.49]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rlaCl-004rfC-VX for pgsql-bugs@lists.postgresql.org; Sat, 16 Mar 2024 20:00:35 +0000 Received: from [192.168.0.101] (ip-037-201-153-175.um10.pools.vodafone-ip.de [37.201.153.175]) by dd25110.kasserver.com (Postfix) with ESMTPSA id A2525E1A01BD; Sat, 16 Mar 2024 21:00:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=technowledgy.de; s=kas202308201259; t=1710619229; bh=vVMMZpriN8HJQJkTyXCFdV6eAdY4axxLc2WDh84bfQo=; h=Date:From:Subject:To:Cc:References:In-Reply-To:From; b=mUt5QT42I6dx12AoQA7GAmfaVxb82qZ2gB4AIC3wgKPIQ2YuHWRcI7FfvL34J1IOX /BurIEPnLIu9SNxkQiZf524oVi3tMBXzQUrZ/rddlDZ/4qNADhbJxJ4FZGcMDvfVmb HONyUak9tVqgNjvc4SCEbYzSKHF6OZf6kyMX8VzHlNGsLrbqs7NeKMDc2eOAy3IRbO kE4J16VgdFX7Z/RfdgXHKrExHcLgAoO28h+LzDt7bZkCZzSljKjGgb3cLU8tEHJgbR FZgT51g+KLzx9UGhaw6aZVNlgNfjIgQoc6RN+4/ZuiJARyl/Hdot8ZOa3WkrcwGaK8 SE+Ujq3fGQd6w== Message-ID: Date: Sat, 16 Mar 2024 21:00:28 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Wolfgang Walther Subject: Re: Regression tests fail with musl libc because libpq.so can't be loaded Content-Language: en-US To: Andrew Dunstan Cc: Tom Lane , PostgreSQL Bugs References: <2852940.1710599083@sss.pgh.pa.us> <443da167-ee01-47d2-9c83-105694b4cbd5@technowledgy.de> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spamd-Bar: / List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andrew Dunstan: > On Alpine Linux, which uses musl libc, you have to run `make install` > before you can run `make check`. Have you tried that? I can see how that could work around the problem, because the library would already be available in the default library path / rpath and LD_LIBRARY_PATH would not be needed. However, this would only be a workaround for the specific case of running the regression tests, not a solution. Using LD_LIBRARY_PATH, as documented, would still not be possible. In my case, I am just using docker images with Alpine to easily reproduce the problem. I am building with NixOS / nixpkgs' pkgsMusl. The order of check and install phases can't be changed there, AFAICT. The workaround I use right now is to temporarily patch rpath of the postgres binary - this will be reset during the install phase anyway. This works, but again is not a real solution. Best, Wolfgang