#9871: Change compiler flags on Solaris to build without text relocations.
----------------------------+-----------------------------------------------
Reporter: drkirkby | Owner: GeorgSWeber
Type: defect | Status: needs_work
Priority: critical | Milestone: sage-4.6
Component: build | Keywords:
Author: David Kirkby | Upstream: None of the above - read trac for
reasoning.
Reviewer: | Merged:
Work_issues: |
----------------------------+-----------------------------------------------
Comment(by drkirkby):
I've had a look at the source code for cliquer - it clearly is not
upstream source as Leif noticed.
Also, the Sage-specific coding is very dubious - endless calls to
{{{malloc}}} without bothering to check if the allocation failed or not. I
had this distant memory when I learned C that one was supposed to check if
calls to {{{malloc}}} failed, but perhaps dementia has set in and I'm
mistaken. Either that, or the programmer is demented.
Adding {{{-ztext}}} with the Sun linker stops the build when there are
text relocations against read only segments, so it makes testing a bit
easier, as one does not need to actually run {{{elfdump}}} on the library.
Dave
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9871#comment:25>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.