From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Ádám Maracska <csusza@gmail.com>
To: pgsql-general@postgresql.org
Subject: Re: Compile psql 9.6 with SSL Version 1.1.0
Date: Fri, 12 Oct 2018 07:50:59 -0700
Message-ID: <2a4e33e2-1a88-3f6e-3e40-ea0537ae5fed@aklaver.com> (raw)
In-Reply-To: <CAJtpbKR6-Ocj0ueZrM5yJwPwss-GdWsk9b=xzaROqUWA_-M_Lg@mail.gmail.com>
References: <CAJtpbKR6-Ocj0ueZrM5yJwPwss-GdWsk9b=xzaROqUWA_-M_Lg@mail.gmail.com>
On 10/12/18 7:15 AM, Ádám Maracska wrote:
> Hi,
>
> Currently I am trying to compile my pqlib with SSL version 1.1.0, but I
> get the following errors:
> /
> /
> /fe-secure-openssl.c(1582): error C2037: left of 'ptr' specifies
> undefined struct/union 'bio_st'/
> /fe-secure-openssl.c(1582): error C2198: 'pqsecure_raw_read': too few
> arguments for call/
> /fe-secure-openssl.c(1612): error C2037: left of 'ptr' specifies
> undefined struct/union 'bio_st'/
> /fe-secure-openssl.c(1612): error C2198: 'pqsecure_raw_write': too few
> arguments for call/
> /fe-secure-openssl.c(1670): error C2027: use of undefined type
> 'bio_method_st'/
> /fe-secure-openssl.c(1673): error C2027: use of undefined type
> 'bio_method_st'/
> /fe-secure-openssl.c(1674): error C2037: left of 'bread' specifies
> undefined struct/union 'bio_method_st'/
> /fe-secure-openssl.c(1675): error C2037: left of 'bwrite' specifies
> undefined struct/union 'bio_method_st'/
> /fe-secure-openssl.c(1701): error C2037: left of 'ptr' specifies
> undefined struct/union 'bio_st'/
>
> As I was checking the issue on google I found the following two message
> thread about it:
>
> - From 2016: Based on this the ssl version 1.1 is supported, but the
> message thread had not so promising end:
> https://www.postgresql.org/message-id/flat/E1bkVG3-0000L8-Ln%40gemulon.postgresql.org
> - From 2018: It had even more worse end. The questioner went back to
> 1.0.2 ssl version, which is not an option for me, because that version
> will not be supported shortly by openssl itself.
> https://www.postgresql.org/message-id/CAAw-Mseg9JYpp%3DA%3D51HR3rKiQtbvT0MWw%2BaYFwNeJEbdNr%3DCDA%40...
>
> Also I checked the source files and I saw these kind of comments:
> / They are also not needed with OpenSSL 1.1.0 anymore.
> (fe-secure-openssl.c)/
> /
> /
> I suppose it is possible to compile the pqlib with ssl 1.1, but I can
> not wrap my head around it. Maybe I should set some ifdefs for the
> precompiler beforehand?
>
> I appreciate any help.
What OS and version of same are you compiling in?
Do you have the SSL dev libraries installed?
>
> Best Regards,
> Adam
--
Adrian Klaver
adrian.klaver@aklaver.com
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: adrian.klaver@aklaver.com, csusza@gmail.com
Subject: Re: Compile psql 9.6 with SSL Version 1.1.0
In-Reply-To: <2a4e33e2-1a88-3f6e-3e40-ea0537ae5fed@aklaver.com>
References: <CAJtpbKR6-Ocj0ueZrM5yJwPwss-GdWsk9b=xzaROqUWA_-M_Lg@mail.gmail.com> <2a4e33e2-1a88-3f6e-3e40-ea0537ae5fed@aklaver.com>
* 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