#11635: Ensure that libraries link to the shared version of NTL by default
---------------------------------------+------------------------------------
       Reporter:  kcrisman             |         Owner:  tbd         
           Type:  defect               |        Status:  needs_review
       Priority:  minor                |     Milestone:  sage-5.3    
      Component:  cygwin               |    Resolution:              
       Keywords:                       |   Work issues:              
Report Upstream:  N/A                  |     Reviewers:              
        Authors:  Karl-Dieter Crisman  |     Merged in:              
   Dependencies:                       |      Stopgaps:              
---------------------------------------+------------------------------------

Comment (by jpflori):

 Replying to [comment:35 dimpase]:
 > Replying to [comment:33 jpflori]:
 > > By the way, touching decl.pxi in sage/libs/ntl and then running "sage
 -b" seems to have fixed my install.
 > > At least Sage starts now without import errors.
 > not for me - I still needed to copy SAGELOCAL/bin/libntl.dll.a to
 SAGELOCAL/bin/libntl.dll to get past import errors.
 >
 > Then, the usual fork() problems on startup, and rebaseall does not help.
 I am afraid we're back to the root of the problem. I'll try to rebuild
 from scratch one more time, but this doesn't look good.

 I also rebuild some spkg, at least flint, don't remember exactly which
 ones, could you check every dll? Writing such a script would be less time
 consuming than rebuilding Sage from scratch (and I did not have to rebase
 by the way).
 It would be really strange that some files still link to libntl.dll with a
 fresh instlal, as there is definitely no reference to such a file name
 with the new spkg, nor in other pieces of Sage.

 Once again, I think that the problem before was just that there was some
 kind of DT_SONAME (which usually point to a "real" filename to use for a
 library at runtime) in the library buid by NTL.
 As the library was originally build as libntl.dll, this DT_SONAME was set
 to libntl.dll, so even though the library was rename to libntl.dll.a after
 installing and so was found before the static archive when we link to NTL,
 at runtime the pieces of Sage linked to it would look to libntl.dll.

 With the new spkg libntl.dll never sees the light of day, so there is no
 reason something else thinks it has ever existed, or will.

 And yes unfortunately, libtool is used on every platform, not only on
 Cygwin, the good point is that we use the upstream NTL build system rather
 than the one that was made only for Sage by Sage devs before it was more
 or less integrated with the help of the same people to NTL itself
 (although with a dependency on libtool).
 Nevertheless, libtool should only be 4 text files, so I'm looking for a
 way to integrate it to the spkg right now.
 Another solution is to continue

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