logo       

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

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 (Comment added) made by jgoerzen
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1038810&group_id=8032

Category: libraries/base
Group: None
Status: Closed
Resolution: Fixed
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: John Goerzen (jgoerzen)
Date: 2004-10-05 08:28

Message:
Logged In: YES
user_id=491567

6.2.1 release tarball from the website.

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

Comment By: Simon Marlow (simonmar)
Date: 2004-10-05 08:22

Message:
Logged In: YES
user_id=48280

Fixed, I believe, by merging rev. 1.25 of Time.hsc into 6.2.2.

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

Comment By: Volker Stolz (volkersf)
Date: 2004-10-05 06: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


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

News | FAQ | advertise