Problem with GnuPG 2.1.0 beta 3: Not enough space on Windows 7

Fra fra-87 at teletu.it
Fri Aug 10 19:16:15 CEST 2012


Hi
I want to report a strange behaviour.
I have a problem running GnuPG 2.1.0 beta 3 on Windows 7. Whenever I try 
to use a secret key the program says "Not enough space". i tried both 
the creation and the decryption without success. This, however, happens 
only on Windows 7. If i try to use the same binary on VirtualBox (on the 
same machine) running Windows XP everything goes well.

I built GnuPG 2.1.0 beta 3 with mingw cross compiler. Since it is my 
first compilation on Linux i want to show you the bash file i used to 
compile everything (look at the end of the message). Before compilation 
i edited two things to the source code downloaded from the internet:
1) copied zlib-1.2.7\win32\Makefile.gcc into 
zlib-1.2.7\win32\Makefile.mingw and put PREFIX = i586-mingw32msvc- (in 
order to use mingw cross compiler);
2) edited gnupg dirmngr\ks-engine-hkp.c putting, at the beginning, the 
line "#define WINVER 0x501" (otherwise the getaddrinfo and getnameinfo 
are not defined).

After the compilation if i generate the keys in Win7 it asks for the pin 
and then says:

gpg: signing failed: Not enough space
gpg: make_keysig_packet failed: Not enough space
Key generation failed: Not enough space

if i generate it in WinXP and then copy the folder %appdata%\gnupg to 
Win7 then the latter recognizes the keys, but if i try to decrypt 
something using them i receive

gpg: public key decryption failed: Not enough space
gpg: decryption failed: No secret key

What do you think it can be?

Here is the bash script i used to build everything:


#!/bin/bash

INSTALLDIR=~/w32root/

cd libgpg-error-1.10 ; ./autogen.sh; ./autogen.sh --build-w32; make || 
exit 1; make install; cd ..
cd libassuan-2.0.3 ; ./autogen.sh; ./autogen.sh --build-w32; make || 
exit 1; make install; cd ..
cd libksba-1.2.0 ; ./autogen.sh; ./autogen.sh --build-w32; make || exit 
1 ; make install; cd ..
cd libgcrypt-1.5.0 ; ./autogen.sh ; ./autogen.sh --build-w32; make || 
exit 1 ; make install; cd ..
cd w32pth-2.0.4 ; ./autogen.sh --build-w32; make || exit 1 ; make 
install; cd ..
cd zlib-1.2.7 ; make -f win32/Makefile.mingw || exit 1; cp -fp zlib1.dll 
$INSTALLDIR/bin; cp -fp libz.a libz.dll.a $INSTALLDIR/lib; cp -fp 
zconf.h zlib.h $INSTALLDIR/include; cd ..
cd pinentry-0.8.2 ; ./autogen.sh ; ./autogen.sh --build-w32; make || 
exit 1; make install; mv $INSTALLDIR/bin/pinentry-w32.exe 
$INSTALLDIR/bin/pinentry.exe; cd ..
cd gnupg-2.1.0beta3 ; ./autogen.sh ; ./autogen.sh --build-w32; make || 
exit 1 ; make install; cd ..



More information about the Gnupg-devel mailing list