GMP 5.1.1 make check fail on Solaris 11

Marc Glisse marc.glisse at inria.fr
Sun Feb 17 16:54:18 CET 2013


On Sun, 17 Feb 2013, ken mays wrote:

> 1. patched gmp-5.1.1/tests/cxx/t-ops2.cc, change #include <cmath> to 
> #include <math.h>

Ah, the issue wasn't about linking but about declarations (it helps if you 
can show the exact error messages and your patches instead of descriptions 
so we don't misinterpret your emails). Well, the -lm I added shouldn't 
hurt. Now I see: floor was in C89, but trunc is C99 and thus wasn't in 
C++98, so Solaris' strict cmath header doesn't provide it. I'll switch to 
math.h.

> 1. cxx/osdoprnti.cc - replace #include <cstdarg> with #include <stdarg.h>

Already fixed for 5.2, I'll backport it with a few others.

> 2. Fixed mpn/*def with GCC .protected visibility flag for SS 12.1 
assembler (fbe) handling.

I think Torbjorn fixed that.

> 3. tests/cxx/t-ops2.cc - replace #include <cmath> with #include <math.h>

I'll do that one soon, thanks.

-- 
Marc Glisse


More information about the gmp-bugs mailing list