Page MenuHome GnuPG

implicit declaration of function ‘gpg_err_set_errno’ in common/w32-afunix.c:65
Closed, ResolvedPublic

Description

from the build log when trying to build win32 binaries from linux:

i686-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I../../common -I..
-DLOCALEDIR=\"/usr/i686-w64-mingw32/share/locale\"
-I/usr/i686-w64-mingw32/include -I/usr/i686-w64-mingw32/include
-I/usr/i686-w64-mingw32/include -I/usr/i686-w64-mingw32/include -DWITHOUT_NPTH=1
-Wall -Wno-pointer-sign -Wpointer-arith -g -Os -MT libcommon_a-w32-afunix.o -MD
-MP -MF .deps/libcommon_a-w32-afunix.Tpo -c -o libcommon_a-w32-afunix.o `test -f
'w32-afunix.c' || echo '../../common/'`w32-afunix.c
In file included from ../../common/w32-afunix.c:44:0:
../../common/w32-afunix.h:41:2: warning: #warning Remove this code; it is only
used on w32 by symcryptrun. [-Wcpp]
#warning Remove this code; it is only used on w32 by symcryptrun.

^

../../common/w32-afunix.c: In function ‘read_port_and_nonce’:
../../common/w32-afunix.c:65:7: warning: implicit declaration of function
‘gpg_err_set_errno’ [-Wimplicit-function-declaration]

gpg_err_set_errno (EIO);
^

mv -f .deps/libcommon_a-w32-afunix.Tpo .deps/libcommon_a-w32-afunix.Po

This could probably be fixed with the appropriate #include.

Details

Version
2.1.13

Event Timeline

dkg set Version to 2.1.13.
dkg added a subscriber: dkg.

We won't fix that bug but remove the entire file as indicated by the #warning.