Torbjorn Granlund tg at
Tue May 14 15:47:19 CEST 2013

Zimmermann Paul <Paul.Zimmermann at> writes:

  when cross-compiling, GMP assumes the strnlen() function is not present on the
  target machine, and if it is present on the compilation machine, we get a
  conflict with the "static" declaration in printf/repl-vsnprintf.c.
  It seems this is the only similar issue with 5.1.1.
Are you refering to the code,

static size_t
strnlen (const char *s, size_t n)

in printf/repl-vsnprintf.c?

I don't understand the correlation of any problems with this code and

And if the (cross-) compilation environment is set up properly, wouldn't
HAVE_STRNLEN be set correctly?


More information about the gmp-bugs mailing list