Problem compiling gnutls
B. Scott Michel
scottm at aero.org
Tue Aug 14 23:06:27 CEST 2012
On 8/14/2012 11:31 AM, Nikos Mavrogiannopoulos wrote:
> I can successfully compile 3.0.17 using the mingw-64 compiler without
> issues. I haven't tried 3.0.22 yet. I do all of my work under MSys. I
> try to avoid cygwin; see below.
> configure (and configure.ac) look for vasprintf. The scripts do not look
> for asprintf, specifically. Two reasons why you might have problems:
> Is there anything gnutls could check to avoid this issue? Any suggested
MinGW (32 and 64 bit) have an "alternative" stdio that's closer to GNU,
but only if __USE_MINGW_ANSI_STDIO is defined. Otherwise, it should use
the MSVCRT stdio, which has no asprintf() or vasprintf().
In the MinGW-W64 headers (mingw-w64-headers/crt/stdio.h), the
declarations for asprintf() and vasprintf() are "#if 0"-ed out. The note
/* Disabled due issue of definition in POSIX way in libmingwex,
which could cause troubles on scenarios venure expects those
function in MS formatter style.
So simplest way for now, disable it. */
So, I'm not sure why the user encountered the compile error, other than
a clash with cygwin.
More information about the Gnutls-devel