[MLton] x86_64 port status

Stephen Weeks MLton@mlton.org
Sat, 6 May 2006 21:48:42 -0700


> > basis/System/Date.c:40: warning: no previous prototype for `Date_localOffset'
> > basis/System/Date.c:40: warning: declaration of `Date_localOffset' shadows a global declaration
> > basis-ffi.h:7: warning: shadowed declaration is here
> 
> I don't understand these errors; they seem to be self-contradictory. 
> Could there be other errors before these that would lead to this?

Yes, that looks like the problem.  I've included all the errors for
Date.c below.   SunOS 5.8 doesn't define PRIxPTR, which looks to cause
the problem.  Any idea what I should #define it to be?

basis/System/Date.c: In function `Date_gmTime':
basis/System/Date.c:31: warning: cast increases required alignment of target type
basis/System/Date.c:33: error: parse error before "PRIxPTR"
basis/System/Date.c:32: warning: empty body in an if-statement
basis/System/Date.c:33: error: `PRIxPTR' undeclared (first use in this function)basis/System/Date.c:33: error: (Each undeclared identifier is reported only oncebasis/System/Date.c:33: error: for each function it appears in.)
basis/System/Date.c: At top level:
basis/System/Date.c:40: warning: no previous prototype for `Date_localOffset'
basis/System/Date.c:40: warning: declaration of `Date_localOffset' shadows a global declaration
basis-ffi.h:7: warning: shadowed declaration is here
basis/System/Date.c:48: warning: no previous prototype for `Date_localTime'
basis/System/Date.c:48: warning: declaration of `Date_localTime' shadows a global declaration
basis-ffi.h:8: warning: shadowed declaration is here
basis/System/Date.c: In function `Date_localTime':
basis/System/Date.c:49: warning: cast increases required alignment of target type
basis/System/Date.c:51: error: parse error before "PRIxPTR"
basis/System/Date.c:50: warning: empty body in an if-statement
basis/System/Date.c:51: error: `PRIxPTR' undeclared (first use in this function)basis/System/Date.c: At top level:
basis/System/Date.c:57: warning: no previous prototype for `Date_mkTime'
basis/System/Date.c:57: warning: declaration of `Date_mkTime' shadows a global declaration
basis-ffi.h:9: warning: shadowed declaration is here
basis/System/Date.c:61: warning: no previous prototype for `Date_strfTime'
basis/System/Date.c:61: warning: declaration of `Date_strfTime' shadows a global declaration
basis-ffi.h:10: warning: shadowed declaration is here
basis/System/Date.c: In function `Date_strfTime':
basis/System/Date.c:62: warning: format not a string literal, format string not checked