From: Daniel Frank Date: 2010-01-18T17:25:51+09:00 Subject: Re: GPGME gem - cannot figure out how to decrypt data Am 18.01.2010 08:08, schrieb Daiki Ueno: > Daniel Frank writes: > >> Results in the same problem, I had to interrupt the script and it was >> interrupted in the same line as with my script. > > Unfortunately I can't reproduce your problem since I don't have any > i386-solaris2.11 env, but you may be able to investigate what happens, > by adding the following lines to ~/.gnupg/gpg.conf: > > logger-file /your/home/gpg.log > debug-all > > (Please note that the secret information might be leaked to that file, > so I would suggest to prepare a new key for testing). > I'm using a real developing system, no real-world data on it ;) The logfile is created when running the decrypt ruby script, but is completely empty (i.e. 0 bytes), so no help from here. >> I'm also wondering about the following line during installation of the gem: >> checking for gpgme_op_export_keys()... no >> What exactly is the gem doing here? Am I missing a library? > > That is harmless since it just indicates that GPGME installed on your > system is slightly old and does not have gpgme_op_export_keys(). > This actually worries me. I downloaded the version (1.1.8) just yesterday morning from http://www.gnupg.org/download/index.en.html As that seems to be the latest version, I assume it should include the function? > Anyway, could you tell me what version of GPGME you are using (with > gpgme-config --version). Also, if you keep the GPGME source code, could > you try "make check" to see if you have working GPGME installation? root@backupdev:~# gpgme-config --version 1.1.8 root@backupdev:~/src/gpgme-1.1.8# make check Making check in src make[1]: Entering directory `/root/src/gpgme-1.1.8/src' make check-am make[2]: Entering directory `/root/src/gpgme-1.1.8/src' make[2]: Nothing to be done for `check-am'. make[2]: Leaving directory `/root/src/gpgme-1.1.8/src' make[1]: Leaving directory `/root/src/gpgme-1.1.8/src' Making check in tests make[1]: Entering directory `/root/src/gpgme-1.1.8/tests' Making check in gpg make[2]: Entering directory `/root/src/gpgme-1.1.8/tests/gpg' make check-TESTS make[3]: Entering directory `/root/src/gpgme-1.1.8/tests/gpg' -----BEGIN PGP MESSAGE----- Version: GnuPG v1.4.10 (SunOS) hQEOA2rm1+5GqHH4EAQAjvp69T65sXNBLeO1Xk5ZwjM6BgSSPQLLKW+w1Afmx2yy yCyC/eMyMmJmOQ3siW/gKnos4fDNOm1VtYW4U4j49t5eeKaqymyALGPAEyOxB+Us 8SJky3Kx+qQ1XpH7g1IftupBw5LiDnMk8feJc6OFJK0DVDg+T3csq9fwqyN7ihAD /0yL6sf8xnLRLiNLcW37fyVDmePt3BrLBKAIqwzbiVg5qULwsDn2kORgpcdIFTIk BwX8lFSG9bQQtD2repAjpUCipUS0WmriOL3e3DvKgbqHRUWHly8E/r3P4ORrGn45 3QrIO9yCMuBWUcBrY/Iz8TUtABihR0roFekxVeqWwRq1hQEOA1OB6k7im6N/EAQA ieHgS+3jd08zw8lMYh/GvSsXzB9wbNIpbnND/pkC6+MtsSn4lkNb2vVfHUVOUBg3 9EWLSAAKoNLjwKdeP0eEMC8HY73N91eqhImDqLs9SSeOXIypu6P8h+BKqc9OjSZY i9h41k2nFDm390+xMASVU69+vghkEbdml1RLQ1RlDtEEAJFNXVcwYodZtEmlisJ9 qgLYqMxlZOmZuC7cZ3+F6dOIS7+wstFL/esWbhX5BT3XKyu5/yrbX/PWwrDtbDoH NW6zC333mXBBEEy2EEi7qPkfPyAiRPdkBzJcXe69gykVHfysFEqh2TVuuNWYF5/u o+pT9f8Bzvh7eXFMlSATiUNG0koBrjtwn6eABInBbPhjQz+juuA5+Y87L4o2VEkj 5MhAmSH8fBxbpgm6gZBA9WG9XHBvPNmO4hMpc3wdGux1kl1jBrixYDYyLWvd7Q== =4DCK -----END PGP MESSAGE----- PASS: t-encrypt At this point it just hangs, which I assume is caused by the same underlying problem as the decrypt function hanging. So it looks like I'm hitting a problem with the GPGME library and not them gem. Regards, Daniel