#19610: Fix dependencies on PARI
-------------------------------------+-------------------------------------
       Reporter:  jdemeyer           |        Owner:
           Type:  defect             |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.10
      Component:  cython             |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Jeroen Demeyer     |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/jdemeyer/fix_dependencies_on_pari|  5d0e4d30588ab0f13bfc0770d2b4b407d7580035
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by leif):

 Replying to [comment:11 jdemeyer]:
 > Replying to [comment:5 leif]:
 > > Ok, I see, in `sage/libs/pari/paridecl.pxd`, there's (still)
 > > {{{
 > > #!python
 > > # distutils: libraries = gmp pari
 > > }}}
 > >
 > > Do we really need `gmp` there as well?
 >
 > Yes, because PARI needs gmp:
 > {{{
 > $ ldd local/lib/libpari.so
 >         linux-vdso.so.1 (0x00007fffaa5fe000)
 >         libc.so.6 => /lib64/libc.so.6 (0x00007fb572c81000)
 >         libm.so.6 => /lib64/libm.so.6 (0x00007fb572992000)
 >         libgmp.so.16 => /usr/local/src/sage-git/local/lib/libgmp.so.16
 (0x00007fb57271d000)
 >         libdl.so.2 => /lib64/libdl.so.2 (0x00007fb572519000)
 >         /lib64/ld-linux-x86-64.so.2 (0x00007fb5738fd000)
 > }}}

 Well, of course '''PARI''' needs GMP, but not (necessarily) modules using
 PARI; that's a transitive dependency.  Unless you link statically, you
 don't have to explicitly specify GMP (and you shouldn't), because the
 dependency of PARI on GMP is recorded in `libpari.so`.

 If GMP changes, PARI will get rebuilt, and hence also modules depending on
 PARI.

 The reason `libgmp` was listed '''twice''' (and different versions of it!)
 [comment:ticket:19589:18 in your ldd output] is exactly such overlinking.

--
Ticket URL: <http://trac.sagemath.org/ticket/19610#comment:12>
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to