libgpg-error : code-from-errno.h not correctly generated when cross-compiling to Windows on Linux

Vincent Torri vincent.torri at
Fri Sep 30 10:02:44 CEST 2011


I'm trying to compile libgpg-error for Windows 64 bits with mingw-w64. I
cross compile it on linux (ubuntu).

configuration: ./configure --prefix=/opt/efl --host=x86_64-w64-mingw32
--disable-nls --disable-static

generation of the files:

make[3]: Entering directory
gawk -f ./mkerrnos.awk ./ >code-to-errno.h
gawk -f ./mkerrcodes1.awk ./ >_mkerrcodes.h
gawk -f ./mkstrtable.awk -v textidx=2 -v nogettext=1 \
        ./ >err-sources-sym.h
gawk -f ./mkstrtable.awk -v textidx=2 -v nogettext=1 \
        ./ >err-codes-sym.h
x86_64-w64-mingw32-gcc -E  _mkerrcodes.h | grep GPG_ERR_ | \
               gawk -f ./mkerrcodes.awk >mkerrcodes.h
gawk -f ./mkstrtable.awk -v textidx=2 -v nogettext=1 \
        -v prefix=GPG_ERR_ -v namespace=errnos_ \
        ./ >errnos-sym.h
rm: cannot remove `': No such file or directory
make[3]: [] Error 1 (ignored)
cat ./w32-add.h >>
cat ./ >_gpg-error.def.h
echo EOF >>
x86_64-w64-mingw32-gcc -E -I. -I..   _gpg-error.def.h | \
      grep -v '^#' >gpg-error.def
echo "/*dummy*/" >
rm _gpg-error.def.h
gawk -f ./mkheader.awk \
        ./ \
        ./ \
        ./ \ \
        ./ > gpg-error.h
rm _mkerrcodes.h
cc -I. -I. -o mkerrcodes ./mkerrcodes.c
./mkerrcodes | gawk -f ./mkerrcodes2.awk >code-from-errno.h
make  all-am

Here is the beginning of code-from-errno.h :

-2147168224    GPG_ERR_EPROTO
static const int err_code_from_index[] = {

So if someone has an idea of the fix....

thank you

Vincent Torri
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20110930/f9036c8e/attachment.htm>

More information about the Gcrypt-devel mailing list