Front page | perl.macosx |
Postings from August 2001
libxslt compile
Thread Previous
|
Thread Next
From:
Timothy A. Canon
Date:
August 30, 2001 15:03
Subject:
libxslt compile
Message ID:
200108302200.PAA28723@smtpout.mac.com
On Thursday, August 30, 2001, at 04:07 PM, Matt Patterson wrote:
> On 30/8/01 at 3:49 pm, tkcent@mac.com (Timothy A. Canon) wrote:
>
>> When I tried to compile libxslt (v1.0.2) I got the following error:
>>
>> ....
>> extra.c: In function `xsltFunctionLocalTime':
>> extra.c:238: invalid operands to binary -
>> make[2]: *** [extra.lo] Error 1
>> make[1]: *** [all-recursive] Error 1
>> make: *** [all-recursive-am] Error 2
>> ....
>
> Also what I got...
>
>> The timezone function being called does not appear to be
>> compatible so I
>> just deleted it. GMT is good enough for me (we'll see how it works).
>>
>> Here's my diff:
>>
>> [localhost:~/Desktop/libxslt-1.0.2/libxslt] tacanon% diff
>> extra.c extra.c~
>> 238c238
>> < lmt = gmt;
>> ---
>> > lmt = gmt - timezone;
>
> I have no idea what you just did, and issuing diff extra.c
> extra.c~ returns an
> error (no such file). Please explain...
Sorry about that. I used an editor to make a change to line 238
in the file extra.c located in the libxslt subdirectory. This
was a fix to make sure the time zone was set to the local time
zone. I not even sure its a problem on Mac OS X. Both lmt and
gmt are variables of type time_t. But the timezone function
returns a pointer to a char. I didn't have time to dig into the
particulars so I made this fix to keep testing.
Tim
Thread Previous
|
Thread Next