home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / gnu / utils / bug / 1472 < prev    next >
Encoding:
Text File  |  1992-09-03  |  1.2 KB  |  38 lines

  1. Newsgroups: gnu.utils.bug
  2. Path: sparky!uunet!cis.ohio-state.edu!catfish.lcs.mit.edu!metcalf
  3. From: metcalf@catfish.lcs.mit.edu (Chris Metcalf)
  4. Subject: shellutils-1.7: hpux 6.5: configure bug
  5. Message-ID: <9209031702.AA06542@catfish.LCS.MIT.EDU>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Thu, 3 Sep 1992 09:02:11 GMT
  10. Approved: bug-gnu-utils@prep.ai.mit.edu
  11. Lines: 25
  12.  
  13. The configure in shellutils tries to figure out if tzname is defined by
  14. #including <time.h> and declaring char **tzname.  Unfortunately, HPUX 6.5
  15. declares char *tzname[], the definitions clash, the test compile fails
  16. (under cc or gcc 2.2.2), and you don't get HAVE_TZNAME.  As a result,
  17. the compilation of strftime either fails (for cc), or suceeds with a
  18. warning for gcc.  The gcc-built "date" then dumps core whenever you
  19. try to run it...  
  20.  
  21. I'm not sure what the best patch is, unfortunately; perhaps just testing
  22. both char **tzname and char *tzname[] when checking HAVE_TZNAME.
  23.  
  24. I used:
  25.  
  26. diff -r1.1 configure
  27. 608c608
  28. < #ifndef tzname /* For SGI.  */
  29. ---
  30. > #if !defined(tzname) && !defined(hpux) /* For SGI (or hpux).  */
  31.  
  32. But this is probably a crock, since other hpuxen may define tzname
  33. but not declare it in <time.h>.
  34.  
  35. Chris Metcalf
  36. MIT LCS
  37.  
  38.