FW: Using Tru64 cc, compile problems tzcode2007.tar.gz

Paul Eggert eggert at CS.UCLA.EDU
Tue Feb 20 23:34:45 UTC 2007


> From: Donald.White at l-3com.com [mailto:Donald.White at 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;



More information about the tz mailing list