System/Time.hsc: timezone broken on AIX
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.
Trac metadata
Trac field |
Value |
Version |
None |
Type |
Bug |
TypeOfFailure |
OtherFailure |
Priority |
normal |
Resolution |
ResolvedFixed |
Component |
libraries/base |
Test case |
|
Differential revisions |
|
BlockedBy |
|
Related |
|
Blocking |
|
CC |
|
Operating system |
|
Architecture |
|