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
Дата
Msg-id CAC+AXB2gUvPEg_AcCVE-DREP3nECi7bvaaOhre-sZVHj7Khjhw@mail.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>)
Список pgsql-bugs

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"
Дата:
Сообщение: Re: BUG #15826: BUG: Where-Clause referring to iso-8859-1 column in CTEis ignored in Update-statement
Следующее
От: PG Bug reporting form
Дата:
Сообщение: BUG #15827: Unable to connect on Windows using pg_services.conf using Python psycopg2