bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

strftime on solaris


From: Zvi Har'El
Subject: strftime on solaris
Date: Sun, 7 Oct 2001 16:32:13 +0200 (IST)

Hi,

I just installed gawk version "GNU Awk 3.1.0" on two Solaris systems:
    SunOS leeor.math.technion.ac.il 5.6 Generic_105181-26 sun4m sparc
    SunOS fermat.math.technion.ac.il 5.8 Generic_108528-03 sun4u sparc
In both I had the problem that the strftime() %z format was not recognized by
gawk. The reason is that configure is not able to identify the fact that the
native Solaris strftime() is not usable since it lacks a %z format (it does
have %Z -- "time zone name or abbreviation, or no bytes if no time zone
information exists", but does not have the GNU extension %z -- "The time-zone
as hour offset from GMT. Required to emit RFC822-conformant dates (using "%a,
%d %b %Y %H:%M:%S %z"). (GNU)"). To fix the problem one has to modify config.h
by hand:

--- config.h~ Tue Jun 12 20:19:06 2001
+++ config.h    Sun Oct  7 15:55:47 2001
@@ -205,7 +205,8 @@
 #define HAVE_STRERROR 1

 /* Define if you have the strftime function.  */
-#define HAVE_STRFTIME 1
+/* #define HAVE_STRFTIME 1*/
+#define SOLARIS 1

 /* Define if you have the strncasecmp function.  */
 #define HAVE_STRNCASECMP 1


The #define SOLARIS line is needed so that the packaged strftime() will
be compiled correctly.


I suggest that you fix configure so that it doesn't use the Solaris native
strftime().


Thanks,

Zvi.

-- 
Dr. Zvi Har'El     mailto:address@hidden     Department of Mathematics
tel:+972-54-227607                   Technion - Israel Institute of Technology
fax:+972-4-8324654 http://www.math.technion.ac.il/~rl/     Haifa 32000, ISRAEL
"If you can't say somethin' nice, don't say nothin' at all." -- Thumper (1942)
                              Sunday, 20 Tishri 5762,  7 October 2001,  4:12PM




reply via email to

[Prev in Thread] Current Thread [Next in Thread]