* mutt and gpg 1.07
@ 2002-05-03 6:35 Olaf Foellinger
2002-05-17 4:15 ` Olaf Foellinger
0 siblings, 1 reply; 13+ messages in thread
From: Olaf Foellinger @ 2002-05-03 6:35 UTC (permalink / raw)
To: cygwin
Hi,
now where gnupg 1.07 is out and builds cleanly under cygwin I'll repeat
my question whether it is possible to get mutt working with gpg. All my
tries failed so far with the error that gpg cannot find the file mutt
reports to him. I'm not a developer so I cannot resolve the problem
myself but this is the biggest problem for me.
It should be not so difficult since on all other plattforms it works.
Gruss Olaf Föllinger
--
Olaf Föllinger
Leiter Fachbereich IT
S.E.S.A. Software und Systeme AG
Alt-Moabit 91a
D-10559 Berlin
Germany
Tel: +49 30 390722 -291
Fax: +49 30 390722 -222
Mobil: +49 173 6227080
http://www.sesa.de
mailto: Olaf.Foellinger@sesa.de
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: mutt and gpg 1.07
2002-05-03 6:35 mutt and gpg 1.07 Olaf Foellinger
@ 2002-05-17 4:15 ` Olaf Foellinger
2002-05-28 8:12 ` Olaf Foellinger
0 siblings, 1 reply; 13+ messages in thread
From: Olaf Foellinger @ 2002-05-17 4:15 UTC (permalink / raw)
To: cygwin
Hi,
On Fri, May 03, 2002 at 03:29:41PM +0200, Olaf Foellinger wrote:
>
> Hi,
>
> now where gnupg 1.07 is out and builds cleanly under cygwin I'll repeat
> my question whether it is possible to get mutt working with gpg. All my
> tries failed so far with the error that gpg cannot find the file mutt
> reports to him. I'm not a developer so I cannot resolve the problem
> myself but this is the biggest problem for me.
here's a more detailed error description. I'm using the cygwin mutt
together with a gpg 1.07 which builds cleanly under cygwin.
When I try to encrypt a message and press y to send mutt presents me a
list of possible keys. I choose one and I get the error
gpg: /tmp/mutt-NBOF-1728-4: encryption failed: file open error
Bitte drücken Sie eine Taste...
and indeed there isn't such a file
$ ls /tmp
mutt-NBOF-1620-143 mutt-NBOF-1728-1 mutt-NBOF-1728-2
It seems to me that mutt doesn't create the right file or does report
the wrong filename to gpg.
Similar problems occur while signing or checking a sign.
Gruss Olaf Föllinger
--
Olaf Föllinger
Leiter Fachbereich IT
S.E.S.A. Software und Systeme AG
Alt-Moabit 91a
D-10559 Berlin
Germany
Tel: +49 30 390722 -291
Fax: +49 30 390722 -222
Mobil: +49 173 6227080
http://www.sesa.de
mailto: Olaf.Foellinger@sesa.de
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: mutt and gpg 1.07
2002-05-17 4:15 ` Olaf Foellinger
@ 2002-05-28 8:12 ` Olaf Foellinger
2002-05-28 15:16 ` Volker Quetschke
2002-05-31 19:56 ` Volker Quetschke
0 siblings, 2 replies; 13+ messages in thread
From: Olaf Foellinger @ 2002-05-28 8:12 UTC (permalink / raw)
To: cygwin
On Fri, May 17, 2002 at 11:14:59AM +0200, Olaf Foellinger wrote:
> Hi,
>
> On Fri, May 03, 2002 at 03:29:41PM +0200, Olaf Foellinger wrote:
> >
> > Hi,
> >
> > now where gnupg 1.07 is out and builds cleanly under cygwin I'll repeat
> > my question whether it is possible to get mutt working with gpg. All my
> > tries failed so far with the error that gpg cannot find the file mutt
> > reports to him. I'm not a developer so I cannot resolve the problem
> > myself but this is the biggest problem for me.
>
> here's a more detailed error description. I'm using the cygwin mutt
> together with a gpg 1.07 which builds cleanly under cygwin.
>
> When I try to encrypt a message and press y to send mutt presents me a
> list of possible keys. I choose one and I get the error
>
> gpg: /tmp/mutt-NBOF-1728-4: encryption failed: file open error
> Bitte drücken Sie eine Taste...
>
> and indeed there isn't such a file
>
> $ ls /tmp
> mutt-NBOF-1620-143 mutt-NBOF-1728-1 mutt-NBOF-1728-2
>
> It seems to me that mutt doesn't create the right file or does report
> the wrong filename to gpg.
>
> Similar problems occur while signing or checking a sign.
Here's another detail I've forgotten: I use the following setting in
.muttrc
set pgp_encrypt_only_command="/usr/local/bin/pgpewrap /usr/local/bin/gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f"
Gruss Olaf Föllinger
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: mutt and gpg 1.07
2002-05-28 8:12 ` Olaf Foellinger
@ 2002-05-28 15:16 ` Volker Quetschke
2002-05-29 10:28 ` Olaf Foellinger
2002-05-31 19:56 ` Volker Quetschke
1 sibling, 1 reply; 13+ messages in thread
From: Volker Quetschke @ 2002-05-28 15:16 UTC (permalink / raw)
To: cygwin
Hi!
Olaf Foellinger wrote:
>>>now where gnupg 1.07 is out and builds cleanly under cygwin I'll repeat
>>>my question whether it is possible to get mutt working with gpg.
Unfortunately I can't help you with your problem, but I am very curious
how you build gnupg 1.07.
Which configure flags did you use?
Bye
Volker
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: mutt and gpg 1.07
2002-05-28 15:16 ` Volker Quetschke
@ 2002-05-29 10:28 ` Olaf Foellinger
2002-05-30 10:03 ` Volker Quetschke
0 siblings, 1 reply; 13+ messages in thread
From: Olaf Foellinger @ 2002-05-29 10:28 UTC (permalink / raw)
To: cygwin
On Tue, May 28, 2002 at 08:50:38PM +0200, Volker Quetschke wrote:
> Hi!
>
> Olaf Foellinger wrote:
>
> >>>now where gnupg 1.07 is out and builds cleanly under cygwin I'll repeat
> >>>my question whether it is possible to get mutt working with gpg.
>
>
> Unfortunately I can't help you with your problem, but I am very curious
> how you build gnupg 1.07.
>
> Which configure flags did you use?
From the ChangeLog
(http://lists.gnupg.org/pipermail/gnupg-announce/2002q2/000251.html):
..
* Some fixes to build cleanly under Cygwin32.
..
I didn't use any specific flags, and beside some warnings about not
finding some libraries gpg builds OOTB.
Gruss Olaf Föllinger
--
Besuchen Sie uns auf der Internet World vom 4. - 6. Juni 2002 in Berlin - Halle 4.2, Stand D15
Olaf Föllinger
Leiter Fachbereich IT
S.E.S.A. Software und Systeme AG
Alt-Moabit 91a
D-10559 Berlin
Germany
Tel: +49 30 390722 -291
Fax: +49 30 390722 -222
Mobil: +49 173 6227080
http://www.sesa.de
mailto: Olaf.Foellinger@sesa.de
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: mutt and gpg 1.07
2002-05-29 10:28 ` Olaf Foellinger
@ 2002-05-30 10:03 ` Volker Quetschke
2002-05-30 11:14 ` Olaf Foellinger
0 siblings, 1 reply; 13+ messages in thread
From: Volker Quetschke @ 2002-05-30 10:03 UTC (permalink / raw)
To: Olaf Foellinger; +Cc: cygwin
Hi!
>>Unfortunately I can't help you with your problem, but I am very curious
>>how you build gnupg 1.07.
>>
>>Which configure flags did you use?
>
>From the ChangeLog
> (http://lists.gnupg.org/pipermail/gnupg-announce/2002q2/000251.html):
> ..
> * Some fixes to build cleanly under Cygwin32.
> ..
>
> I didn't use any specific flags, and beside some warnings about not
> finding some libraries gpg builds OOTB.
I only asked because after the ./configure the make stops with:
----
[snip]
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../intl -g -O2
-Wall -c `test -f w32reg.c || echo './'`w32reg.c
In file included from w32reg.c:30:
../include/util.h:226: warning: `stricmp' redefined
/usr/include/string.h:80: warning: this is the location of the previous
definition
rm -f libutil.a
ar cru libutil.a g10u.o logger.o fileutil.o miscutil.o strgutil.o
ttyio.o argparse.o memory.o secmem.o errors.o iobuf.o dotlock.o http.o
simple-gettext.o w32reg.o
libutil.a
libutil.a: not found
make[2]: *** [libutil.a] Error 127
make[2]: Leaving directory `/home/q/gnupg/gnupg-1.0.7/util'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/q/gnupg/gnupg-1.0.7'
make: *** [all] Error 2
----
I used cygwin 1.3.10, update a few minutes ago.
I only asked because this doesn't look like OOB. :-)
Bye
Volker
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: mutt and gpg 1.07
2002-05-30 10:03 ` Volker Quetschke
@ 2002-05-30 11:14 ` Olaf Foellinger
0 siblings, 0 replies; 13+ messages in thread
From: Olaf Foellinger @ 2002-05-30 11:14 UTC (permalink / raw)
To: Volker Quetschke, cygwin
On Thu, May 30, 2002 at 04:24:32PM +0200, Volker Quetschke wrote:
> Hi!
>
> >>Unfortunately I can't help you with your problem, but I am very curious
> >>how you build gnupg 1.07.
> >>
> >>Which configure flags did you use?
> >
> >>From the ChangeLog
> >(http://lists.gnupg.org/pipermail/gnupg-announce/2002q2/000251.html):
> >..
> >* Some fixes to build cleanly under Cygwin32.
> >..
> >
> >I didn't use any specific flags, and beside some warnings about not
> >finding some libraries gpg builds OOTB.
>
> I only asked because after the ./configure the make stops with:
> ----
> [snip]
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../intl -g -O2
> -Wall -c `test -f w32reg.c || echo './'`w32reg.c
> In file included from w32reg.c:30:
> ../include/util.h:226: warning: `stricmp' redefined
> /usr/include/string.h:80: warning: this is the location of the previous
> definition
> rm -f libutil.a
> ar cru libutil.a g10u.o logger.o fileutil.o miscutil.o strgutil.o
> ttyio.o argparse.o memory.o secmem.o errors.o iobuf.o dotlock.o http.o
> simple-gettext.o w32reg.o
> libutil.a
> libutil.a: not found
> make[2]: *** [libutil.a] Error 127
> make[2]: Leaving directory `/home/q/gnupg/gnupg-1.0.7/util'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/q/gnupg/gnupg-1.0.7'
> make: *** [all] Error 2
> ----
>
> I used cygwin 1.3.10, update a few minutes ago.
>
> I only asked because this doesn't look like OOB. :-)
O.k., just try make a few times. This is a minor bug in the generated
makefile. If no further compilation calls appear, one can type make
install and anything works. This is not OOTB of course.
Gruss Olaf Föllinger
--
Besuchen Sie uns auf der Internet World vom 4. - 6. Juni 2002 in Berlin - Halle 4.2, Stand D15
Olaf Föllinger
Leiter Fachbereich IT
S.E.S.A. Software und Systeme AG
Alt-Moabit 91a
D-10559 Berlin
Germany
Tel: +49 30 390722 -291
Fax: +49 30 390722 -222
Mobil: +49 173 6227080
http://www.sesa.de
mailto: Olaf.Foellinger@sesa.de
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: mutt and gpg 1.07
2002-05-28 8:12 ` Olaf Foellinger
2002-05-28 15:16 ` Volker Quetschke
@ 2002-05-31 19:56 ` Volker Quetschke
[not found] ` <20020531203828.GA22766@redhat.com>
2002-06-03 1:47 ` Olaf Foellinger
1 sibling, 2 replies; 13+ messages in thread
From: Volker Quetschke @ 2002-05-31 19:56 UTC (permalink / raw)
To: Olaf Foellinger; +Cc: cygwin
[-- Attachment #1: Type: text/plain, Size: 1715 bytes --]
Hi!
>>>now where gnupg 1.07 is out and builds cleanly under cygwin I'll repeat
>>>my question whether it is possible to get mutt working with gpg. All my
>>>tries failed so far with the error that gpg cannot find the file mutt
>>>reports to him. I'm not a developer so I cannot resolve the problem
>>>myself but this is the biggest problem for me.
>>>
>>here's a more detailed error description. I'm using the cygwin mutt
>>together with a gpg 1.07 which builds cleanly under cygwin.
Now it builds OOB, at least when you use the attached patch.
>>When I try to encrypt a message and press y to send mutt presents me a
>>list of possible keys. I choose one and I get the error
>>
>>gpg: /tmp/mutt-NBOF-1728-4: encryption failed: file open error
>>Bitte drücken Sie eine Taste...
Yes, the gnupg 1.0.7 version uses the "windows file system", and I think
you don't have a c:\tmp\ directory. Even if you have, this is not the
same directory ( \tmp ) for mutt. (mutt is a real cygwin application)
>>and indeed there isn't such a file
>>
>>$ ls /tmp
>>mutt-NBOF-1620-143 mutt-NBOF-1728-1 mutt-NBOF-1728-2
>>
>>It seems to me that mutt doesn't create the right file or does report
>>the wrong filename to gpg.
Mutt does, but gpg looks elseware.
As I had a look into this problem I realized that it was easy to fix
configure.ac to make gnupg compile OOB. Then I removed the special cases
with __CYGWIN__ for the file handling and it still build without a problem.
This patch might fix your problem, feel free to test the patched gpg.
I only looked at the parts of the source with special __CYGWIN__ cases
therefore if might be that I missed someting. (Please report if it works
;-) )
Bye
Volker
[-- Attachment #2: gnupg.diff --]
[-- Type: text/plain, Size: 4674 bytes --]
? gnupg.diff
Index: configure.ac
===================================================================
RCS file: /cvs/gnupg/gnupg/Attic/configure.ac,v
retrieving revision 1.1.2.29
diff -u -r1.1.2.29 configure.ac
--- configure.ac 29 Apr 2002 14:56:08 -0000 1.1.2.29
+++ configure.ac 31 May 2002 16:29:14 -0000
@@ -199,7 +199,7 @@
try_gettext=yes
case "${target}" in
- *-*-mingw32*|*-*-cygwin*)
+ *-*-mingw32*)
# special stuff for Windoze NT
ac_cv_have_dev_random=no
AC_DEFINE(USE_ONLY_8DOT3,1,
@@ -215,6 +215,10 @@
MingW32 systems and these systems lack Posix functions,
we use a simplified version of gettext])
try_gettext="no"
+ ;;
+ *-*-cygwin*)
+ # special stuff for cygwin
+ ac_cv_have_dev_random=no
;;
i?86-emx-os2 | i?86-*-os2*emx )
# OS/2 with the EMX environment
Index: g10/exec.c
===================================================================
RCS file: /cvs/gnupg/gnupg/g10/Attic/exec.c,v
retrieving revision 1.1.2.12
diff -u -r1.1.2.12 exec.c
--- g10/exec.c 29 Apr 2002 14:42:33 -0000 1.1.2.12
+++ g10/exec.c 31 May 2002 16:29:15 -0000
@@ -62,7 +62,7 @@
#ifdef __riscos__
tmp="<Wimp$ScrapDir>.GnuPG";
mkdir(tmp,0700); /* Error checks occur later on */
-#elif defined (__MINGW32__) || defined (__CYGWIN32__)
+#elif defined (__MINGW32__)
tmp=m_alloc(256);
if(GetTempPath(256,tmp)==0)
strcpy(tmp,"c:\\temp");
@@ -88,7 +88,7 @@
sprintf(info->tempdir,"%s" DIRSEP_S "gpg-XXXXXX",tmp);
-#if defined (__MINGW32__) || defined (__CYGWIN32__)
+#if defined (__MINGW32__)
m_free(tmp);
#endif
Index: g10/g10.c
===================================================================
RCS file: /cvs/gnupg/gnupg/g10/Attic/g10.c,v
retrieving revision 1.129.2.103
diff -u -r1.129.2.103 g10.c
--- g10/g10.c 25 Apr 2002 08:30:35 -0000 1.129.2.103
+++ g10/g10.c 31 May 2002 16:29:20 -0000
@@ -807,7 +807,7 @@
opt.pgp2_workarounds = 1;
opt.force_v3_sigs = 1;
opt.escape_from = 1;
-#if defined (__MINGW32__) || defined (__CYGWIN32__)
+#if defined (__MINGW32__)
opt.homedir = read_w32_registry_string( NULL, "Software\\GNU\\GnuPG", "HomeDir" );
#else
opt.homedir = getenv("GNUPGHOME");
Index: g10/gpgv.c
===================================================================
RCS file: /cvs/gnupg/gnupg/g10/Attic/gpgv.c,v
retrieving revision 1.1.2.17
diff -u -r1.1.2.17 gpgv.c
--- g10/gpgv.c 29 Apr 2002 14:42:34 -0000 1.1.2.17
+++ g10/gpgv.c 31 May 2002 16:29:20 -0000
@@ -151,7 +151,7 @@
opt.always_trust = 1;
opt.batch = 1;
- #if defined (__MINGW32__) || defined (__CYGWIN32__)
+ #if defined (__MINGW32__)
opt.homedir = read_w32_registry_string( NULL, "Software\\GNU\\GnuPG", "HomeDir" );
#else
opt.homedir = getenv("GNUPGHOME");
Index: g10/passphrase.c
===================================================================
RCS file: /cvs/gnupg/gnupg/g10/passphrase.c,v
retrieving revision 1.33.2.24
diff -u -r1.33.2.24 passphrase.c
--- g10/passphrase.c 29 Apr 2002 14:42:34 -0000 1.33.2.24
+++ g10/passphrase.c 31 May 2002 16:29:22 -0000
@@ -97,7 +97,7 @@
static char *next_pw = NULL;
static char *last_pw = NULL;
-#if defined (__MINGW32__) || defined (__CYGWIN32__)
+#if defined (__MINGW32__)
static int read_fd = 0;
static int write_fd = 0;
#endif
@@ -176,7 +176,7 @@
static int
writen ( int fd, const void *buf, size_t nbytes )
{
-#if defined (__MINGW32__) || defined (__CYGWIN32__)
+#if defined (__MINGW32__)
DWORD nwritten, nleft = nbytes;
while (nleft > 0) {
@@ -219,7 +219,7 @@
static int
readn ( int fd, void *buf, size_t buflen, size_t *ret_nread )
{
-#if defined (__MINGW32__) || defined (__CYGWIN32__)
+#if defined (__MINGW32__)
DWORD nread, nleft = buflen;
while (nleft > 0) {
@@ -313,7 +313,7 @@
#if !defined (__riscos__)
-#if !defined (__MINGW32__) && !defined (__CYGWIN32__)
+#if !defined (__MINGW32__)
/* For the new Assuan protocol we may have to send options */
static int
agent_send_option (int fd, const char *name, const char *value)
@@ -418,7 +418,7 @@
#endif
return rc;
}
-#endif /*!__MINGW32__ && !__CYGWIN32__*/
+#endif /*!__MINGW32__ */
/*
@@ -429,7 +429,7 @@
static int
agent_open (int *ret_prot)
{
-#if defined (__MINGW32__) || defined (__CYGWIN32__)
+#if defined (__MINGW32__)
int fd;
char *infostr, *p;
HANDLE h;
@@ -574,7 +574,7 @@
static void
agent_close ( int fd )
{
-#if defined (__MINGW32__) || defined (__CYGWIN32__)
+#if defined (__MINGW32__)
HANDLE h = OpenEvent(EVENT_ALL_ACCESS, FALSE, "gpg_agent");
ResetEvent(h);
#else
[-- Attachment #3: Type: text/plain, Size: 214 bytes --]
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: mutt and gpg 1.07
[not found] ` <20020531203828.GA22766@redhat.com>
@ 2002-06-01 17:32 ` Volker Quetschke
2002-06-02 5:54 ` Nicholas Wourms
0 siblings, 1 reply; 13+ messages in thread
From: Volker Quetschke @ 2002-06-01 17:32 UTC (permalink / raw)
To: cygwin
[-- Attachment #1: Type: text/plain, Size: 621 bytes --]
Hi!
Christopher Faylor wrote:
>>+ ;;
>>+ *-*-cygwin*)
>>+ # special stuff for cygwin
>>+ ac_cv_have_dev_random=no
>>
>
> Cygwin does have a /dev/random.
Yes, but simply enabling it caused some problems because then the build
started to build additional shared modules and run into a Makefile
problem. After I fixed it I realized that the shared modules do not work
with cygwin. I removed the tiger module again for cygwin, and now it
builds OOB. Use the attached patch with the gnupg-1.0.7 sources.
(If one wants to have dlls as shared modules this has to be implemented)
Bye
Volker
[-- Attachment #2: gnupg_v2.diff --]
[-- Type: text/plain, Size: 5302 bytes --]
? gnupg_v2.diff
Index: configure.ac
===================================================================
RCS file: /cvs/gnupg/gnupg/Attic/configure.ac,v
retrieving revision 1.1.2.29
diff -u -r1.1.2.29 configure.ac
--- configure.ac 29 Apr 2002 14:56:08 -0000 1.1.2.29
+++ configure.ac 1 Jun 2002 23:46:52 -0000
@@ -167,7 +167,7 @@
disallowed_modules="rndunix rndlinux rndegd"
;;
*-*-cygwin*)
- disallowed_modules="rndunix rndlinux rndegd tiger"
+ disallowed_modules="rndw32 rndunix rndegd tiger"
;;
*)
disallowed_modules="rndw32"
@@ -199,7 +199,7 @@
try_gettext=yes
case "${target}" in
- *-*-mingw32*|*-*-cygwin*)
+ *-*-mingw32*)
# special stuff for Windoze NT
ac_cv_have_dev_random=no
AC_DEFINE(USE_ONLY_8DOT3,1,
@@ -610,7 +610,7 @@
static_random_module="rndlinux"
else
case "${target}" in
- *-*-mingw32*|*-*-cygwin*)
+ *-*-mingw32*)
static_random_module="rndw32"
AC_DEFINE(USE_STATIC_RNDW32,1,
[At some point in the code we need to know that
@@ -690,7 +690,8 @@
STATIC_CIPHER_NAMES="$STATIC_CIPHER_NAMES $name"
STATIC_CIPHER_OBJS="$STATIC_CIPHER_OBJS $name.o"
else
- DYNAMIC_CIPHER_MODS="$DYNAMIC_CIPHER_MODS $name"
+ DYNAMIC_CIPHER_MODS="$DYNAMIC_CIPHER_MODS $name\$(EXEEXT)"
+ # The $(EXEEXT) is needed to help automake
show_dynlink="$show_dynlink $name"
fi
fi
Index: g10/exec.c
===================================================================
RCS file: /cvs/gnupg/gnupg/g10/Attic/exec.c,v
retrieving revision 1.1.2.12
diff -u -r1.1.2.12 exec.c
--- g10/exec.c 29 Apr 2002 14:42:33 -0000 1.1.2.12
+++ g10/exec.c 1 Jun 2002 23:46:53 -0000
@@ -62,7 +62,7 @@
#ifdef __riscos__
tmp="<Wimp$ScrapDir>.GnuPG";
mkdir(tmp,0700); /* Error checks occur later on */
-#elif defined (__MINGW32__) || defined (__CYGWIN32__)
+#elif defined (__MINGW32__)
tmp=m_alloc(256);
if(GetTempPath(256,tmp)==0)
strcpy(tmp,"c:\\temp");
@@ -88,7 +88,7 @@
sprintf(info->tempdir,"%s" DIRSEP_S "gpg-XXXXXX",tmp);
-#if defined (__MINGW32__) || defined (__CYGWIN32__)
+#if defined (__MINGW32__)
m_free(tmp);
#endif
Index: g10/g10.c
===================================================================
RCS file: /cvs/gnupg/gnupg/g10/Attic/g10.c,v
retrieving revision 1.129.2.103
diff -u -r1.129.2.103 g10.c
--- g10/g10.c 25 Apr 2002 08:30:35 -0000 1.129.2.103
+++ g10/g10.c 1 Jun 2002 23:46:58 -0000
@@ -807,7 +807,7 @@
opt.pgp2_workarounds = 1;
opt.force_v3_sigs = 1;
opt.escape_from = 1;
-#if defined (__MINGW32__) || defined (__CYGWIN32__)
+#if defined (__MINGW32__)
opt.homedir = read_w32_registry_string( NULL, "Software\\GNU\\GnuPG", "HomeDir" );
#else
opt.homedir = getenv("GNUPGHOME");
Index: g10/gpgv.c
===================================================================
RCS file: /cvs/gnupg/gnupg/g10/Attic/gpgv.c,v
retrieving revision 1.1.2.17
diff -u -r1.1.2.17 gpgv.c
--- g10/gpgv.c 29 Apr 2002 14:42:34 -0000 1.1.2.17
+++ g10/gpgv.c 1 Jun 2002 23:46:58 -0000
@@ -151,7 +151,7 @@
opt.always_trust = 1;
opt.batch = 1;
- #if defined (__MINGW32__) || defined (__CYGWIN32__)
+ #if defined (__MINGW32__)
opt.homedir = read_w32_registry_string( NULL, "Software\\GNU\\GnuPG", "HomeDir" );
#else
opt.homedir = getenv("GNUPGHOME");
Index: g10/passphrase.c
===================================================================
RCS file: /cvs/gnupg/gnupg/g10/passphrase.c,v
retrieving revision 1.33.2.24
diff -u -r1.33.2.24 passphrase.c
--- g10/passphrase.c 29 Apr 2002 14:42:34 -0000 1.33.2.24
+++ g10/passphrase.c 1 Jun 2002 23:47:00 -0000
@@ -97,7 +97,7 @@
static char *next_pw = NULL;
static char *last_pw = NULL;
-#if defined (__MINGW32__) || defined (__CYGWIN32__)
+#if defined (__MINGW32__)
static int read_fd = 0;
static int write_fd = 0;
#endif
@@ -176,7 +176,7 @@
static int
writen ( int fd, const void *buf, size_t nbytes )
{
-#if defined (__MINGW32__) || defined (__CYGWIN32__)
+#if defined (__MINGW32__)
DWORD nwritten, nleft = nbytes;
while (nleft > 0) {
@@ -219,7 +219,7 @@
static int
readn ( int fd, void *buf, size_t buflen, size_t *ret_nread )
{
-#if defined (__MINGW32__) || defined (__CYGWIN32__)
+#if defined (__MINGW32__)
DWORD nread, nleft = buflen;
while (nleft > 0) {
@@ -313,7 +313,7 @@
#if !defined (__riscos__)
-#if !defined (__MINGW32__) && !defined (__CYGWIN32__)
+#if !defined (__MINGW32__)
/* For the new Assuan protocol we may have to send options */
static int
agent_send_option (int fd, const char *name, const char *value)
@@ -418,7 +418,7 @@
#endif
return rc;
}
-#endif /*!__MINGW32__ && !__CYGWIN32__*/
+#endif /*!__MINGW32__ */
/*
@@ -429,7 +429,7 @@
static int
agent_open (int *ret_prot)
{
-#if defined (__MINGW32__) || defined (__CYGWIN32__)
+#if defined (__MINGW32__)
int fd;
char *infostr, *p;
HANDLE h;
@@ -574,7 +574,7 @@
static void
agent_close ( int fd )
{
-#if defined (__MINGW32__) || defined (__CYGWIN32__)
+#if defined (__MINGW32__)
HANDLE h = OpenEvent(EVENT_ALL_ACCESS, FALSE, "gpg_agent");
ResetEvent(h);
#else
[-- Attachment #3: ChangeLog --]
[-- Type: text/plain, Size: 1060 bytes --]
2002-06-01 Volker Quetschke <quetschke@scytek.de>
* configure.ac: Remove unnecessary cases for cygwin. Cygwin (Version
1.3.10 and up) doesn't need the AC_DEFINE()s for USE_ONLY_8DOT3,
HAVE_DRIVE_LETTERS, HAVE_DOSISH_SYSTEM, USE_SIMPLE_GETTEXT and does
have a /dev/random. This repairs also the $(RANLIB) variable for
cygwin, it wasn't set for cygwin and try_gettext="no" and the build
stopped. Also added $(EXEEXT) for the files in DYNAMIC_CIPHER_MODS
to help automake.
* g10/exec.c: Use cygwin fileaccess instead of windows fileaccess for
cygwin. ATTENTION! Gnupg now uses the mount table of cygwin. You can
still use drive letters but use "/" instead of "\".
E.g: gnupg -e c:/temp/important.doc
* g10/passphrase: Use cygwin fileaccess instead of windows fileaccess
for cygwin. Use the POSIX variant of gpg agent for cygwin not the
windows registry. See warning above.
* g10/g10.c: Use env. variable GNUPGHOME instead of windows registry
for cygwin.
* g10/gpgv.c: Use env. variable GNUPGHOME instead of windows registry
for cygwin.
[-- Attachment #4: Type: text/plain, Size: 214 bytes --]
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: mutt and gpg 1.07
2002-06-01 17:32 ` Volker Quetschke
@ 2002-06-02 5:54 ` Nicholas Wourms
0 siblings, 0 replies; 13+ messages in thread
From: Nicholas Wourms @ 2002-06-02 5:54 UTC (permalink / raw)
To: Volker Quetschke; +Cc: cygwin
Hi,
Just wanted to report the patch worked perfectly here. It even detected
my cygipc, though I had to manually add the -lipc flag to the Makefiles.
All 25 tests passed perfectly! I think you should considier providing an
official package, if you are up to it. If not, and there are no other
volunteers, I'd be happy to do so after I complete my port of aalib.
Thanks again for your work!
Cheers,
Nicholas
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: mutt and gpg 1.07
2002-05-31 19:56 ` Volker Quetschke
[not found] ` <20020531203828.GA22766@redhat.com>
@ 2002-06-03 1:47 ` Olaf Foellinger
2002-06-03 12:10 ` Volker Quetschke
1 sibling, 1 reply; 13+ messages in thread
From: Olaf Foellinger @ 2002-06-03 1:47 UTC (permalink / raw)
To: cygwin
Hi Volker,
On Fri, May 31, 2002 at 09:40:37PM +0200, Volker Quetschke wrote:
> Hi!
>
> >>>now where gnupg 1.07 is out and builds cleanly under cygwin I'll repeat
> >>>my question whether it is possible to get mutt working with gpg. All my
> >>>tries failed so far with the error that gpg cannot find the file mutt
> >>>reports to him. I'm not a developer so I cannot resolve the problem
> >>>myself but this is the biggest problem for me.
> >>>
> >>here's a more detailed error description. I'm using the cygwin mutt
> >>together with a gpg 1.07 which builds cleanly under cygwin.
>
> Now it builds OOB, at least when you use the attached patch.
>
> >>When I try to encrypt a message and press y to send mutt presents me a
> >>list of possible keys. I choose one and I get the error
> >>
> >>gpg: /tmp/mutt-NBOF-1728-4: encryption failed: file open error
> >>Bitte drücken Sie eine Taste...
>
> Yes, the gnupg 1.0.7 version uses the "windows file system", and I think
> you don't have a c:\tmp\ directory. Even if you have, this is not the
> same directory ( \tmp ) for mutt. (mutt is a real cygwin application)
>
> >>and indeed there isn't such a file
> >>
> >>$ ls /tmp
> >>mutt-NBOF-1620-143 mutt-NBOF-1728-1 mutt-NBOF-1728-2
> >>
> >>It seems to me that mutt doesn't create the right file or does report
> >>the wrong filename to gpg.
>
> Mutt does, but gpg looks elseware.
>
> As I had a look into this problem I realized that it was easy to fix
> configure.ac to make gnupg compile OOB. Then I removed the special cases
> with __CYGWIN__ for the file handling and it still build without a problem.
>
> This patch might fix your problem, feel free to test the patched gpg.
>
> I only looked at the parts of the source with special __CYGWIN__ cases
> therefore if might be that I missed someting. (Please report if it works
I've applied your patch and got the folowing problems while compiling:
make[2]: Wechsel in das Verzeichnis Verzeichnis /tmp/gnupg-1.0.7/g10
source='passphrase.c' object='passphrase.o' libtool=no \
depfile='.deps/passphrase.Po' tmpdepfile='.deps/passphrase.TPo' \
depmode=gcc /bin/sh ../scripts/depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../intl -g -O2
-Wall -c
`test -f passphrase.c || echo './'`passphrase.c
In file included from passphrase.c:40:
./include/util.h:226: warning: `stricmp' redefined
/usr/include/string.h:80: warning: this is the location of the previous definition
passphrase.c: In function `agent_open':
passphrase.c:479: storage size of `client_addr' isn't known
passphrase.c:518: warning: implicit declaration of function `socket'
passphrase.c:518: `AF_UNIX' undeclared (first use in this function)
passphrase.c:518: (Each undeclared identifier is reported only once
passphrase.c:518: for each function it appears in.)
passphrase.c:518: `SOCK_STREAM' undeclared (first use in this function)
passphrase.c:528: dereferencing pointer to incomplete type
passphrase.c:531: warning: implicit declaration of function `connect'
passphrase.c:479: warning: unused variable `client_addr'
passphrase.c:480: warning: `len' might be used uninitialized in this function
make[2]: *** [passphrase.o] Fehler 1
make[2]: Verlassen des Verzeichnisses Verzeichnis /tmp/gnupg-1.0.7/g10
make[1]: *** [all-recursive] Fehler 1
make[1]: Verlassen des Verzeichnisses Verzeichnis /tmp/gnupg-1.0.7
make: *** [all] Fehler 2
My developing experience is to small to fix this problem. Do you have
any hints ?
Gruss Olaf Föllinger
--
Besuchen Sie uns auf der Internet World vom 4. - 6. Juni 2002 in Berlin - Halle 4.2, Stand D15
Olaf Föllinger
Leiter Fachbereich IT
S.E.S.A. Software und Systeme AG
Alt-Moabit 91a
D-10559 Berlin
Germany
Tel: +49 30 390722 -291
Fax: +49 30 390722 -222
Mobil: +49 173 6227080
http://www.sesa.de
mailto: Olaf.Foellinger@sesa.de
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: mutt and gpg 1.07
2002-06-03 1:47 ` Olaf Foellinger
@ 2002-06-03 12:10 ` Volker Quetschke
2002-06-03 13:00 ` Nicholas Wourms
0 siblings, 1 reply; 13+ messages in thread
From: Volker Quetschke @ 2002-06-03 12:10 UTC (permalink / raw)
To: cygwin
Hi!
>>
>>This patch might fix your problem, feel free to test the patched gpg.
>>
>>I only looked at the parts of the source with special __CYGWIN__ cases
>>therefore if might be that I missed someting. (Please report if it works
>>
>
> I've applied your patch and got the folowing problems while compiling:
>
> make[2]: Wechsel in das Verzeichnis Verzeichnis /tmp/gnupg-1.0.7/g10
Hmmm, german make?
> source='passphrase.c' object='passphrase.o' libtool=no \
> depfile='.deps/passphrase.Po' tmpdepfile='.deps/passphrase.TPo' \
> depmode=gcc /bin/sh ../scripts/depcomp \
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../intl -g -O2
> -Wall -c
> `test -f passphrase.c || echo './'`passphrase.c
> In file included from passphrase.c:40:
> ./include/util.h:226: warning: `stricmp' redefined
> /usr/include/string.h:80: warning: this is the location of the previous definition
> passphrase.c: In function `agent_open':
> passphrase.c:479: storage size of `client_addr' isn't known
> [errors deleted]
> make[1]: Verlassen des Verzeichnisses Verzeichnis /tmp/gnupg-1.0.7
> make: *** [all] Fehler 2
>
> My developing experience is to small to fix this problem. Do you have
> any hints ?
It build here without error, can you send me your passphrase.c, maybe
the patch failed,or ...
Nicholas also wrote that the patch worked, *confused*.
I will put the source and the compiled version on a webserver, but not
before wednesday, sorry.
Bye
Volker
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: mutt and gpg 1.07
2002-06-03 12:10 ` Volker Quetschke
@ 2002-06-03 13:00 ` Nicholas Wourms
0 siblings, 0 replies; 13+ messages in thread
From: Nicholas Wourms @ 2002-06-03 13:00 UTC (permalink / raw)
To: Volker Quetschke, cygwin
Hmm...
It might help to say I am running the latest snapshot of cygwin and
tools...
Cheers,
Nicholas
--- Volker Quetschke <quetschke@scytek.de> wrote:
> Hi!
>
> >>
> >>This patch might fix your problem, feel free to test the patched gpg.
> >>
> >>I only looked at the parts of the source with special __CYGWIN__ cases
>
> >>therefore if might be that I missed someting. (Please report if it
> works
> >>
> >
> > I've applied your patch and got the folowing problems while compiling:
> >
> > make[2]: Wechsel in das Verzeichnis Verzeichnis /tmp/gnupg-1.0.7/g10
>
> Hmmm, german make?
>
> > source='passphrase.c' object='passphrase.o' libtool=no \
> > depfile='.deps/passphrase.Po' tmpdepfile='.deps/passphrase.TPo' \
> > depmode=gcc /bin/sh ../scripts/depcomp \
> > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../intl -g -O2
> > -Wall -c
> > `test -f passphrase.c || echo './'`passphrase.c
> > In file included from passphrase.c:40:
> > ./include/util.h:226: warning: `stricmp' redefined
> > /usr/include/string.h:80: warning: this is the location of the
> previous definition
> > passphrase.c: In function `agent_open':
> > passphrase.c:479: storage size of `client_addr' isn't known
> > [errors deleted]
> > make[1]: Verlassen des Verzeichnisses Verzeichnis /tmp/gnupg-1.0.7
> > make: *** [all] Fehler 2
> >
> > My developing experience is to small to fix this problem. Do you have
> > any hints ?
>
> It build here without error, can you send me your passphrase.c, maybe
> the patch failed,or ...
>
> Nicholas also wrote that the patch worked, *confused*.
>
> I will put the source and the compiled version on a webserver, but not
> before wednesday, sorry.
>
> Bye
> Volker
>
>
> --
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting: http://cygwin.com/bugs.html
> Documentation: http://cygwin.com/docs.html
> FAQ: http://cygwin.com/faq/
>
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2002-06-03 20:00 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-03 6:35 mutt and gpg 1.07 Olaf Foellinger
2002-05-17 4:15 ` Olaf Foellinger
2002-05-28 8:12 ` Olaf Foellinger
2002-05-28 15:16 ` Volker Quetschke
2002-05-29 10:28 ` Olaf Foellinger
2002-05-30 10:03 ` Volker Quetschke
2002-05-30 11:14 ` Olaf Foellinger
2002-05-31 19:56 ` Volker Quetschke
[not found] ` <20020531203828.GA22766@redhat.com>
2002-06-01 17:32 ` Volker Quetschke
2002-06-02 5:54 ` Nicholas Wourms
2002-06-03 1:47 ` Olaf Foellinger
2002-06-03 12:10 ` Volker Quetschke
2002-06-03 13:00 ` Nicholas Wourms
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).