home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.utils.bug
- Path: sparky!uunet!cis.ohio-state.edu!catfish.lcs.mit.edu!metcalf
- From: metcalf@catfish.lcs.mit.edu (Chris Metcalf)
- Subject: shellutils-1.7: hpux 6.5: configure bug
- Message-ID: <9209031702.AA06542@catfish.LCS.MIT.EDU>
- Sender: gnulists@ai.mit.edu
- Organization: GNUs Not Usenet
- Distribution: gnu
- Date: Thu, 3 Sep 1992 09:02:11 GMT
- Approved: bug-gnu-utils@prep.ai.mit.edu
- Lines: 25
-
- The configure in shellutils tries to figure out if tzname is defined by
- #including <time.h> and declaring char **tzname. Unfortunately, HPUX 6.5
- declares char *tzname[], the definitions clash, the test compile fails
- (under cc or gcc 2.2.2), and you don't get HAVE_TZNAME. As a result,
- the compilation of strftime either fails (for cc), or suceeds with a
- warning for gcc. The gcc-built "date" then dumps core whenever you
- try to run it...
-
- I'm not sure what the best patch is, unfortunately; perhaps just testing
- both char **tzname and char *tzname[] when checking HAVE_TZNAME.
-
- I used:
-
- diff -r1.1 configure
- 608c608
- < #ifndef tzname /* For SGI. */
- ---
- > #if !defined(tzname) && !defined(hpux) /* For SGI (or hpux). */
-
- But this is probably a crock, since other hpuxen may define tzname
- but not declare it in <time.h>.
-
- Chris Metcalf
- MIT LCS
-
-