From: Tom Lane <tgl@sss.pgh.pa.us>
To: M Tarkeshwar Rao <m.tarkeshwar.rao@ericsson.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Cc: Nikhil Bhatia <nikhil.bhatia@ericsson.com>
Subject: Re: PostgreSQL C++ Interface version 14.9 using static library instead of shared library
Date: Fri, 20 Oct 2023 10:40:43 -0400
Message-ID: <3768987.1697812843@sss.pgh.pa.us> (raw)
In-Reply-To: <PAWPR07MB1009562738C1D6E857D37B52EAEDBA@PAWPR07MB10095.eurprd07.prod.outlook.com>
References: <DU2PR07MB9508B773CE95D47B2C5BEFC591DBA@DU2PR07MB9508.eurprd07.prod.outlook.com>
<PAWPR07MB1009562738C1D6E857D37B52EAEDBA@PAWPR07MB10095.eurprd07.prod.outlook.com>
M Tarkeshwar Rao <m.tarkeshwar.rao@ericsson.com> writes:
> While compiling PostgreSQL C++ Interface version 14.9 . Found that libpq.so is getting created with libssl.a and libcrypto.a instead of shared library libssl.so and libcrypto.so.
I don't see that happening here ...
$ ldd libpq.so.5.14
linux-vdso.so.1 (0x00007ffea6b41000)
libssl.so.1.1 => /lib64/libssl.so.1.1 (0x00007fc3be4b1000)
libcrypto.so.1.1 => /lib64/libcrypto.so.1.1 (0x00007fc3bdfc7000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fc3bdda7000)
libc.so.6 => /lib64/libc.so.6 (0x00007fc3bd9e2000)
libz.so.1 => /lib64/libz.so.1 (0x00007fc3bd7ca000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fc3bd5c6000)
/lib64/ld-linux-x86-64.so.2 (0x00007fc3be991000)
$ size libpq.so.5.14
text data bss dec hex filename
295038 12388 480 307906 4b2c2 libpq.so.5.14
It seems likely that there's some oddity in your build environment.
Maybe the libssl.so and libcrypto.so symlinks aren't present? Or take
a close look at the command that links libpq.so, and see if any odd
switches have crept in.
regards, tom lane
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, m.tarkeshwar.rao@ericsson.com, nikhil.bhatia@ericsson.com
Subject: Re: PostgreSQL C++ Interface version 14.9 using static library instead of shared library
In-Reply-To: <3768987.1697812843@sss.pgh.pa.us>
References: <DU2PR07MB9508B773CE95D47B2C5BEFC591DBA@DU2PR07MB9508.eurprd07.prod.outlook.com> <PAWPR07MB1009562738C1D6E857D37B52EAEDBA@PAWPR07MB10095.eurprd07.prod.outlook.com> <3768987.1697812843@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