On 19.07.21 11:33, Max Kellermann wrote:
Package: libpq-dev
Version: 14~beta2-1

pg_config.h is a public header and needed if an application wants to
check the version number at compile time.  However, in version 14, it
leaks a lot of internal PostgreSQL macros, e.g. OPENSSL_API_COMPAT
which breaks applications using OpenSSL directly:

  /usr/include/postgresql/pg_config.h:791:9: error: 'OPENSSL_API_COMPAT' macro 
redefined [-Werror,-Wmacro-redefined]
  #define OPENSSL_API_COMPAT 0x10001000L
          ^
  <command line>:10:9: note: previous definition is here
  #define OPENSSL_API_COMPAT 0x10100000L
          ^


pg_config.h should only be included when compiling server-side plugins. Under what circumstances would such a plug-in use OpenSSL directly? Could you explain in more detail what you are trying to do?

Reply via email to