Re: [xslt] libxslt won't compile under cygwin



In message <200109112053.f8BKrgH5031914@susan.bogus>
          "Susan G. Kleinmann" <sgk@kleinmann.com> wrote:

> 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;

ISTR that timezone was discussed recently on this list.

Certainly calling localtime() under RISC OS has no effect on the global
timezone, and attempting to reference it provokes an undefined symbol error
at link time.

-- 
Gerph {djf0-.3w6e2w2.226,6q6w2q2,2.3,2m4}
URL: http://www.movspclr.co.uk/
... Eyes to the heavens, screaming at the sky;
    Trying to send you messages, but choking on goodbye.




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