#8664: Upgrade Sage's MPIR spkg to version 2.1.3 or later
-------------------------------------------------+--------------------------
   Reporter:  was                                |       Owner:  GeorgSWeber    
                                                  
       Type:  enhancement                        |      Status:  needs_info     
                                                  
   Priority:  major                              |   Milestone:  sage-4.6.1     
                                                  
  Component:  packages                           |    Keywords:  GMP ECM 
execstack Fedora 14 extension module library dependencies
     Author:  Mike Hansen, Leif Leonhardy        |    Upstream:  N/A            
                                                  
   Reviewer:  Leif Leonhardy, Dmitrii Pasechnik  |      Merged:                 
                                                  
Work_issues:                                     |  
-------------------------------------------------+--------------------------

Comment(by leif):

 Replying to [comment:70 dimpase]:
 > Replying to [comment:68 leif]:
 > > Did you rebuild all dependent packages, i.e. use `SAGE_UPGRADING=yes`?
 > I tried
 {{{
 $ SAGE_UPGRADING=yes ../../sage -f mpir-2.1.3.p1.spkg
 $ ../../sage -b
 }}}
 > with the same outcome.

 `SAGE_UPGRADING=yes` only works with `make`, not `sage -i ...` etc. (and
 only if all [new] spkgs are in `spkg/standard/`).

 [[BR]]


 > Installing the version 1.* mpir spkg cures the installation, i.e. I get
 a working copy of Sage back.

 Yep.

 [[BR]]

 > > What MPIR versions do you have in `local/lib/`?
 >
 > here are mpirs and gmps I have:
 {{{
 -rwxr-xr-x  1 dima  wheel   500140 Nov  6 18:48
 ../../local/lib/libmpir.8.2.3.dylib
 lrwxr-xr-x  1 dima  wheel       19 Nov  6 18:48
 ../../local/lib/libmpir.8.dylib -> libmpir.8.2.3.dylib
 -rw-r--r--  1 dima  wheel  2487088 Nov  6 18:48 ../../local/lib/libmpir.a
 lrwxr-xr-x  1 dima  wheel       19 Nov  6 18:48
 ../../local/lib/libmpir.dylib -> libmpir.8.2.3.dylib
 -rwxr-xr-x  1 dima  wheel      829 Nov  6 18:48 ../../local/lib/libmpir.la
 -rwxr-xr-x  1 dima  wheel    25592 Nov  6 18:48
 ../../local/lib/libmpirxx.2.2.11.dylib
 lrwxr-xr-x  1 dima  wheel       22 Nov  6 18:48
 ../../local/lib/libmpirxx.2.dylib -> libmpirxx.2.2.11.dylib
 -rw-r--r--  1 dima  wheel   699424 Nov  6 18:48
 ../../local/lib/libmpirxx.a
 lrwxr-xr-x  1 dima  wheel       22 Nov  6 18:48
 ../../local/lib/libmpirxx.dylib -> libmpirxx.2.2.11.dylib
 -rwxr-xr-x  1 dima  wheel      894 Nov  6 18:48
 ../../local/lib/libmpirxx.la
 ...
 }}}
 These are the correct new ones, same basenames as on other systems. (Note
 that the version number of `libgmpxx*` is now ''smaller'' than in MPIR
 1.2.2, which was `3[.1.6]`.)

 [[BR]]


 > I'm  trying the following:
 {{{
 $ cd local/lib
 $ ln -s libgmp.dylib libgmp.3.dylib
 $ ../../sage -b
 }}}
 > and this seems to work (triggering a large recompile of extensions that
 still is running)

 So the patch to the Sage library apparently works for you. :)

 ----

 The `libcsage` linker error occurs because some other library (NTL or
 PARI) still refers to the old MPIR library, i.e. hasn't been rebuilt.

 Can you check the modification times of `spkg/installed/*` (e.g. `ls -rtl
 spkg/installed`)?
 (Or just `ls -1rt local/lib/lib{gmp,ntl,pari}*`; all PARI and NTL
 libraries should be ''below'' MPIR's.)

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