Opened 10 years ago

Last modified 10 years ago

#14295 closed defect

Singular 3-1-5 fails to build on Solaris with GCC 4.7.x — at Version 2

Reported by: Leif Leonhardy Owned by: tbd
Priority: major Milestone: sage-5.9
Component: packages: standard Keywords: ambiguous floor log10 SunOS spkg
Cc: Jeroen Demeyer Merged in:
Authors: Leif Leonhardy Reviewers:
Report Upstream: Reported upstream. Developers acknowledge bug. Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by Leif Leonhardy)

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:

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/ (patches/sage_trac_14295.patch) to cast parameters to floor() and log10() from int to double, making the calls unambiguous.

Change History (3)

comment:1 Changed 10 years ago by Leif Leonhardy

Keywords: spkg added

Changed 10 years ago by Leif Leonhardy

Attachment: singular-3-1-5.p4-p5.diff added

Diff between the p4 and my p5. For reference / review only.

comment:2 Changed 10 years ago by Leif Leonhardy

Authors: Leif Leonhardy
Cc: Jeroen Demeyer added
Description: modified (diff)
Status: newneeds_review
Note: See TracTickets for help on using tickets.