From wdunlap at tibco.com  Thu Oct 29 00:20:18 2009
From: wdunlap at tibco.com (William Dunlap)
Date: Wed, 28 Oct 2009 16:20:18 -0700
Subject: [Rd] unable to compile mgcv
In-Reply-To: <20091028184649.ZJ165.273963.root@mp17>
References: <77EB52C6DD32BA4D87471DCD70C8D7000209A10E@NA-PA-VBE03.na.tibco.com>
	<20091028184649.ZJ165.273963.root@mp17>
Message-ID: <77EB52C6DD32BA4D87471DCD70C8D7000209A216@NA-PA-VBE03.na.tibco.com>


> -----Original Message-----
> From: Chuck White [mailto:chuckwhite8 at charter.net] 
> Sent: Wednesday, October 28, 2009 3:47 PM
> To: r-devel at r-project.org; William Dunlap
> Subject: RE: [Rd] unable to compile mgcv
> 
> Thanks for your response.  Can you please point me to the 
> make file where I would make this change. Thanks.

If you untar src/library/Recommended/mgcv.tgz (sp?)
this file will be in mgcv/src.  I'm not sure of the
best way to take care of it on AIX.  It may be possible
to #undef TRUE in include/R.h.  The AIX system includes
define it in many places, the most prominent of which
is in types.h.

If you cannot generally #undef TRUE in a global
R include file then you will have to edit the C or h files
in mgcv.

> 
> ---- William Dunlap <wdunlap at tibco.com> wrote: 
> > The first offending line in gdc.c is
> >     294   int *pivot,i,TRUE=1,j;
> > and TRUE must be #defined in some AIX
> > include file.  Change it to true or
> > add #undef TRUE prior to its use and it
> > may compile.
> > 
> > Bill Dunlap
> > Spotfire, TIBCO Software
> > wdunlap tibco.com  
> 
> 



[Rd] unable to compile mgcv
William Dunlap