Article View: gnu.utils.bug
Article #663HAVE_TZNAME problem with shellutils-1.7
From: Robert S. Maier
Date: Fri, 28 Aug 1992 00:42
Date: Fri, 28 Aug 1992 00:42
24 lines
1691 bytes
1691 bytes
Under DG/UX 5.4 on a Data General Aviion, shellutils-1.7 compiles and runs, out of the box, except for one small problem: date(1) coredumps. I traced this problem to an omission in the autoconfigured Makefile. DG/UX has tzname, but the automatically configured Makefile didn't contain -DHAVE_TZNAME. This caused a problem with lib/strftime.c: the function zone_name() was unnecessarily included and compiled. zone_name calls timezone(), but calling timezone() in DG/UX seems not to work. It's an undocumented function, anyway. The problem is ultimately due to a bug in the configure script. It checks for tzname only if tm_zone is present in struct tm. I see no reason for this. DG/UX has no tm_zone in struct tm, so HAVE_TZNAME never got set. My recommendation: fix configure (and also, the documentation line in the Makefile) so that HAVE_TM_ZONE and HAVE_TZNAME are truly independent. Any given system may have one but not the other. -- Robert S. Maier | Internet: rsm@math.arizona.edu, rsm@cs.arizona.edu Dept. of Math. | UUCP: uunet!arizona!amethyst!rsm Univ. of Arizona | Bitnet: maier@arizvms Tucson, AZ 85721 | FAX: +1 602 621 8322 U.S.A. | Voice(POTS): +1 602 621 6893 / +1 602 621 2617
Technical Details
Message-ID:
<RSM.92Aug27174207@coral.math.arizona.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!math.arizona.edu!rsmShow Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!math.arizona.edu!rsm From: rsm@math.arizona.edu (Robert S. Maier) Subject: HAVE_TZNAME problem with shellutils-1.7 Message-ID: <RSM.92Aug27174207@coral.math.arizona.edu> Sender: gnulists@ai.mit.edu Organization: Mathematics Department, University of Arizona Distribution: gnu Date: Fri, 28 Aug 1992 00:42:07 GMT Approved: bug-gnu-utils@prep.ai.mit.edu Lines: 25