#5396: Wrapping lcalc library
-------------------------------+--------------------------------------------
Reporter: rishi | Owner: rishi
Type: enhancement | Status: closed
Priority: major | Milestone: sage-4.5.2
Component: number theory | Resolution: fixed
Keywords: lcalc | Author: Rishikesh, Yann Laigle-Chapuy
Upstream: N/A | Reviewer: John Cremona, David Kirkby,
Alex Ghitza
Merged: sage-4.5.2.alpha1 | Work_issues:
-------------------------------+--------------------------------------------
Comment(by fbissey):
I noticed that you have mpfr in the dep for lcalc and that you include
mpfr in the library list in module_list.py for the lcalc extension as
well.
lcalc doesn't currently depend on mpfr or link against it.
I checked the current spkg and the latest version included in this bug
and neither does. In spkg-install you have
{{{
if [ "$UNAME" = "SunOS" ]; then
LCALC_LIBS="-lpari -lmpfr -lgmpxx -lgmp -liberty"
else
LCALC_LIBS="-lpari -lmpfr -lgmpxx -lgmp"
fi
export LCALC_LIBS
echo "Using LCALC_LIBS=$LCALC_LIBS"
}}}
But LCALC_LIBS is not used anywhere in either the original Makefile
or the Makefile provided by sage.
I think it is a remnant from a time where Dave (Kirby) had an extremely
simplified Makefile for lcalc and even then it was a case of overlinking.
If you want to use mpfr in lcalc you need to export
{{{
PREPROCESSOR_DEFINE=-DUSE_MPFR
}}}
and on my machine at least lcalc refuse to compile with this.
Francois
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5396#comment:93>
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.