[tz] Fwd: tz code 2012-e: Compilation issues on MacOS X 10.8

Carlo Dapor catull at gmail.com
Sun Aug 5 18:20:26 UTC 2012


Hello TZ maintainers


Paul Eggert asked asked me to forward the e-Mail below to tz at iana.org.
Can you incorporate the suggested change, please ?

A feedback is most welcome, thanks.


Regards,
--
Carlo

---------- Forwarded message ----------
From: Carlo Dapor <catull at gmail.com>
Date: 5 August 2012 12:35
Subject: tz code 2012-e: Compilation issues on MacOS X 10.8
To: Paul Eggert <eggert at cs.ucla.edu>


Hello Paul


I built the latest tz code on MacOS X 10.8.
However, in localtime.c two methods are re-defined

     void tzsetwall (void) - line 1167
     void tzset (void)       - line 1190

Not sure this is the correct way, I placed an "#if !defined
(__APPLE__) && !defined (__MACH__)" on lines 1167 and 1190.
And on lines 1188 and 1233 an "#endif /* ! __APPLE__ && ! __MACH__ */".

For completeness, see the two compilation attempts before this change.

#1

cc -DTZDIR=\"/usr/local/etc/zoneinfo\"    -c -o localtime.o localtime.c
localtime.c:1167:1: error: static declaration of 'tzsetwall' follows
non-static declaration
tzsetwall(void)
^
/usr/include/time.h:150:6: note: previous declaration is here
void tzsetwall(void);
     ^
1 error generated.
gmake: *** [localtime.o] Error 1


#2

cc -DTZDIR=\"/usr/local/etc/zoneinfo\"    -c -o localtime.o localtime.c
localtime.c:1190:1: error: static declaration of 'tzset' follows
non-static declaration
tzset(void)
^
/usr/include/time.h:136:6: note: previous declaration is here
void tzset(void);
     ^
1 error generated.
gmake: *** [localtime.o] Error 1


Regards,
--
Carlo


More information about the tz mailing list