Subject: bug#42185: An issue with bcrypt.h [MSYS2/MinGW64?]

From: Stefan Kangas <[email-masked]>
Date: Wed, 12 Aug 2020 17:40:08 -0700

Angelo Graziosi <[email-masked]> writes:

> This morning building the last master (32b3856f850e1) I get these warning while configuring:
>
> [...]
> checking whether getloadavg is declared... no
> checking bcrypt.h usability... no
> checking bcrypt.h presence... yes
> configure: WARNING: bcrypt.h: present but cannot be compiled
> configure: WARNING: bcrypt.h:     check for missing prerequisite headers?
> configure: WARNING: bcrypt.h: see the Autoconf documentation
> configure: WARNING: bcrypt.h:     section "Present But Cannot Be Compiled"
> configure: WARNING: bcrypt.h: proceeding with the compiler's result
> configure: WARNING:     ## ------------------------------------ ##
> configure: WARNING:     ## Report this to [email-masked] ##
> configure: WARNING:     ## ------------------------------------ ##
> checking for bcrypt.h... no
> checking whether the bcrypt library is guaranteed to be present... (cached) no
> checking whether gettimeofday clobbers localtime buffer... no
> checking for gettimeofday with POSIX signature... yes
> [...]
>
> The above occurred with the Windows build (MSYS2/MinGW64).

Could this be related to this commit?

commit 162f375bac22786d95a253f03de0148be4fe3201
Author: Eli Zaretskii <[email-masked]>
Date:   Sun Jun 28 18:26:20 2020 +0300

    MS-Windows fixes as followup to import of Gnulib 'getrandom'

    * nt/mingw-cfg.site (gl_cv_lib_assume_bcrypt): Set to "no" to
    disable linking against bcrypt.dll.  (Bug#42095)