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 1wAR1h-002Nh9-0z for pgsql-general@arkaria.postgresql.org; Wed, 08 Apr 2026 11:24:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wAR1f-006oWy-2f for pgsql-general@arkaria.postgresql.org; Wed, 08 Apr 2026 11:24:52 +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 1wAR1f-006oWp-1W for pgsql-general@lists.postgresql.org; Wed, 08 Apr 2026 11:24:51 +0000 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wAR1d-00000001D0o-2uGE for pgsql-general@lists.postgresql.org; Wed, 08 Apr 2026 11:24:51 +0000 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-488a4bc360bso22750815e9.0 for ; Wed, 08 Apr 2026 04:24:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1775647488; x=1776252288; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=XCRe1kCteHiXF+gzTg5eqDHD9Y0pWuAQAp2mUg/m0lI=; b=FsCDc3NHLBPC6nA7mUXBL4gnOtC1fX3b09nlUv6dpfLwN6KL3kpnBaX8NNxyZ1i5l2 7Aqu3kUPVyRhNL1Dwhuhm8+wqNiBVYyKvmikkVw4XDmYkIvp8pDplr7XQ0jmO6rWVkJ1 ua5Aq7Pr1uYg6IhU2+gx441LxiV/8OrXp90H2UFWI+zb8k+wsuanvLFWGsCo591vMdmU KqheieR/FNKRRqjwpikPkAR3IPwZjc/VwIqPxs2OSgWwR487dqzW99Yb9wjLQMQxbGcI yRECoUkGQ3jSWBno25sPl1r7P79B95YMbOsMbXG+Bg53Qqh5kh6jElKYrPQ4BMFd5D9o F6YA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775647488; x=1776252288; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=XCRe1kCteHiXF+gzTg5eqDHD9Y0pWuAQAp2mUg/m0lI=; b=FCPc7RFwQWOGLqOXKdlJU2Us3eqZZdOH95KnlXSbtyJ98QRvd2pr3vn/5qIqnTTM+m gd+sbC4lWWth3RvOA4P8pEVC0iDq+vkIglGz7sbviyJUwk0z+d0tQJF4s2tcb9Y6ai22 GBaAO6kerv8d+wmm3YT5jdP80RlEiKAZ6q6CNFSDQvnjNK/XpJIFOQ2dbjF2glzj2Jof GQhBTEK7xXM3NaAZkq9rCaYPWv5WvB1QXzrhrtJmbh9pfW0BgmHqm3IMj5Dh264Cv2+A kRZCLV6vsyASX6jBGiJaRsAc4Ufd3bIfnFer541hA6cT4KnpnWScwNZLjQZsZjvw6q6X b2Yw== X-Forwarded-Encrypted: i=1; AJvYcCXnYSXlsAlVcq+k42b44WOr/tE9iqFFVRgMeWQ52DWW2rrZvPpbwwgSGf7vR8uxR4QXqK9eK9ivmurRqxoe@lists.postgresql.org X-Gm-Message-State: AOJu0YybpDXWj34oeSD0ChDzzs2VDmvInh3fG7sIdf/MxYouk1XWL4mQ axfsojOTUnbBpvgysqhrpAPm6j0G8gSZ/Qgi2TT4DTrNDphSCE8ZAFx2OhHmYajl3rxSz8L4NS7 c9rPJG+qlUA== X-Gm-Gg: AeBDietK8nJJWN5at2faNtKjZQEPBhTQJE2Wrp0W8ES+QBDNzrKfqwflRrnazP3yTPo +R8JzAOd23gqv6q9JqWQNSsjSts74thN7YrYAxmxZHVOKSHrxp6Ikl22i4SSOa+pHW0ATUFaeel 3L3wgN4PWfUZAt3LNeHzHUh13+wJln3SeRJqn6zmYlJ+WSDTUKLmUkkXHv+uk4NprchoRHl3sXH 369WYZCe3SubNiofrXBfdpFslTptNwFijdW7MIJmi2BVlGdY30il4J5UCYSK9aWwjlIkqFw7aSu 0EXE7DSdIKBQeJS6RB1FwI5WBvx1RWOuK+KQeOLy2eqXLizqrauHzlkvJK64ztjg7/GHBOHC7ir qQ3bGxxxA2VpNA2vTuTkZW0s4uyZ2jNHEFA65LiomrNzSrnMmThduMBRBTR7EiIaIi7LiyMA9Js /pj7HV9+HGIqE6zO4EiqM3G2CVfXz5+MK9Y+ECELrZnpEaYRwGSHY+ X-Received: by 2002:a05:600c:5292:b0:487:1826:d89b with SMTP id 5b1f17b1804b1-488996ecd1cmr312678515e9.9.1775647488359; Wed, 08 Apr 2026 04:24:48 -0700 (PDT) Received: from laurenz.albe-K4N0CV00F97414D ([88.116.133.170]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-488c5dee539sm16683675e9.35.2026.04.08.04.24.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Apr 2026 04:24:47 -0700 (PDT) Message-ID: Subject: Re: configure && --with From: Laurenz Albe To: Matthias Apitz , Tom Lane , pgsql-general@lists.postgresql.org Date: Wed, 08 Apr 2026 13:24:47 +0200 In-Reply-To: References: <2040885.1775571708@sss.pgh.pa.us> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.58.3 (3.58.3-1.fc43) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 2026-04-08 at 11:02 +0200, Matthias Apitz wrote: > El d=C3=ADa mi=C3=A9rcoles, abril 08, 2026 a las 08:57:24 +0200, Matthias= Apitz escribi=C3=B3: >=20 > > Thanks for your hints. I do use now: > >=20 > > $ ./configure --prefix=3D/usr/local/sisis-pap/pgsql-18.3 \ > > --libdir=3D/usr/local/sisis-pap/pgsql-18.3/lib \ > > --with-includes=3D/usr/local/sisis-pap/include \ > > --with-libraries=3D/usr/local/sisis-pap/lib \ > > --enable-nls \ > > --with-perl \ > > --with-ldap \ > > --with-pam \ > > --without-icu \ > > --with-openssl > >=20 > > but it still says in config.log > >=20 > > ... > > 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 > >=20 > > The libs are in the correct place: > >=20 > > $ 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/libcryp= to.so.3 > > /usr/local/sisis-pap/lib/libcrypto.so >=20 > I run the full ./configure below strace(1) and it turns out what I was > especting: >=20 > $ grep -n execve tr | grep bin/openssl > 518130:1081 execve("/usr/local/sisis-pap/bin/openssl", ["/usr/local/sisi= s-pap/bin/openssl", "version"], 0x560886d493e0 /* 78 vars */) =3D 0 >=20 > now looking for the PID 1081 only and the fetched libs: >=20 > 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) =3D -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) =3D -1 ENOENT (Datei oder Verzeichnis nicht gefunden) > 1081 openat(AT_FDCWD, "/usr/lib64/libssl.so.3", O_RDONLY|O_CLOEXEC) =3D = 3 > 1081 openat(AT_FDCWD, "/usr/lib64/libcrypto.so.3", O_RDONLY|O_CLOEXEC) = =3D 3 >=20 > 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: Then why don't you set LD_LIBRARY_PATH in the environment where you call ./= configure? Alternatively, perhaps it is possible to build OpenSSL with an RPATH that points to its shared libraries. Yours, Laurenz Albe