GPG2 svn 4853 error if HAVE_W32_SYSTEM is defined

Tom Pegios tomp at idirect.com
Sun Oct 19 08:45:37 CEST 2008


GPG V2 SVN 4853 introduced a error when compiling on win32 systems ( I
know it's not supported )

Making check in common
PASS: t-convert.exe
t-gettime.c:78: test 0 failed
t-gettime.c:80: test 0 failed
t-gettime.c:78: test 1 failed
t-gettime.c:80: test 1 failed
t-gettime.c:78: test 2 failed
t-gettime.c:80: test 2 failed
t-gettime.c:78: test 3 failed
t-gettime.c:80: test 3 failed
t-gettime.c:78: test 9 failed
t-gettime.c:80: test 9 failed
t-gettime.c:78: test 10 failed
t-gettime.c:80: test 10 failed
t-gettime.c:78: test 11 failed
t-gettime.c:80: test 11 failed
t-gettime.c:78: test 12 failed
t-gettime.c:80: test 12 failed
t-gettime.c:78: test 13 failed
t-gettime.c:80: test 13 failed
t-gettime.c:78: test 14 failed
t-gettime.c:80: test 14 failed
FAIL: t-gettime.exe
PASS: t-sysutils.exe
PASS: t-sexputil.exe
====================================
1 of 4 tests failed
Please report to bug-gnupg at gnupg.org


By removing the following lines in common/util.h all 4 tests pass.
(these lines were added in svn 4853)

/* Due to a bug in mingw32's snprintf related to the 'l' modifier we
   better use our snprintf.  */
#ifdef HAVE_W32_SYSTEM
#define snprintf estream_snprintf
#endif


P.S. using mingw-runtime-3.15.1  with GCC 4.3.3 prerelease

Regards

Tom Pegios



More information about the Gnupg-devel mailing list