bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Wget1.21 fails to build on MinGW(Windows)


From: G-Ey3dr
Subject: Wget1.21 fails to build on MinGW(Windows)
Date: Wed, 6 Jan 2021 18:47:38 +0900

Hello all,

Wget1.21 fails to build on MinGW(Windows).
Is it okay to not use getrandom() roughly?


C:/msys32/mingw32/bin/../lib/gcc/i686-w64-mingw32/10.2.0/../../../../i686-w64-mingw32/bin/ld.exe:
../lib/libgnu.a(getrandom.o): in function `getrandom':
C:\home\user3\src\wget-1.21/lib\getrandom.c:129: undefined reference to
`BCryptGenRandom@16'
collect2.exe: error: ld returned 1 exit status


--- wget-1.21.old/lib/getrandom.c 2021-01-01 00:53:24.000000000 +0900
+++ wget-1.21.new/lib/getrandom.c 2021-01-05 20:47:15.596051900 +0900
@@ -35,6 +35,7 @@
+#define HAVE_LIB_BCRYPT 0
 #  if HAVE_LIB_BCRYPT
 extern NTSTATUS WINAPI BCryptGenRandom (BCRYPT_ALG_HANDLE, UCHAR *, ULONG,
ULONG);
 #  endif

--- wget-1.21.old/lib/tempname.c 2021-01-01 00:53:25.000000000 +0900
+++ wget-1.21.new/lib/tempname.c 2021-01-05 20:43:35.693044400 +0900
@@ -79,8 +79,10 @@
+  /*
   if (__getrandom (&r, sizeof r, 0) == sizeof r)
     return r;
+  */


Best Regards,
Reiji


reply via email to

[Prev in Thread] Current Thread [Next in Thread]