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.
>
Cheers,
Michael
> Kate
> --
> Kate Minola
> University of Maryland, College Park
--~--~---------~--~----~------------~-------~--~----~
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/
-~----------~----~----~----~------~----~------~--~---