problem building gmp on Mac G5

Kevin Ryde user42 at zip.com.au
Tue Jan 6 10:12:46 CET 2004


Kate Minola <kminola at po1.glue.umd.edu> writes:
>
> (powerpc-apple-darwin7.2.0 according to config.guess and
> configfsf.guess.)
>
> : ../../../gmp-4.1.2/tests/misc/t-scanf.c:1421: GNU MP assertion failed: ret == -1
> : FAIL: t-scanf

This sounds like a libc sscanf bug we encountered recently on that
system (darwin7.2.0).

The program below should print -1.  If it prints 0 then you have the
bug (and should complain to Apple or whoever looks after the libc).

This bug affects gmp_sscanf, but we're not intending to make a
workaround (a bit tricky), though we will try to suppress the
offending test for the next release.


#include <stdio.h>

int
main (void)
{
  printf ("%d\n",
          sscanf ("", "%*d"));
  return 0;
}


-- 
All followups to gmp-bugs at swox.com please.


More information about the gmp-bugs mailing list