OpenSSL conflicts with wincrypt.h

Поиск
Список
Период
Сортировка
От Juan José Santamaría Flecha
Тема OpenSSL conflicts with wincrypt.h
Дата
Msg-id CAC+AXB0kw-Sdjbycp--J7AoRSN-j24UVUkhs3FTnjqu6q6=hNw@mail.gmail.com
обсуждение исходный текст
Ответы Re: OpenSSL conflicts with wincrypt.h  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hello,

When building Postgres using MSVC with Kerberos Version 4.1 and OpenSSL 1.1.1l (both of them, using only one will raise no errors), I see errors like:

"C:\postgres\pgsql.sln" (default target) (1) ->
"C:\postgres\postgres.vcxproj" (default target) (2) ->
(ClCompile target) ->
  C:\postgres\src\backend\libpq\be-secure-openssl.c(583,43): warning C4047: 'function': 'X509_NAME *' differs in levels of indirection from 'int' [C:\postgres\pos
tgres.vcxproj]

"C:\postgres\pgsql.sln" (default target) (1) ->
"C:\postgres\postgres.vcxproj" (default target) (2) ->
(ClCompile target) ->
  C:\postgres\src\backend\libpq\be-secure-openssl.c(74,35): error C2143: syntax error: missing ')' before '(' [C:\postgres\postgres.vcxproj]

There is a comment in 'src/backend/libpq/be-secure-openssl.c' addressing this issue, but I have to explicitly undefine X509_NAME. Please find attached a patch for so.

Regards,

Juan José Santamaría Flecha


Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: the build farm is ok, but not the hippopotamus (or the jay)
Следующее
От: Juan José Santamaría Flecha
Дата:
Сообщение: pg_receivewal.exe unhandled exception in zlib1.dll