Hi Michael, Thanks for the work on cygwin. In the past we've packaged up whatever was needed from a cygwin install, e.g., cygwin1.dll and a bunch of other things, and it worked OK.
If you get libgd working, I just found a problem building real_mpfr.pyx in the SAGE library, which you'll run into (when building the sage-2.4.2 package) -- I just did. The fix is to comment out two lines in devel/sage/sage/rings/real_double.pyx, as indicated in this patch below. This will, of course, be fixed in sage-2.5. rank4:~/d/sage was$ hg export tip # HG changeset patch # User William Stein <[EMAIL PROTECTED]> # Date 1176488084 25200 # Node ID 7911f4e5017473800e297340ec00dd1ae651c70b # Parent 0c6f4e3365d5d12ec57acd17c886ddeac6001d8a Fix use of an explicit constant (NAN) that doesn't exist for Cygwin. diff -r 0c6f4e3365d5 -r 7911f4e50174 sage/rings/real_double.pyx --- a/sage/rings/real_double.pyx Thu Apr 12 23:45:34 2007 -0700 +++ b/sage/rings/real_double.pyx Fri Apr 13 11:14:44 2007 -0700 @@ -1036,8 +1036,6 @@ cdef class RealDoubleElement(FieldElemen """ cdef double denom cos = gsl_sf_cos(self._value) - if cos == 0: - return self._new_c(NAN) a = self._new_c(gsl_sf_sin(self._value) / cos) return a On 4/13/07, mabshoff <[EMAIL PROTECTED]> wrote: > > Ok, the problem is not in gdmodule, but libgd ask for symbols that > were in libfl and libfontconfig (at least on my box ;) > > I am not working with hg yet (this is planned for the weekend), so > this is just a "classic" diff: > > 61,72c61,65 > < import os > < if os.uname()[0][:6] == "CYGWIN": > < want_libs = [ > < "gd", "png", "z", "freetype", "libiconv" > < ] > < libs = filetest(libdirs, want_libs) > < libs.append('libiconv') > < else: > < want_libs = [ > < "gd", "png", "z", "freetype" > < ] > < libs = filetest(libdirs, want_libs) > --- > > want_libs = [ > > "gd", "png", "z", "freetype", "iconv", "fl", "fontconfig" > > ] > > > > libs = filetest(libdirs, want_libs) > 82a76,77 > > libs.append('iconv') > > > 110,111d104 > < print libs > < > > in case this gets mangled the patch is also at > http://fsmath.mathematik.uni-dortmund.de/~mabshoff/patches/SAGE-2.4.2-fix-gdmodule-on-cygwin.patch > > Besides compiling this patch also quiets a warning about a missing > libiconv because there is an extra lib in want_libs at, i.e. > "libiconv" instead of "iconv" > > Cheers, > > Michael > > > > > > -- William Stein Associate Professor of Mathematics University of Washington http://www.williamstein.org --~--~---------~--~----~------------~-------~--~----~ 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-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~----------~----~----~----~------~----~------~--~---