From simon.urbanek at r-project.org  Mon Jan  8 23:58:11 2007
From: simon.urbanek at r-project.org (Simon Urbanek)
Date: Mon, 8 Jan 2007 17:58:11 -0500
Subject: [Rd] can't compile on OSX: unsetenv header issues
In-Reply-To: <m23b6lfr95.fsf@fhcrc.org>
References: <m23b6lfr95.fsf@fhcrc.org>
Message-ID: <0DF677E7-1F8D-40D4-A498-C8A0832C39E9@r-project.org>

Thanks, Seth,

it's now fixed in R-devel.

Cheers,
Simon


On Jan 8, 2007, at 10:54 AM, Seth Falcon wrote:

> Hi,
>
> A recent change has R failing to compile (for me) on ppc OSX 10.4.8  
> like this:
>
> ../../../../R-devel/src/main/datetime.c: In function `reset_tz':
> ../../../../R-devel/src/main/datetime.c:511: error: void value not  
> ignored as it ought to be
>
> I suspect there is some sort of configure magic that needs to happen
> to get the POSIX compatible unsetenv on OSX.  Here's what I think is
> the relevant bit from stdlib.h, but I'm hoping someone with more OSX
> experience will recognize what needs to be done.
>
> #if __DARWIN_UNIX03
> int      unsetenv(const char *) __DARWIN_ALIAS(unsetenv);
> #else /* !__DARWIN_UNIX03 */
> void     unsetenv(const char *);
> #endif /* __DARWIN_UNIX03 */
>
>
> + seth
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
>



[Rd] can't compile on OSX: unsetenv header issues
Simon Urbanek