delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/06/11/15:32:05

X-Spam-Check-By: sourceware.org
Message-ID: <448C6F9B.7020406@rvmgroup.it>
Date: Sun, 11 Jun 2006 21:31:39 +0200
From: "gabriele DOT mailing AT rvmgroup DOT it" <gabriele DOT mailing AT rvmgroup DOT it>
User-Agent: Mozilla Thunderbird 1.5.0.4 (Windows/20060516)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: gpg-agent: only one trouble before succesfull building
References: <1149964625 DOT 8941 DOT ezmlm AT cygwin DOT com> <448B1565 DOT 9070602 AT rvmgroup DOT it> <e6fjnc$vid$1 AT sea DOT gmane DOT org>
In-Reply-To: <e6fjnc$vid$1@sea.gmane.org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Renč,
thank you for your suggestions. I built pth-2.0.6.
It worked fine, but I had to add "-I/usr/local/include ".

> if you try by hand the correct command it will work:
> gcc -g -O2 -Wall -o gpg-connect-agent.exe  gpg-connect-agent.o no-libgcrypt.o
> ../jnlib/libjnlib.a ../common/libcommon.a ../gl/libgnu.a -lassuan -lpth
> -lgpg-error -lintl -lz
> The only difference is "-lpth" which is the output of "/usr/bin/pth-config
> --libs" (or in your case /usr/local/bin/...). 

So after the error, I made:
cd tools
gcc   -I/usr/local/include -g -O2 -Wall   -o gpg-connect-agent.exe
gpg-connect-agent.o no-libgcrypt.o ../jnlib/libjnlib.a
../common/libcommon.a ../gl/libgnu.a -L/usr/local/lib -lassuan
-lgpg-error -lintl -lz -lpth
cd ..
make

And the gpg-agent built good.

> So the problem was really an error on the generated Makefile,
> you should report it to gnupg.
>   
I'll do.

After building, I tried gpg-agent:

$ cd /usr/src/gnupg-1.9.20/agent
$ eval $(./gpg-agent --daemon)

Checked to be sure it is active:
$ ps -a | grep gpg-agent
      3012       1    3012       3012    ? 1005 16:52:40
/usr/src/gnupg-1.9.20/agent/gpg-agent

Checked that the environment is good:
$ set | grep GPG_AGENT
GPG_AGENT_INFO=/tmp/gpg-ptlT3p/S.gpg-agent:3012:

Checked that the socket is present:
$ ls /tmp/gpg-ptlT3p/
total 1
drwx------+ 2 mnt.vvngrl Nessuno  0 Jun 11 16:52 .
drwxrwxrwt+ 6 mnt.vvngrl Users    0 Jun 11 16:52 ..
srwxr-xr-x  1 mnt.vvngrl Nessuno 53 Jun 11 16:52 S.gpg-agent

So, to be sure to use official cygwin gpg:
$ gpg --version
gpg (GnuPG) 1.4.2.1
Copyright (C) 2005 Free Software Foundation, Inc.
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions. See the file COPYING for details.

Home: ~/.gnupg
Supported algorithms:
Pubkey: RSA, RSA-E, RSA-S, ELG-E, DSA
Cipher: 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH
Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512
Compression: Uncompressed, ZIP, ZLIB, BZIP2

Ok, let's do litte test:

$ echo "test" | gpg -ase -r 0xEFF5860B | gpg
gpg: WARNING: using insecure memory!
gpg: please see http://www.gnupg.org/faq.html for more information

You need a passphrase to unlock the secret key for
user: "Gabriele Vivinetto <gabriele DOT vivinetto AT rvmgroup DOT it>"
1024-bit DSA key, ID E8FC81D7, created 2005-08-31

gpg: WARNING: using insecure memory!
gpg: please see http://www.gnupg.org/faq.html for more information
gpg: problem with the agent - disabling agent use
Enter passphrase:

Oh no...
*gpg: problem with the agent - disabling agent use*

May be official cygwin gpg lacks agent support ? How do I see if the gpg
executable is compiled with agent support ?
Ah, yes, I've tried the test, but another run of the test requested me
the password again.....

P.S. tried to build pinentry too, installed and run eval $(gpg-agent
--daemon --pinentry-program /usr/local/bin/pinentry) but same failure...

-- 
Diesis


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019