On 2020-01-11 16:33:30 +0100, Marco Bodrato wrote: > Ciao, > > Il Ven, 10 Gennaio 2020 5:04 pm, Vincent Lefevre ha scritto: > > On 2020-01-10 16:27:31 +0100, Marco Bodrato wrote: > >> Can you please try with the development version? > > > I get the following error: > > > gmp_vsnprintf return value wrong > > ... because there was an error in the process of cross-compilation... > > > Is there a way to tell GMP's configure that vsnprintf is missing, > > so that HAVE_VSNPRINTF is not defined? > > Configure should check for it, but checking is not possible for > cross-compilations. Should we add an option for this case?
Perhaps. > It would be nice if the autotools give support for an optional "emulation > environment", for a better configuration and an easier testing process... I wonder why the #define's in config.h are not protected by #ifndef, so that the user could set the value to 0. I mean that the general form for macros set by default should have been: #ifndef HAVE_VSNPRINTF #define HAVE_VSNPRINTF 1 #elif HAVE_VSNPRINTF == 0 #undef HAVE_VSNPRINTF #endif FYI, about the snprintf bug in MinGW: https://sourceforge.net/p/mingw-w64/bugs/709/ http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-1000101 -- Vincent Lefèvre <[email protected]> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon) _______________________________________________ gmp-bugs mailing list [email protected] https://gmplib.org/mailman/listinfo/gmp-bugs
