[patch] MinGW build
N. Durner
ndurner at web.de
Mon Apr 17 01:03:15 CEST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
the attached patch fixes a linker error and disables the "random" test
under MinGW because there's fork().
The patch does not include the Windows CryptoAPI patch proposed in
http://permalink.gmane.org/gmane.comp.encryption.gpg.libgcrypt.devel/1366
because it was rejected by Werner Koch and the CryptoAPI seems to be
unavailable on some Windows editions:
http://www.gnunet.org/mantis/view.php?id=1028
Apply the patch with
patch -p 0 < libgcrypt-mingw.diff
and rebuild ./configure using
autoconf -f -i
A prebuilt DLL is available from gnunet.org:
http://www.gnunet.org/download/win32/libgcrypt-1.2.2.zip
Best regards,
Nils Durner
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3rc2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEQs0zZR3zUj0j8l0RAq7PAKDHoLf6mOr/HsB2HFa+43FNLf1WqQCfakHn
FtWDRqZE7eGsXmt04BuFm3I=
=s0bO
-----END PGP SIGNATURE-----
-------------- next part --------------
diff -Naur libgcrypt-1.2.2/acinclude.m4 libgcrypt-1.2.2.nd/acinclude.m4
--- libgcrypt-1.2.2/acinclude.m4 Fri Jul 29 13:45:48 2005
+++ libgcrypt-1.2.2.nd/acinclude.m4 Sun Apr 16 11:57:28 2006
@@ -96,7 +96,7 @@
AC_DEFUN([GNUPG_SYS_SYMBOL_UNDERSCORE],
[tmp_do_check="no"
case "${target}" in
- i386-emx-os2 | i[3456]86-pc-os2*emx | i386-pc-msdosdjgpp)
+ i386-emx-os2 | i[3456]86-pc-os2*emx | i386-pc-msdosdjgpp | *-*-mingw32*)
ac_cv_sys_symbol_underscore=yes
;;
*)
diff -Naur libgcrypt-1.2.2/tests/random.c libgcrypt-1.2.2.nd/tests/random.c
--- libgcrypt-1.2.2/tests/random.c Tue Sep 13 09:15:59 2005
+++ libgcrypt-1.2.2.nd/tests/random.c Sun Apr 16 11:58:12 2006
@@ -16,6 +16,10 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
USA. */
+#include "config.h"
+
+#ifndef HAVE_DOSISH_SYSTEM
+
#include <assert.h>
#include <stdio.h>
#include <string.h>
@@ -220,7 +224,7 @@
die ("parent and child got the same nonce\n");
}
-
+#endif // HAVE_DOSISH_SYSTEM
@@ -228,6 +232,7 @@
int
main (int argc, char **argv)
{
+#ifndef HAVE_DOSISH_SYSTEM
int debug = 0;
if ((argc > 1) && (! strcmp (argv[1], "--verbose")))
@@ -248,5 +253,7 @@
check_forking ();
check_nonce_forking ();
+#endif // HAVE_DOSISH_SYSTEM
+
return 0;
}
More information about the Gcrypt-devel
mailing list