gnutls-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem compiling gnutls


From: B. Scott Michel
Subject: Re: Problem compiling gnutls
Date: Tue, 14 Aug 2012 14:06:27 -0700
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0

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
> patch?
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
reads:

/* 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.


-scooter



reply via email to

[Prev in Thread] Current Thread [Next in Thread]