[ ghc-Bugs-1038810 ] System/Time.hsc: timezone broken on AIX
SourceForge.net
noreply at sourceforge.net
Tue Oct 5 07:40:09 EDT 2004
Bugs item #1038810, was opened at 2004-10-02 03:04
Message generated for change (Comment added) made by volkersf
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.
----------------------------------------------------------------------
>Comment By: Volker Stolz (volkersf)
Date: 2004-10-05 13:40
Message:
Logged In: YES
user_id=126328
In CVS (HEAD), the line reads
foreign import ccall "time.h &timezone" timezone :: Ptr CLong
Which source-base are you using? CVS or a tarball, e.g. 6.2.1 from the web?
Volker
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1038810&group_id=8032
More information about the Glasgow-haskell-bugs
mailing list