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.96) (envelope-from ) id 1wAOni-002LRv-0J for pgsql-general@arkaria.postgresql.org; Wed, 08 Apr 2026 09:02:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wAOne-006Byg-1P for pgsql-general@arkaria.postgresql.org; Wed, 08 Apr 2026 09:02:14 +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.96) (envelope-from ) id 1wAOne-006ByX-0M for pgsql-general@lists.postgresql.org; Wed, 08 Apr 2026 09:02:14 +0000 Received: from ms-10.1blu.de ([178.254.4.101]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wAOnc-00000001BwT-1JPo for pgsql-general@lists.postgresql.org; Wed, 08 Apr 2026 09:02:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=unixarea.de ; s=blu3434000; h=In-Reply-To:Content-Transfer-Encoding:Content-Type: MIME-Version:References:Reply-To:Message-ID:Subject:To:From:Date:Sender:Cc: Content-ID:Content-Description; bh=gH5ym7VweLq59puqbFLTBpdHBLBzusxXo/QQ6iXh6RE=; b=iMp8XA5u1ujo5yh6fE8of5GcEa wsW+r2TdSoiyNUFM1gr9uM8aTpN5yOB051j35Ew2SILfQ1ULlxRbNkapHcwKKx2t3lFiZvU5QZq93 Mi+QF2kX//xMOhb9tCHW73qzrwfbrVSWqpr3Cw5NXLstB+uMWvR3RX2Fg3bq2+v2/1e9UbgTOj970 cAmJxptEXGObaINcU1OOnJQPAkJRsullAC79epOj6Q7F1ZNekhqjavacQT56fIxnDSTSVaOkKe9XE NeFSbpCNtEkeuIeZNrf56Kbl/AHov1fX6zvVsFJLXyjyd+8hOlyLIIs8mI8c0VBp/EkLn/CZeaajV HeCyw8Ww==; Received: from [212.222.85.178] (helo=pureos) by ms-10.1blu.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1wAOnZ-00Dci7-E1; Wed, 08 Apr 2026 11:02:09 +0200 Date: Wed, 8 Apr 2026 11:02:07 +0200 From: Matthias Apitz To: Tom Lane , pgsql-general@lists.postgresql.org Subject: Re: configure && --with Message-ID: Reply-To: Matthias Apitz References: <2040885.1775571708@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Operating-System: FreeBSD 14.0-CURRENT 1400094 (amd64) X-message-flag: Mails in HTML will not be read! Send only plain text. X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 212.222.85.178 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk El día miércoles, abril 08, 2026 a las 08:57:24 +0200, Matthias Apitz escribió: > Thanks for your hints. I do use now: > > $ ./configure --prefix=/usr/local/sisis-pap/pgsql-18.3 \ > --libdir=/usr/local/sisis-pap/pgsql-18.3/lib \ > --with-includes=/usr/local/sisis-pap/include \ > --with-libraries=/usr/local/sisis-pap/lib \ > --enable-nls \ > --with-perl \ > --with-ldap \ > --with-pam \ > --without-icu \ > --with-openssl > > but it still says in config.log > > ... > configure:14192: checking for openssl > configure:14210: found /usr/local/sisis-pap/bin/openssl > configure:14222: result: /usr/local/sisis-pap/bin/openssl > configure:14242: using openssl: openssl not found > configure:14245: checking openssl/ssl.h usability > configure:14245: gcc -c -Wall -Wmissing-prototypes -Wpointer-arith > -Wdeclaration-after-statement -Werror=vla -Wendif-labels > -Wmissing-format-attribute -Wimplicit-fallthrough=3 > -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv > -fexcess-precision=standard -Wno-format-truncation -m64 > -I/usr/local/sisis-pap/include -m64 -I/usr/local/sisis-pap/include > -D_GNU_SOURCE -I/usr/local/sisis-pap/include conftest.c >&5 > configure:14245: $? = 0 > configure:14245: result: yes > ... > > The libs are in the correct place: > > > $ ls /usr/local/sisis-pap/lib/libs* > /usr/local/sisis-pap/lib/libssl.a /usr/local/sisis-pap/lib/libssl.so.3 > /usr/local/sisis-pap/lib/libssl.so > $ ls /usr/local/sisis-pap/lib/libcr* > /usr/local/sisis-pap/lib/libcrypto.a /usr/local/sisis-pap/lib/libcrypto.so.3 > /usr/local/sisis-pap/lib/libcrypto.so > I run the full ./configure below strace(1) and it turns out what I was especting: $ grep -n execve tr | grep bin/openssl 518130:1081 execve("/usr/local/sisis-pap/bin/openssl", ["/usr/local/sisis-pap/bin/openssl", "version"], 0x560886d493e0 /* 78 vars */) = 0 now looking for the PID 1081 only and the fetched libs: grep ^1081 tr | grep openat | egrep '/libssl|/libcry' 1081 openat(AT_FDCWD, "/usr/lib64/glibc-hwcaps/x86-64-v3/libssl.so.3", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Datei oder Verzeichnis nicht gefunden) 1081 openat(AT_FDCWD, "/usr/lib64/glibc-hwcaps/x86-64-v2/libssl.so.3", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Datei oder Verzeichnis nicht gefunden) 1081 openat(AT_FDCWD, "/usr/lib64/libssl.so.3", O_RDONLY|O_CLOEXEC) = 3 1081 openat(AT_FDCWD, "/usr/lib64/libcrypto.so.3", O_RDONLY|O_CLOEXEC) = 3 i.e. /usr/local/sisis-pap/bin/openssl does not pick-up its libs where it should, while with a correct LD_LIBRARY_PATH is does it fine: $ LD_LIBRARY_PATH=/usr/local/sisis-pap/lib strace /usr/local/sisis-pap/bin/openssl -v 2>&1 | grep libssl openat(AT_FDCWD, "/usr/local/sisis-pap/lib/glibc-hwcaps/x86-64-v3/libssl.so.3", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Datei oder Verzeichnis nicht gefunden) openat(AT_FDCWD, "/usr/local/sisis-pap/lib/glibc-hwcaps/x86-64-v2/libssl.so.3", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Datei oder Verzeichnis nicht gefunden) openat(AT_FDCWD, "/usr/local/sisis-pap/lib/libssl.so.3", O_RDONLY|O_CLOEXEC) = 3 sisis@srap51dxr1:~/mpi-V73-sp2> LD_LIBRARY_PATH=/usr/local/sisis-pap/lib strace /usr/local/sisis-pap/bin/openssl -v 2>&1 | egrep 'libssl|libcry' openat(AT_FDCWD, "/usr/local/sisis-pap/lib/glibc-hwcaps/x86-64-v3/libssl.so.3", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Datei oder Verzeichnis nicht gefunden) openat(AT_FDCWD, "/usr/local/sisis-pap/lib/glibc-hwcaps/x86-64-v2/libssl.so.3", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Datei oder Verzeichnis nicht gefunden) openat(AT_FDCWD, "/usr/local/sisis-pap/lib/libssl.so.3", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/usr/local/sisis-pap/lib/libcrypto.so.3", O_RDONLY|O_CLOEXEC) = 3 -- Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub Annalena Baerbock: "We are fighting a war against Russia ..." (25.1.2023) I, Matthias, I am not at war with Russia. Я не воюю с Россией. Ich bin nicht im Krieg mit Russland.