#14295: Singular 3-1-5 fails to build on Solaris with GCC 4.7.x
-----------------------------------------------------------------+----------
Reporter: leif |
Owner: tbd
Type: defect |
Status: needs_review
Priority: major |
Milestone: sage-5.9
Component: packages |
Resolution:
Keywords: ambiguous floor log10 SunOS bigintmat.cc spkg | Work
issues:
Report Upstream: Not yet reported upstream; Will do shortly. |
Reviewers:
Authors: Leif Leonhardy | Merged
in:
Dependencies: |
Stopgaps:
-----------------------------------------------------------------+----------
Changes (by {'newvalue': u'Leif Leonhardy', 'oldvalue': ''}):
* cc: jdemeyer (added)
* status: new => needs_review
* author: => Leif Leonhardy
Old description:
> This is because on Solaris, a couple of C math functions get overloaded
> in C++ (and Solaris' math headers put them into the global namespace).
>
> New Singular 3-1-5.p5 spkg coming up soon.
New description:
This is because on Solaris, a couple of C math functions get overloaded in
C++ (and Solaris' math headers put them into the global namespace).
----
'''New spkg:'''
[http://boxen.math.washington.edu/home/leif/Sage/spkgs/singular-3-1-5.p5.spkg]
'''md5sum:''' `3fcadf79649e963b9d669e1161650618 singular-3-1-5.p5.spkg`
=== singular-3-1-5.p5 (Leif Leonhardy, March 18th 2013) ===
* #14295: Singular fails to build with GCC 4.7.x on Solaris.
On Solaris, with `__cplusplus >= 199711L`, `floor()` and `log10()` are
overloaded functions which get pulled into the global namespace,
such that calling them with an `int` gets ambiguous.
Patch `kernel/bigintmat.cc` (`patches/sage_trac_14295.patch`)
to cast parameters to `floor()` and `log10()` from `int` to
`double`, making the calls unambiguous.
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14295#comment:2>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.