pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Joshua Poehls <joshua@poehls.me>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Compile 12.2 with specific OpenSSL libraries
Date: Tue, 29 Sep 2020 14:25:22 -0400
Message-ID: <713345.1601403922@sss.pgh.pa.us> (raw)
In-Reply-To: <CAF5Bchgtr3EYgGiMeVM9YNSTO6AfNBBvzMZP-YYnbeKNTbBEHQ@mail.gmail.com>
References: <CAF5Bchgtr3EYgGiMeVM9YNSTO6AfNBBvzMZP-YYnbeKNTbBEHQ@mail.gmail.com>

Joshua Poehls <joshua@poehls.me> writes:
> I'm compiling PG 12.2 (on CentOS 7) and need to ensure that it uses a
> specific version of OpenSSL (1.1.1h). I've added what I think are the
> appropriate `./configure` flags (see below) and compilation is successful
> but when I run `ldd -d initdb` or `readelf` I can see that it linked to a
> different version of libcrypto/libssl.

> --with-openssl --with-includes=/path/to/ssl/include
> --with-libraries=/path/to/ssl/lib

> My theory is that even though I'm adding --with-libraries/--with-includes,
> the build script is finding and using the version of OpenSSL in /lib64/
> because it has higher precedence somewhere.

Linux is generally pretty unfriendly to putting shlibs in nonstandard
places.  If you want to do that, you need to add an "rpath" spec to
the calling programs, or set LD_LIBRARY_PATH, or fool around with the
dynamic linker's configuration files.  "man ld.so" will get you started.

			regards, tom lane





view thread (5+ messages)  latest in thread

Message-ID: <713345.1601403922@sss.pgh.pa.us>
Permalink:  ../713345.1601403922@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/713345.1601403922@sss.pgh.pa.us

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, joshua@poehls.me
  Subject: Re: Compile 12.2 with specific OpenSSL libraries
  In-Reply-To: <713345.1601403922@sss.pgh.pa.us>
  References: <CAF5Bchgtr3EYgGiMeVM9YNSTO6AfNBBvzMZP-YYnbeKNTbBEHQ@mail.gmail.com> <713345.1601403922@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox