Compile GnuPG 1.4 under cygwin?

David Shaw dshaw at jabberwocky.com
Tue Dec 28 15:02:39 CET 2004


On Tue, Dec 28, 2004 at 10:01:11AM +0100, Jeroen Budts wrote:
> David Shaw wrote:
> >On Tue, Dec 28, 2004 at 12:34:00AM +0100, Jeroen Budts wrote:
> >
> >>In file included from http.c:46:
> >>srv.h:28:26: arpa/nameser.h: No such file or directory
> >>srv.h:29:20: resolv.h: No such file or directory
> >
> >troubles me a little.  Can you check if there is a resolv.h in your
> >cygwin install?  I was under the impression (possibly incorrect) that
> >resolv.h existed.
> >
> I can't find any resolv.h in my cygwin directory.. Do i need to download 
> any sources of cygwin to get it?

No, it's okay to not have it.  It is for an optional feature of the
HTTP handler (SRV support), and things work fine without it.

> I did find a message [1] on the devel-list about the same problem. When 
> i apply the patch to srv.h make works a bit longer, however after a 
> while it still gives an error, but now a different one.

Try the attached patch.

David
-------------- next part --------------
Index: passphrase.c
===================================================================
RCS file: /cvs/gnupg/gnupg/g10/passphrase.c,v
retrieving revision 1.73
retrieving revision 1.74
diff -u -r1.73 -r1.74
--- passphrase.c	17 Dec 2004 18:51:32 -0000	1.73
+++ passphrase.c	20 Dec 2004 05:19:09 -0000	1.74
@@ -30,8 +30,8 @@
 #include <sys/socket.h>
 #include <sys/un.h>
 #endif
-#if defined (_WIN32) || defined (__CYGWIN32__)
-# include <windows.h>
+#if defined (_WIN32)
+#include <windows.h>
 #endif
 #include <errno.h>
 #ifdef HAVE_LOCALE_H


More information about the Gnupg-users mailing list