On Dec 27, 2007 9:54 AM, mabshoff <[EMAIL PROTECTED]> wrote: > > > > On Dec 27, 4:39 pm, "Kate Minola" <[EMAIL PROTECTED]> wrote: > > Hi Kate, > > > When I build sage-2.9.1.1 from source on the architectures > > of interest to me, I get an error when building > > > > mpfi-1.3.4-cvs20071125.p2 > > > > gcc -fPIC -o test_mpfi test_mpfi.o ../src/.libs/libmpfi.a > > /home/kate/sage/sage-2.9.1.1-x86_64-Linux/local/lib/libmpfr.a -lgmp > > ../src/.libs/libmpfi.a(mpfi_io.o): In function `mpfi_inp_str': > > mpfi_io.c:(.text+0x999): undefined reference to `__gmp_get_memory_functions' > > > > If I look in sage-2.9.1.1/local/lib, I notice that mpfr is built statically, > > but gmp is not. (Is there a good reason for this?) > > Default policy is to build all libraries dynamically so that we do not > need to recompile loads of dependencies. What you encounter is a bug > in mpfi. > > > If I change > > the line in gmp-4.2.1.p12/spkg-install from > > > > SAGE_CONF_OPTS="--enable-shared --disable-static" > > > > to > > SAGE_CONF_OPTS="--enable-shared" > > > > then gmp builds a static version. > > > > If I then change mpfi-1.3.4-cvs20071125.p2/spkg-install > > from > > > > ./configure --prefix="$SAGE_LOCAL" --with-mpfr-dir="$SAGE_LOCAL" > > --with-gmp-incpath="$SAGE_LOCAL"/include CFLAGS="-fPIC" > > > > to > > > > ./configure --prefix="$SAGE_LOCAL" --with-gmp-dir="$SAGE_LOCAL" > > --with-mpfr-dir="$SAGE_LOCAL" CFLAGS="-fPIC" > > > > then mpfi builds fine. > > We should add the --with-gmp-dir to the mpfi configure per default and > also fix the the problem so that a dynamic gmp is accepted. > > > I suspect you are NOT seeing this problem because your compile > > machines have a system gmp installed that is being picked up. > > > > Naturally, there may be a better way to fix the problem than > > I have given. > >
I've created this trac ticket for this issue: http://trac.sagemath.org/sage_trac/ticket/1615 and I've made it a *blocker* for sage-2.9.2 (the next Sage release). William --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~----------~----~----~----~------~----~------~--~---