[xslt] libxslt won't compile under cygwin



Package: libxslt
Version: 1.0.3

Environment: 
cygwin, latest version obtained on Sept. 3, 2001
Windows ME

make'ing the package libxslt produces the following error output:

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../libxslt -I/usr/local/include/libxml -I/usr/local/include -g -O2 -c extra.c  -DDLL_EXPORT -DPIC -o .libs/extra.lo
extra.c: In function `xsltFunctionLocalTime':
extra.c:238: invalid operands to binary -

The error appears to be due to a subtraction operation on operands of two
different types.  The compiler error seems to be resolved by applying
the following patch to "libxslt/extra.c":

--- extra.c~	Tue Aug 14 22:55:12 2001
+++ extra.c	Tue Sep 11 12:36:28 2001
@@ -235,7 +235,7 @@
      * Calling localtime() has the side-effect of setting timezone.
      * After we know the timezone, we can adjust for it
      */
-    lmt = gmt - timezone;
+    lmt = gmt - _timezone;
 
     /*
      * FIXME: it's been too long since I did manual memory management.


Susan Kleinmann




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]