Re: BUG #15789: libpq compilation with OpenSSL 1.1.1b fails onWindows with Visual Studio 2017

Поиск
Список
Период
Сортировка
Искать
От
Juan José Santamaría Flecha
Тема
Re: BUG #15789: libpq compilation with OpenSSL 1.1.1b fails onWindows with Visual Studio 2017
Дата
в 14:11:37
Msg-id
CAC+AXB2gUvPEg_AcCVE-DREP3nECi7bvaaOhre-sZVHj7Khjhw@mail.gmail.com
Ответ на
Список
Дерево обсуждения
BUG #15789: libpq compilation with OpenSSL 1.1.1b fails on Windows with Visual Studio 2017 PG Bug reporting form <noreply@postgresql.org>
Re: BUG #15789: libpq compilation with OpenSSL 1.1.1b fails onWindows with Visual Studio 2017 Juan José Santamaría Flecha <juanjo.santamaria@gmail.com>
Re: BUG #15789: libpq compilation with OpenSSL 1.1.1b fails onWindows with Visual Studio 2017 Michael Paquier <michael@paquier.xyz>
Re: BUG #15789: libpq compilation with OpenSSL 1.1.1b fails onWindows with Visual Studio 2017 Juan José Santamaría Flecha <juanjo.santamaria@gmail.com>
Re: BUG #15789: libpq compilation with OpenSSL 1.1.1b fails onWindows with Visual Studio 2017 Michael Paquier <michael@paquier.xyz>
Re: BUG #15789: libpq compilation with OpenSSL 1.1.1b fails onWindows with Visual Studio 2017 Sandeep Thakkar <sandeep.thakkar@enterprisedb.com>
Re: BUG #15789: libpq compilation with OpenSSL 1.1.1b fails onWindows with Visual Studio 2017 Michael Paquier <michael@paquier.xyz>
Re: BUG #15789: libpq compilation with OpenSSL 1.1.1b fails onWindows with Visual Studio 2017 Juan José Santamaría Flecha <juanjo.santamaria@gmail.com>
Re: BUG #15789: libpq compilation with OpenSSL 1.1.1b fails onWindows with Visual Studio 2017 Michael Paquier <michael@paquier.xyz>
Re: BUG #15789: libpq compilation with OpenSSL 1.1.1b fails onWindows with Visual Studio 2017 Juan José Santamaría Flecha <juanjo.santamaria@gmail.com>
Re: BUG #15789: libpq compilation with OpenSSL 1.1.1b fails onWindows with Visual Studio 2017 Michael Paquier <michael@paquier.xyz>
Re: BUG #15789: libpq compilation with OpenSSL 1.1.1b fails onWindows with Visual Studio 2017 Juan José Santamaría Flecha <juanjo.santamaria@gmail.com>
Re: BUG #15789: libpq compilation with OpenSSL 1.1.1b fails onWindows with Visual Studio 2017 Michael Paquier <michael@paquier.xyz>
Re: BUG #15789: libpq compilation with OpenSSL 1.1.1b fails onWindows with Visual Studio 2017 Alvaro Herrera <alvherre@2ndquadrant.com>
Re: BUG #15789: libpq compilation with OpenSSL 1.1.1b fails onWindows with Visual Studio 2017 Michael Paquier <michael@paquier.xyz>
Re: BUG #15789: libpq compilation with OpenSSL 1.1.1b fails onWindows with Visual Studio 2017 Juan José Santamaría Flecha <juanjo.santamaria@gmail.com>
Re: BUG #15789: libpq compilation with OpenSSL 1.1.1b fails onWindows with Visual Studio 2017 Michael Paquier <michael@paquier.xyz>
Re: BUG #15789: libpq compilation with OpenSSL 1.1.1b fails onWindows with Visual Studio 2017 Michael Paquier <michael@paquier.xyz>

On Tue, May 28, 2019 at 12:58 PM Michael Paquier <michael@paquier.xyz> wrote:

Could you add your patch to the upcoming commit fest please?  Here it
is:
https://commitfest.postgresql.org/23/


Sure, done as  [1]. The attached patch is still for 11, will it be back patched?
 

+   # Startint at version 1.1.0 OpenSSL have changed their library names from:
+   #     libeay to libcrypto
+   #     ssleay to libssl

s/startint/starting/
Are these from the installers we recommend in the docs?  I mean these
ones:
https://slproweb.com/products/Win32OpenSSL.html


The change in the library names comes directly from OpenSSL [2].
 
+   if (-e "$self->{options}->{openssl}/lib/VC/libssl32MD.lib")
Why not using a version-specific logic here?


The version logic is just before that:

+ my ($major, $minor) = $self->GetOpenSSLVersion();
+ if ($major == 1 && $minor == 1)

I guess that what you mean is, why testing the 32/64 bits using the libraries instead of using the 'platform'? I try to make it clearer in this version.   
 
+   my ($major, $minor) = $self->GetOpenSSLVersion();
+   if ($major == 1 && $minor == 1)
+   {
+       print $o "#define HAVE_BIO_GET_DATA 1\n";
+       print $o "#define HAVE_BIO_METH_NEW 1\n";
+   }
I think that you are missing HAVE_OPENSSL_INIT_SSL and
HAVE_ASN1_STRING_GET0_DATA here.  Please see commit message of
bde64eb.


Yes, you are right. Since those do not break the compilation between 1.0.2 and 1.1.0 I did not notice them.

Regards,

Juan José Santamaría Flecha


В списке pgsql-bugs по дате отправления
От: David G. Johnston
Дата:
От: PG Bug reporting form
Дата:
FAQ