Re: Compile psql 9.6 with SSL Version 1.1.0

2018-10-16 Thread Adrian Klaver
On 10/16/18 2:27 AM, csusza wrote: Hi, Thanks for the replies and the help, but unfortunately it did not help my case to just simply add and enable the missing flags as it is stated here: Did you get the same errors? In order to allow the code to compile with OpenSSL 1.1.0, all the flags m

Re: Compile psql 9.6 with SSL Version 1.1.0

2018-10-16 Thread csusza
Hi, Thanks for the replies and the help, but unfortunately it did not help my case to just simply add and enable the missing flags as it is stated here: > In order to allow the code to compile with > OpenSSL 1.1.0, all the flags mentioned above need to be enabled in > pg_config.h.win32 https:/

Re: Compile psql 9.6 with SSL Version 1.1.0

2018-10-13 Thread Michael Paquier
On Fri, Oct 12, 2018 at 12:17:40PM -0400, Tom Lane wrote: > So the immediate fix for building on Windows is you need to manually > define all of those in pg_config.h. We probably ought to try to make > that less painful, though. At the very least it'd be good if there > were just one symbol you h

Re: Compile psql 9.6 with SSL Version 1.1.0

2018-10-12 Thread Adrian Klaver
On 10/12/18 8:06 AM, Ádám Maracska wrote: Please reply to list also. Ccing list. Hi, Thanks for the short answer and thanks for reminding me for the most essential details that I missed.:) >What OS and version of same are you compiling in? So I would like to compile it for windows 10 x64 an

Re: Compile psql 9.6 with SSL Version 1.1.0

2018-10-12 Thread Pratik Parikh
Thanks for providing the insight needed to make this work on Windows. On Fri, Oct 12, 2018, 12:17 PM Tom Lane wrote: > Pratik Parikh writes: > > I have seen the same failure on windows build. I can only use > > openssl 1.02(x). > > Hmm ... looking at it closer, I realize that part of the probl

Re: Compile psql 9.6 with SSL Version 1.1.0

2018-10-12 Thread Tom Lane
Pratik Parikh writes: > I have seen the same failure on windows build. I can only use > openssl 1.02(x). Hmm ... looking at it closer, I realize that part of the problem is that with 1.1.0 you need HAVE_BIO_METH_NEW to be defined, and there's no mechanism for doing that in the MSVC build code.

Re: Compile psql 9.6 with SSL Version 1.1.0

2018-10-12 Thread Pratik Parikh
I have seen the same failure on windows build. I can only use openssl 1.02(x). On Fri, Oct 12, 2018 at 11:32 AM Tom Lane wrote: > =?UTF-8?B?w4Fkw6FtIE1hcmFjc2th?= writes: > > Currently I am trying to compile my pqlib with SSL version 1.1.0, but I > get > > the following errors: > > *fe-secure-

Re: Compile psql 9.6 with SSL Version 1.1.0

2018-10-12 Thread Tom Lane
=?UTF-8?B?w4Fkw6FtIE1hcmFjc2th?= writes: > 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'* > [etc] That certainly ought to work, and does work

Re: Compile psql 9.6 with SSL Version 1.1.0

2018-10-12 Thread Adrian Klaver
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: 'pqsec

Compile psql 9.6 with SSL Version 1.1.0

2018-10-12 Thread Ádám Maracska
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-sec