Re: Libpq linked statically linked to OpenSSL/LibreSSL

From: Marco Bambini <marco(at)creolabs(dot)com>
To: ALBERTO CABELLO SÁNCHEZ <alberto(at)unex(dot)es>
Cc: Andres Freund <andres(at)anarazel(dot)de>, "pgsql-interfaces(at)lists(dot)postgresql(dot)org" <pgsql-interfaces(at)lists(dot)postgresql(dot)org>
Subject: Re: Libpq linked statically linked to OpenSSL/LibreSSL
Date: 2022-12-10 07:55:57
Message-ID: 5B426B6F-4BC9-43B6-B9E8-B0236A47B2AC@creolabs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

What sounds really odd is that I replaced all the occurrences of -lssl -lcrypto with the full path to the static libraries in all involved Makefile, but the resulting libpq.so library still has undefined links to the SSL functions.

> On 9 Dec 2022, at 09:00, ALBERTO CABELLO SÁNCHEZ <alberto(at)unex(dot)es> wrote:
>
>> Marco Bambini <marco(at)creolabs(dot)com> wrote:
>>
>> I tried to follow the advices from Andreas but without any luck.
>> I added the --with-includes=, --with-libraries= arguments to the configure
>> command (with path to my static LibreSSL libraries) and I also modified the Makefile.global with:
>> -Wl,-Bstatic -lssl -lcrypto -Wl,-Bdynamic
>>
>> The resulting libpq.so is bigger (in size) than the previous one but it continues
>> to try to dynamically load the SSL functions.
>
> This was also the result I got, -lssl seems to leave without effect the "-with-*" options.

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Трофимов Иван 2023-03-05 02:42:06 About default inBufSize (connection read buffer size) in libpq
Previous Message ALBERTO CABELLO SÁNCHEZ 2022-12-09 08:00:52 RE: Libpq linked statically linked to OpenSSL/LibreSSL