#16017: Get libs.mwrank to compile on OS X 10.4
--------------------------------------+------------------------
Reporter: kcrisman | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.2
Component: packages: standard | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
--------------------------------------+------------------------
Changes (by kcrisman):
* cc: jpflori (added)
Comment:
Leif's idea seems to have been right, though I don't know that setting the
DYLD_ whatever path or rpath is any easier that what seemed to do it for
me - just adding an explicit dependency in src/module_list.py, as we often
do for Cygwin, which is more finicky. From the thread:
----
But the problem is that somehow the linking isn't happening properly in
sage/libs/mwrank, and indeed -lflint isn't in the line
g++ -bundle -undefined dynamic_lookup
-L/Users/student/Desktop/sage-6.2.beta4/local/lib
build/temp.macosx-10.4-ppc-2.7/sage/libs/mwrank/mwrank.o
build/temp.macosx-10.4-ppc-2.7/sage/libs/mwrank/wrap.o
-L/Users/student/Desktop/sage-6.2.beta4/local/lib -lcsage -lec -lntl
-lpari -lgmp -lgmpxx -lstdc++ -lm -lstdc++ -lntl -o
build/lib.macosx-10.4-ppc-2.7/sage/libs/mwrank/mwrank.so
Maybe could I add something to src/module_list.py or whatever the
appropriate file is now to force -lflint as well? On Cygwin we often had
to be more explicit because of something analogous, if I recall that
correctly. I'm going to try this just to see...
It seems to work! At least, things continue compiling. On Cygwin that was
always the sign of victory, though :)
So Leif's idea was probably the right one. I'll see if things finish up
first and then run tests - John, any files I should run tests on first to
make sure this did indeed compile and link correctly?
However, I don't know the right *fix*. I don't mind including extra
things in module_list.py since probably Cygwin likes them too, but perhaps
there is a better fix, or maybe there's a reason that's a bad fix, or
something.
--
Ticket URL: <http://trac.sagemath.org/ticket/16017#comment:1>
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.