#14038: Let libgap build a shared library on Cygwin
--------------------------------------+-------------------------------------
       Reporter:  jpflori             |         Owner:  tbd              
           Type:  defect              |        Status:  needs_work       
       Priority:  major               |     Milestone:  sage-5.7         
      Component:  packages            |    Resolution:                   
       Keywords:  cygwin spkg libgap  |   Work issues:                   
Report Upstream:  N/A                 |     Reviewers:  Jean-Pierre Flori
        Authors:  Volker Braun        |     Merged in:                   
   Dependencies:  #14057              |      Stopgaps:                   
--------------------------------------+-------------------------------------

Comment (by dimpase):

 Replying to [comment:18 jpflori]:
 > And I don't really feel #14057 could fix anything here.
 > It provides a fix for Python and it does not seem to me that libgap
 links to Python anyway...
 yes, I agree. I'll remove it from the deps.

 > But I agree we would need a similar fix in libgap, that is properly
 define environ in libgap (src/libgap.c) and not assume it is available.

 I wonder if this is actually an OSX-specific  libgap bug, to use
 {{{-undefined dynamic_lookup}}} to get {{{environ}}}.
 (or maybe this part of the code is never used in libgap setting)

 
[http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man7/environ.7.html
 OSX docs] say that it's recommended to use {{{getenv()}}} etc, but that's
 GAPs design to use {{{environ}}} directly (and it's needed for
 {{{spawn()}}} etc there).
 And {{{environ}}} is not available to shared libraries, according to
 
[http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man7/environ.7.html
 loc.cit.], and one should use {{{_NSGetEnviron()}}} routine from
 {{{<crt_externs.h>}}}. (So one could add this to {{{src/sysfiles.c}}} if
 needed.)

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


Reply via email to