[gnutls-devel] GnuTLS | 3.6.14 fails to build on Windows because of missing bcrypt/ncrypt (#1020)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Sat Jun 6 10:55:31 CEST 2020



Christoph Reiter created an issue: https://gitlab.com/gnutls/gnutls/-/issues/1020



`-lbcrypt -lncrypt` are missing

```
  CCLD     libgnutls.la
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: system/.libs/keys-win.o:keys-win.c:(.text+0x2e): undefined reference to `NCryptFreeObject'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: system/.libs/keys-win.o:keys-win.c:(.text+0xdd): undefined reference to `NCryptSignHash'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: system/.libs/keys-win.o:keys-win.c:(.text+0x128): undefined reference to `NCryptSignHash'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: system/.libs/keys-win.o:keys-win.c:(.text+0x3e4): undefined reference to `NCryptDecrypt'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: system/.libs/keys-win.o:keys-win.c:(.text+0x434): undefined reference to `NCryptDecrypt'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: system/.libs/keys-win.o:keys-win.c:(.text+0x1542): undefined reference to `NCryptFreeObject'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: system/.libs/keys-win.o:keys-win.c:(.text+0x1551): undefined reference to `NCryptFreeObject'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: system/.libs/keys-win.o:keys-win.c:(.text+0x156d): undefined reference to `NCryptOpenStorageProvider'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: system/.libs/keys-win.o:keys-win.c:(.text+0x16bb): undefined reference to `NCryptOpenKey'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: system/.libs/keys-win.o:keys-win.c:(.text+0x16f7): undefined reference to `NCryptGetProperty'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: system/.libs/keys-win.o:keys-win.c:(.text+0x185d): undefined reference to `NCryptFreeObject'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: system/.libs/keys-win.o:keys-win.c:(.text+0x2500): undefined reference to `NCryptDeleteKey'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: system/.libs/keys-win.o:keys-win.c:(.text+0x250a): undefined reference to `NCryptFreeObject'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: nettle/.libs/libcrypto.a(sysrng-bcrypt.o):sysrng-bcrypt.c:(.text+0x17): undefined reference to `BCryptGenRandom'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: nettle/.libs/libcrypto.a(sysrng-bcrypt.o):sysrng-bcrypt.c:(.text+0x89): undefined reference to `BCryptOpenAlgorithmProvider'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: nettle/.libs/libcrypto.a(sysrng-bcrypt.o):sysrng-bcrypt.c:(.text+0xea): undefined reference to `BCryptCloseAlgorithmProvider'
collect2.exe: error: ld returned 1 exit status
```

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/issues/1020
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20200606/94cebca1/attachment.html>


More information about the Gnutls-devel mailing list