#13731: Fix libsingular memory management
------------------------------------------------------------------+---------
       Reporter:  nbruin                                          |         
Owner:  rlm     
           Type:  defect                                          |        
Status:  new     
       Priority:  major                                           |     
Milestone:  sage-5.6
      Component:  memleak                                         |    
Resolution:          
       Keywords:                                                  |   Work 
issues:          
Report Upstream:  Reported upstream. Developers acknowledge bug.  |     
Reviewers:          
        Authors:                                                  |     Merged 
in:          
   Dependencies:                                                  |      
Stopgaps:          
------------------------------------------------------------------+---------

Comment (by SimonKing):

 Replying to [comment:67 fbissey]:
 > After more thinking I think you may want to use
 [http://www.delorie.com/gnu/docs/autoconf/autoconf_127.html
 AC_CANONICAL_TARGET] it is usually used for cross compilation but it
 should work in this case. It is much better than testing gcc since we may
 want to use clang.

 My question was actually not so much about "How to detect the platform
 with autoconf?", because I see in the existing configure.in how it can be
 done. The question is more "How to define a symbol, say, `HAVE_DARWIN` so
 that the preprocessor is aware of it?".

 I tried to do `export HAVE_DARWIN=1` in spkg-build, but it didn't work. I
 tried `AC_DEFINE(HAVE_DARWIN,1)`, but it didn't work. Here, "didn't work"
 means that the preprocessor has always been in the `else` part of the
 following lines:
 {{{
 #ifdef HAVE_DARWIN
 #include "malloc/malloc.h"
 #else
 #include "malloc.h"
 #endif
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13731#comment:69>
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.

Reply via email to