the attached patch adds some missing includes and fixes a C99-style extern inline error in the gmp testsuite.
gmp-4.2.2 may already contain this patch.
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../tests -O2 -g -march=native -fomit-frame-pointer -pipe -c -o t-cast.o t-cast.cc
In file included from t-cast.cc:23:
../../gmp.h:515: error: 'std::FILE' has not been declared
i'm going to hold off on this one. it's causing some weirdness in other areas.
Created attachment 135778 [details, diff]
meh, had a stupid typo. upstream has the second hunk of the gmp-h.in patch but not the first in 4.2.2. i'm not sure why they dropped the first hunk since most of the cxx testsuite fails without it.
are you going to ask them to get it integrated ?
Created attachment 135805 [details, diff]
looks like i missed an earlier change that makes that hunk unnecessary. this matches what went into 4.2.2.
4.2.2 is now in the tree.