public inbox for [email protected]
help / color / mirror / Atom feedFrom: Laurenz Albe <[email protected]>
To: Matthias Apitz <[email protected]>
To: Tom Lane <[email protected]>
To: [email protected]
Subject: Re: configure && --with
Date: Wed, 08 Apr 2026 13:24:47 +0200
Message-ID: <[email protected]> (raw)
In-Reply-To: <adYZj2yREZN2YJRg@pureos>
References: <adTLHOYqTDxT6auA@pureos>
<[email protected]>
<adX8VNY-qP1hJ7P6@c720-1400094>
<adYZj2yREZN2YJRg@pureos>
On Wed, 2026-04-08 at 11:02 +0200, Matthias Apitz wrote:
> 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
> >
> > 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:
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
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected], [email protected]
Subject: Re: configure && --with
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox