[Gpg4win-devel] gpgme in gpg4win?

Marcus Brinkmann marcus.brinkmann at ruhr-uni-bochum.de
Wed Dec 2 14:54:07 CET 2009


Nikolay Sklabinsky wrote:
> Thanks, Marcus.
> I went the way you recommended (see below) and after some walking in circles
> I managed to configure and make libgpg-error, then configure gpgme. However,
> I cannot build the latter. 
> First, in conversion.c I had to replace #include <errno.h> with #include
> <err-codes.h>, because I could not find the errno.h. 

As werner said, errno.h is part of mingw, which apparently is not found.  On
Debian/Ubuntu it is in /usr/i586-mingw32msvc/include/errno.h.  It is found by
i586-mingw32msvc-gcc automatically:
Nikolay Sklabinsky wrote:
> Thanks, Marcus.
> I went the way you recommended (see below) and after some walking in circles
> I managed to configure and make libgpg-error, then configure gpgme. However,
> I cannot build the latter.
> First, in conversion.c I had to replace #include <errno.h> with #include
> <err-codes.h>, because I could not find the errno.h.

As werner said, errno.h is part of mingw, which apparently is not found.  On
Debian/Ubuntu it is in /usr/i586-mingw32msvc/include/errno.h.  It is found by
i586-mingw32msvc-cpp automatically:

$ i586-mingw32msvc-cpp -v /dev/null
[...]
#include <...> search starts here:
 /usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/include
 /usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/include
End of search list.
[...]

The problem could be in your mingw32 install, or if it is not, the way you
configure gpgme.  You could send me a config.log and I take a look at it.

Thanks,
Marcus



More information about the Gpg4win-devel mailing list