OpenSSL conflicts with wincrypt.h - Mailing list pgsql-hackers

From Juan José Santamaría Flecha
Subject OpenSSL conflicts with wincrypt.h
Date
Msg-id CAC+AXB0kw-Sdjbycp--J7AoRSN-j24UVUkhs3FTnjqu6q6=hNw@mail.gmail.com
Whole thread Raw
Responses Re: OpenSSL conflicts with wincrypt.h  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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


Attachment

pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: the build farm is ok, but not the hippopotamus (or the jay)
Next
From: Juan José Santamaría Flecha
Date:
Subject: pg_receivewal.exe unhandled exception in zlib1.dll