gnupg on windows

Jan-Oliver Wagner jan at intevation.de
Tue Jan 9 20:22:32 CET 2001


Dear all,

to decrease the technical Windows trouble for the
future I propose to add help and patches
to the CVS.

The aim should be to avoid numerous postings with 
patches to compile gnupg for Windows.
To avoid this we should

1. Add information on how to compile gnupg
	for Windows (in INSTALL).
	This should include the major options:
	* mingw cross-compiler (the description
		is already written by Werner)
	* cygnus (several postings, I can write
		up my experience)
	* mingw on Windows
	* MSVC on Windows (uuuh, we should ask
		anyone to do that, but if someone
		really wants to do it, the steps
		should be described and associated
		patches included)

2. Add patches to the CVS that make it easier
	to compiler for Windows. That will
	decrease maintenance rather than increase.

Here are some patches that lower the
efford to compile gnupg under cygnus
(partly inspired by David Woakes patches
on this mailing list).
Werner, can you add the patches to gnupg?
They refer to the STABLE-1.0 branch.

BTW: We have sorted out the Registry problems.
Will post a new gnupg installer tomorrow.

Cheers

	Jan

Index: configure.in
===================================================================
RCS file: /home/koch/cvs/gnupg/configure.in,v
retrieving revision 1.103.2.28
diff -r1.103.2.28 configure.in
140a141,147
>     *-*-cygwin*)
>         # special stuff for Windoze NT
>         CC="gcc"
>         CPP="gcc -E"
>         RANLIB="ranlib"
>         disallowed_modules="tiger rndunix rndlinux rndegd"
>         ;;
171c178
<     *-*-mingw32*)
---
>     *-*-mingw32* | *-*-cygwin*)
235a243,245
>     *-*-cygwin*)
>         PRINTABLE_OS_NAME="Cygwin32"
>         ;;
506c516
<           *-*-mingw32*)
---
>           *-*-mingw32* | *-*-cygwin*)
Index: cipher/rndw32.c
===================================================================
RCS file: /home/koch/cvs/gnupg/cipher/Attic/rndw32.c,v
retrieving revision 1.1.4.6
diff -r1.1.4.6 rndw32.c
70c70,72
< 
---
> #ifdef __CYGWIN__
> #include <w32api/winioctl.h>
> #endif
Index: util/secmem.c
===================================================================
RCS file: /home/koch/cvs/gnupg/util/Attic/secmem.c,v
retrieving revision 1.29.2.6
diff -r1.29.2.6 secmem.c
155a156,159
>   #elif defined ( HAVE_MMAP )
>     /*
>      * assuming mmap us secure
>      */
Index: util/simple-gettext.c
===================================================================
RCS file: /home/koch/cvs/gnupg/util/simple-gettext.c,v
retrieving revision 1.2.2.1
diff -r1.2.2.1 simple-gettext.c
30c30
< #ifndef __MINGW32__
---
> #if !defined(__MINGW32__) && !defined(__CYGWIN__)
Index: util/w32reg.c
===================================================================
RCS file: /home/koch/cvs/gnupg/util/w32reg.c,v
retrieving revision 1.1.2.2
diff -r1.1.2.2 w32reg.c
22c22
< #ifdef __MINGW32__  /* This module is only used in this environment */
---
> #if defined(__MINGW32__) || defined(__CYGWIN__)  /* This module is only used in this environment */



More information about the Gnupg-devel mailing list