🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #725

shellutils-1.7: hpux 6.5: configure bug

#725
From: Chris Metcalf
Date: Thu, 03 Sep 1992 09:02
24 lines
1290 bytes
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
Technical Details
Message-ID: <9209031702.AA06542@catfish.LCS.MIT.EDU>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!catfish.lcs.mit.edu!metcalf

Show Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug
Path: arc1-ca.pugleaf.net!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