id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc
479,Singular fails to build with GCC 4.7.x on Solaris,not.really@…,somebody,"This is because on Solaris, a couple of C math (and stdlib) functions get overloaded if `__cplusplus >= 199711L` (which is the case with GCC 4.7.x), and pulled into the global namespace, such that calling e.g. `floor()` or `log10()` with an `int`, which is done in `kernel/bigintmat.cc`, gets ambiguous.
Cf. Sage trac ticket !#14295 (where one can find a patch against Singular 3-1-5 as well).
This applies to Singular 3-1-5 as well as 3-1-6, where the latter adds another ambiguous call to `floor()`.
The fix is obvious; just use `floor((double)(...)` and `log10((double)(...))` where appropriate.
----
P.S.: Using `floor()` in `int ci = floor(i/col);` is superfluous anyway (since both `i` and `col` are `int`s).
",bug,closed,trivial,3-2-0 and higher,singular-kernel,3-1-6,fixed,floor log10 ambiguous SunOS bigintmat,not.really@…