[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Portability bug with UINTPTR_MAX in Solaris/Forte

From: Matthias Koeppe
Subject: Portability bug with UINTPTR_MAX in Solaris/Forte
Date: Wed, 18 Jun 2003 08:25:47 +0200

I have trouble compiling Guile from CVS HEAD on Solaris 7 and 8 using
the Forte (Sun Workshop) C compiler.  The reason is the new code
using `uintptr_t' (declarations in tags.h).

On Solaris, there is a uintptr_t, and UINTPTR_MAX is also a defined
macro, but it expands to nothing.  (/usr/include/sys/int_limits.h,
line 124.)  This causes the compilation of libguile/print.c (for
instance) to fail.

I would suggest that the presence of both uintptr_t and a useful value
UINTPTR_MAX should be checked at configuration time.

I am not sending a patch, but I am willing to test patches that fix
this problem, in case you don't have access to Solaris (or a non-gcc

Matthias Köppe --

reply via email to

[Prev in Thread] Current Thread [Next in Thread]