Compile GnuPG 1.4 under cygwin?

Maxine Brandt torduninja at
Tue Dec 28 19:40:17 CET 2004

Jeroen Budts wrote:

 > >Since you're coming from a Windows environment, you should probably
 > >> consider MinGW/MSys with a few optional pieces from the SourceForge
 > >> GnuWin32 project.
 > >>
 > Yes maybe that's indeed better. I already had a look on the document
 > that explains building GnuPG using MingW [1] but since i already have
 > cygwin on my system and MingW seems to try to do about the same as
 > cygwin but in a different way, it seemed a bit like installing the same
 > software twice to me... (but maybe that's a wrong interpretation)
 > In the how-to they say to modify two files: the configure-script and
 > seat.test. Looking at the configure script in gnupg 1.4 these changes or
 > not necessary anymore (the how-to is for 1.3.92), since a precompiler if
 > statement was added. However seat.test is still the same so does it
 > needs the change from the how-to?

Yes, you should modify the seat.test file, though this only affects 
whether or not the seat test is passed in "make check". More importantly 
you will have to fix the bug that prompted the quick release of 1.4.0a 
for Windows.

John Clizbe posted the fix on Dec. 16:
diff -u -r1.71 iobuf.c
- --- util/iobuf.c        6 Dec 2004 10:32:20 -0000       1.71
+++ util/iobuf.c        16 Dec 2004 19:30:27 -0000
@@ -146,7 +146,7 @@
                          || (*a == '\' && *b == '/')) )
- -  return *(const unsigned *)a - *(const unsigned *)b;
+  return *(const unsigned char *)a - *(const unsigned char *)b;
    return strcmp (a, b);

With those two changes it compiled for me apparently without error, 
though I found a minor problem with the gpgkeys_ldap binary; --send-keys 
doesn't recognise a keyserver option in gpg.conf and the keyserver must 
be specified in the command.



More information about the Gnupg-users mailing list