This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gpg-agent: only one trouble before succesfull building


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.vivinetto@rvmgroup.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]