[Top][All Lists]

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

[Bug-gcal] [bug-gcal] minor portability issue in gcal-3.6.2

From: Nelson H. F. Beebe
Subject: [Bug-gcal] [bug-gcal] minor portability issue in gcal-3.6.2
Date: Mon, 14 May 2012 14:01:21 -0600 (MDT)

I've just completed 107 build attempts for gcal-3.6.2 in various
compilation environments in our test lab with about 25 flavors of
Unix.  On each system, at least one, and usually several, builds
succeeded, so the latest gcal is now installed on all of our systems

There was, however, one compilation issue with c89 compilers:

  CC     hd-data2.o
"hd-data2.c", line 781: syntax error before or at: /

The offender is this block:

//according to §7 Arbeitsruhegesetz
// (BGBl. Nr. 144/1983 zuletzt geändert durch BGBl. I Nr. 159/2004)
//All Souls day is no holiday in Austria
//   holiday (*init_data, detected, _(hd_text[HD_ALL_SOULS_DAY].ht_text),
//           ptr_cc_id, DIS_HLS_PREF2, 2, 11, year, hd_elems, fday, count);

On one system, I recompiled that single file with c99, and restarted
the build with the original c89 compiler; that finished correctly.

I suggest that the C99'ism in ./src/hd-data2.c be eliminated to keep
gcal maximally portable.

- Nelson H. F. Beebe                    Tel: +1 801 581 5254                  -
- University of Utah                    FAX: +1 801 581 4148                  -
- Department of Mathematics, 110 LCB    Internet e-mail: address@hidden  -
- 155 S 1400 E RM 233                       address@hidden  address@hidden -
- Salt Lake City, UT 84112-0090, USA    URL: http://www.math.utah.edu/~beebe/ -

reply via email to

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