From gml4410 at ggr.co.uk  Thu Nov 23 15:30:07 2006
From: gml4410 at ggr.co.uk (gml4410 at ggr.co.uk)
Date: Thu, 23 Nov 2006 15:30:07 +0100 (CET)
Subject: [Rd] OSF1 build fails (PR#9380)
Message-ID: <20061123143007.17A3C57301@slim.kubism.ku.dk>

Full_Name: Gordon Lack
Version: 2.4.0
OS: OSF1 5.1
Submission from: (NULL) (198.28.92.5)


Attempts to build R 2.4.0 on an OSF1 5.1 system result in:

==========
gcc -I. -I../../src/include -I../../src/include ..........
In file included from dynload.c:33:
../../src/include/Defn.h:554: error: parse error before "R_CStackLimit"
../../src/include/Defn.h:554: warning: type defaults to `int' in declaration of
`R_CStackLimit'
../../src/include/Defn.h:554: warning: data definition has no type or storage
class
../../src/include/Defn.h:555: error: parse error before "R_CStackStart"
../../src/include/Defn.h:555: warning: type defaults to `int' in declaration of
`R_CStackStart'
../../src/include/Defn.h:555: warning: data definition has no type or storage
class
==========

This is a result of uintptr_t being undefined at this point.

This is caused by HAVE_DECL_SIZE_MAX not being defined on OSF1 and so
<inttypes.h> is not included.

Moving the inclusion of <inttypes.h> (which is already conditional on having it)
out of the SIZE_MAX test block cures the problem.



[Rd] OSF1 build fails (PR#9380)
gml4410 at ggr.co.uk