On Mon, Feb 20, 2006 at 05:30:21PM +0000, Bennett Todd wrote:
Is tz64code for 64-bit platforms only? Or should it work on 32-bit systems?
Ideally it should work on both.
On an ia32 Linux system, I get a failure (appended). tz32code seems to work Ok. [...] cc -DTZDIR=\"/usr/share/zoneinfo\" -Os -Dtzname=__tzname -Dtzset=__tzset -c -o localtime.o localtime.c localtime.c: In function `differ_by_repeat': localtime.c:331: warning: integer overflow in expression [...] /zic: wild compilation-time specification of zic_t
Sounds like a bug to me... try adding -DLLONG_MAX=INT64_MAX to your CFLAGS specification and see if that helps. (If so then a #ifdef or two should fix the problem on systems based on a moderately modern glibc, and regardless -DLLONG_MAX should be added to the list of CFLAGS adjustments in the Makefile.) --Ken Pizzini