#10000: GSL library fails to install on AIX 5.3
----------------------------------+-----------------------------------------
   Reporter:  drkirkby            |       Owner:  drkirkby                      
             
       Type:  defect              |      Status:  new                           
             
   Priority:  major               |   Milestone:  sage-4.6                      
             
  Component:  AIX or HP-UX ports  |    Keywords:                                
             
     Author:                      |    Upstream:  Not yet reported upstream; 
Will do shortly.
   Reviewer:                      |      Merged:                                
             
Work_issues:                      |  
----------------------------------+-----------------------------------------

Comment(by drkirkby):

 Replying to [comment:5 leif]:
 > Replying to [comment:4 vbraun]:
 > > The gsl INSTALL file has this to say:
 > {{{
 > [...] To work around it copy the missing parts (between #ifdef
 _ALL_SOURCE and its #endif)
 > from /usr/includes/float.h into a new header file and #include that in
 fp-aix.c
 > }}}
 >
 > It shouldn't be impossible to do that conditionally in GSL's {{{spkg-
 install}}}.

 True, that is very easy to do.

 But one has to wonder why it's not taken care of in the GSL source code.
 It would be easy for the GSL developers to check if {{{fprnd_t}}} is
 defined or not in the configure script. I guess if there are a large
 number of things that might be undefined, then it would get a bit of a
 headache.

 I think Sage gets a lot harder to maintain, and a lot easier for bugs to
 get missed on one platform or another with so many conditional bits of
 code.

  * We apply readline on some linux versions but not on all OpenSUSE
 versions
  * We use iconv on Solaris, HP-UX and Cygwin but not Linux or OS X.
  * We patch {{{paripriv.h}}} on OS X and Solaris, but in different ways.
  * etc etc etc.

 I prefer the {{{autoconf}}} approach of actually '''testing''' what is
 defined or not, rather than us making exceptions for this platform or that
 platform.

 Let's say I put code like:

 {{{
    if[ "x$UNAME = xAIX ] ; then
       cp patches/fp-aix.c src/fp-aix.c # or wherever the file needs to go.
    fi
 }}}

 then I've no idea if that is necessary on anything other than AIX 5.3. I
 might be able to find someone to test it on the next release of AIX which
 is 6.1. (IBM never released a 5.4 or 6.0, so their version numbering is
 even stranger than Sage's, which is saying something !!)

 My 32-bit machine is too old to run AIX 6.1, which only has a 64-bit
 kernel. AIX 5.3 is still officially supported by IBM and will be for a
 couple of years. Earlier verisons of AIX are no longer supported by IBM,
 so it is probably not worth worrying about earlier releases. But one
 should consider AIX 6.1, and the soon to be released AIX 7.0.

 Dave

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