logo       

[ ghc-Bugs-1038810 ] System/Time.hsc: timezone broken on AIX: msg#00003

lang.haskell.glasgow.bugs

Subject: [ ghc-Bugs-1038810 ] System/Time.hsc: timezone broken on AIX

Bugs item #1038810, was opened at 2004-10-01 20:04
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1038810&group_id=8032

Category: libraries/base
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: John Goerzen (jgoerzen)
Assigned to: Nobody/Anonymous (nobody)
Summary: System/Time.hsc: timezone broken on AIX

Initial Comment:
This code in System.Time.hsc:

#if !defined(mingw32_TARGET_OS)
foreign import ccall unsafe "timezone" timezone :: Ptr
CLong
#endif

Generates this error:

../../ghc/compiler/ghc-inplace -H16m -O -fglasgow-exts
-cpp -Iinclude -#includeHsBase.h -funbox-strict-fields
-package-name base -O -Rghc-timing -c
System/Time.hs -o System/Time.o -ohi System/Time.hi
/tmp/ghc34282.hc: In function `rgz2_entry':
/tmp/ghc34282.hc:22553: error: called object is not a
function
<<ghc: 963310984 bytes, 879 GCs, 7841553/13444796
avg/max bytes residency (11 samples), 34M in use,
0.00 INIT (0.00 elapsed), 17.32 MUT (26.46 elapsed),
3.07 GC (3.29 elapsed) :ghc>>
gmake: *** [System/Time.o] Error 1

My mktime() manpage shows this:

void tzset ( )

extern long int timezone;

extern int daylight;

extern char *tzname[];


And config.h:

#define HAVE_DECL_ALTZONE 0
#define HAVE_TZNAME 1

which appears to be correct.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1038810&group_id=8032


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise