[MLton] x86_64 port status

Matthew Fluet fluet@cs.cornell.edu
Sun, 7 May 2006 07:51:31 -0400 (EDT)


>>> 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?

The PRIxPTR macro is the printf format specifier for printing uintptr_t in 
hex.  It is supposed to be defined by <inttypes.h>.  I would add

#define PRIxPTR "x"

to cenv.h under an approprate ifdef.