#16017: Get libs.mwrank to compile on OS X 10.4
-------------------------------------------------+-------------------------
Reporter: kcrisman | Owner:
Type: defect | Status: new
Priority: blocker | Milestone: sage-6.2
Component: packages: standard | Resolution:
Keywords: Darwin 8 linker error | Merged in:
install_name libflint.dylib | Reviewers:
Authors: | Work issues:
Report Upstream: N/A | Commit:
Branch: | Stopgaps:
Dependencies: |
-------------------------------------------------+-------------------------
Comment (by fbissey):
Going back to pari :) the install_name problem is all sage's spkg-install
fault. Pari's own install target produce a correct dylib but sage does
this little interesting bit:
{{{
if [ "$UNAME" = "Darwin" ]; then
# The following is a hack to get the library installed correctly
# on Mac OS X:
echo "Applying Mac OS X hack -- deleting and reinstalling
libpari.a ..."
rm -f Odarwin-ppc/*lib*
$MAKE install-lib-sta
if [ $? -ne 0 ]; then
echo >&2 "Error reinstalling PARI's static libraries (OS X
trick)"
exit 1
fi
cd "`config/objdir`" && cp -f libpari* "$SAGE_LOCAL/lib"
if [ $? -ne 0 ]; then
echo >&2 "Error copying PARI's libraries (OS X trick)"
exit 1
fi
cd "$CUR"
fi
}}}
So we use the copy from the build directory in SAGE_LOCAL/lib. But when
when you do "make install" pari actually rebuilds libpari{,-gmp}.dylib in
the install location (modulo DESTDIR if it is defined) with the correct
install_name. But spkg-install throw all that away and uses a copy without
any install_name set.
Unless someone can explain to me what this hack is all about, I think its
removal should have a bug of its own on trac.
--
Ticket URL: <http://trac.sagemath.org/ticket/16017#comment:42>
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.