FW: Using Tru64 cc, compile problems tzcode2007.tar.gz
I'm forwarding this message from Donald White, who is not on the time zone mailing list. Those of you who are on the time zone mailing list should direct replies appropriately. --ado ________________________________ From: Donald.White@l-3com.com [mailto:Donald.White@l-3com.com] Sent: Monday, February 19, 2007 1:14 PM To: tz@lecserver.nci.nih.gov Subject: Using Tru64 cc, compile problems tzcode2007.tar.gz can compile Makefile using gcc just fine. When compile using Dec Tru64 cc get the following error message. example cc: Error: zic.c, line 2647: In the definition of the function "mkdirs", the promoted type of agrname is incompatible with the type of the corresponding parameter in a prior declaration. char * const argname ------^ " any thoughts..?? Thanks - Don -
From: Donald.White@l-3com.com [mailto:Donald.White@l-3com.com] Sent: Monday, February 19, 2007 1:14 PM
When compile using Dec Tru64 cc get the following error message. example
cc: Error: zic.c, line 2647: In the definition of the function "mkdirs", the promoted type of agrname is incompatible with the type of the corresponding parameter in a prior declaration.
This is an incompatibility of the Tru64 cc with the C Standard, but it should be easy to work around, as follows, since the 'const' here doesn't affect the semantics of the program. --- zic.c 2007/02/12 14:33:57 2007.2 +++ zic.c 2007/02/20 23:31:30 2007.2.0.1 @@ -2644,7 +2644,7 @@ wp = _("time zone abbreviation differs f static int mkdirs(argname) -char * const argname; +char * argname; { register char * name; register char * cp;
participants (2)
-
Olson, Arthur David (NIH/NCI) [E] -
Paul Eggert