#13325: eclib does not build on Cygwin
------------------------------------------------------------+---------------
Reporter: jpflori | Owner:
tbd
Type: defect | Status:
needs_review
Priority: major | Milestone:
sage-5.3
Component: cygwin | Resolution:
Keywords: eclib spkg cygwin | Work issues:
Report Upstream: Workaround found; Bug reported upstream. | Reviewers:
Authors: Jean-Pierre Flori | Merged in:
Dependencies: #13333 | Stopgaps:
------------------------------------------------------------+---------------
Changes (by jpflori):
* status: needs_work => needs_review
Old description:
> There are two problems with the current spkg on Cygwin:
> * -lgmp should come after -lntl and -lpari, I fixed this in configure.ac
> * the executables names in tests/Makefile.am should finish with
> $(EXEEXT), fixed there as well.
> The -no-undefined flag should also be passed to libtool so that a shared
> library gets built on Cygwin and for sage.libs.mwrank to be functional.
>
> Then I reran autogen.sh from upstream, deleted autom4te.cache and
> repackaged, versioned, commented everything.
>
> Patched spkg available at
> http://perso.telecom-paristech.fr/~flori/sage/eclib-20120428.p0.spkg
>
> Nevertheless, I think it would be better to repack a new release of eclib
> including such changes to prevent the inclusion of the patches and the hg
> history which make the spkg size explode.
>
> Moreover, to make this work on CYGWIN, presently you will need, for
> instance, to manually create in {{{SAGELOCAL/lib/}}} a symbolic link
> named {{{libpari.dll.a}}} to {{{libpari-gmp.dll}}} or use the PARI spkg
> from #13333.
New description:
There are two problems with the current spkg on Cygwin:
* -lgmp should come after -lntl and -lpari, I fixed this in configure.ac
* the executables names in tests/Makefile.am should finish with $(EXEEXT),
fixed there as well.
* the -no-undefined flag should also be passed to libtool so that a shared
library gets built on Cygwin and for sage.libs.mwrank to be functional.
Then I reran automake and autoconf (not aclocal, nor libtoolize, which
modified a lot of things) from upstream, repackaged, versioned, commented
everything.
As the build system is patched before configuration, some files have to be
touched in order to avoid automatic regeneration (which would fail due to
the lack off some files, this is already the case in the upstream
distribution).
Patched spkg available at
http://perso.telecom-paristech.fr/~flori/sage/eclib-20120428.p0.spkg
Moreover, to make this work on CYGWIN, presently you will need, for
instance, to manually create in {{{SAGELOCAL/lib/}}} a symbolic link named
{{{libpari.dll.a}}} to {{{libpari-gmp.dll}}} or use the PARI spkg from
#13333.
--
Comment:
Spkg is now fixed.
The error was caused by the fact that files of the build system were
patched and so their timestamp updated.
Then autotool magic wanted to regenerate some of them, which would fail
because some pieces needed to do that are missing (this would also be true
with the previous spkg).
So touching some files in the right order after patching solves the issue.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13325#comment:25>
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.