From murdoch at stats.uwo.ca  Mon Mar 16 17:21:02 2009
From: murdoch at stats.uwo.ca (Duncan Murdoch)
Date: Mon, 16 Mar 2009 12:21:02 -0400
Subject: [Rd] Error compiling rgl package
In-Reply-To: <49BE7263.5010904@scs.carleton.ca>
References: <49B95F7E.5020406@scs.carleton.ca> <49BD3E8E.9090206@stats.uwo.ca>
	<49BE549E.2000706@scs.carleton.ca> <49BE5C75.6070907@stats.uwo.ca>
	<49BE7263.5010904@scs.carleton.ca>
Message-ID: <49BE7C6E.10708@stats.uwo.ca>

On 3/16/2009 11:38 AM, Mohammad Nikseresht wrote:
> I downloaded source tarball this morning from:
> http://cran.at.r-project.org/
> It is rgl_0.84.tar.gz but it does contain a math.h!
> where can I find version 0.84-1?

It's on R-forge.  You can download it as

http://r-forge.r-project.org/src/contrib/rgl_0.84-1.tar.gz

Duncan Murdoch

> 
> Thanks
> --
> Mohammad Nikseresht
> 
> 
> Duncan Murdoch wrote:
>> On 3/16/2009 9:31 AM, Mohammad Nikseresht wrote:
>>> Hi,
>>>
>>> Unfortunately I still get the same errors:
>>>
>>> CC -xtarget=native64 -I/opt/R-2.8.1/lib/R/include -I/usr/sfw/include 
>>> -I/opt/csw/include -DHAVE_PNG_H -I/usr/include/libpng12 
>>> -DHAVE_FREETYPE -Iext/ftgl -I/usr/sfw/include/freetype2 
>>> -I/usr/sfw/include -Iext -I/opt/SUNWhpc/HPC8.1/sun/include 
>>> -I/usr/sfw/include -I/opt/csw/include     -KPIC  -O -c Background.cpp 
>>> -o Background.o
>>> "math.h", line 47: Error: modf is not a member of file level.
>>> "math.h", line 48: Error: modff is not a member of file level.
>>> "Shape.hpp", line 58: Error: The function "strncpy" must have a 
>>> prototype.
>>> 3 Error(s) detected.
>>> *** Error code 3
>> 
>> That looks like the previous version:  there's no longer a math.h in the 
>> package.  Maybe you downloaded too quickly, or downloaded to the 
>> directory containing the old source and have a mix of both?
>> 
>> Duncan Murdoch
>> 
>>>
>>>
>>> -- 
>>> Mohammad
>>>
>>> Duncan Murdoch wrote:
>>>> On 12/03/2009 3:16 PM, Mohammad Nikseresht wrote:
>>>>> Hi,
>>>>>
>>>>> I receive the following error while I try to install rgl package:
>>>>>
>>>>> CC -xtarget=native64 -I/opt/R-2.8.1/lib/R/include 
>>>>> -I/opt/SUNWhpc/HPC8.1/sun/include -DHAVE_PNG_H 
>>>>> -I/usr/include/libpng12 -DHAVE_FREETYPE -Iext/ftgl 
>>>>> -I/usr/sfw/include/freetype2 -I/usr/sfw/include -Iext 
>>>>> -I/opt/SUNWhpc/HPC8.1/sun/include -I/usr/sfw/include 
>>>>> -I/opt/csw/include    -KPIC  -O -c Background.cpp -o Background.o
>>>>> "math.h", line 47: Error: modf is not a member of file level.
>>>>> "math.h", line 48: Error: modff is not a member of file level.
>>>>> "Shape.hpp", line 58: Error: The function "strncpy" must have a 
>>>>> prototype.
>>>>> 3 Error(s) detected.
>>>>>
>>>>> I am using Sun studio 12.
>>>>> I suspect that this is an incompatibility between g++ and Sun studio 
>>>>> CC.
>>>>> I would appreciate any you could share your experience with me.
>>>>
>>>> Brian Ripley contributed some patches that should help with this.  
>>>> Could you check out the source from R-forge, and confirm that it now 
>>>> compiles on your system?  (Or wait for the tarball there to be 
>>>> updated to 0.84-1 in a few hours, and download that.)
>>>>
>>>> Thanks Brian, for the patch.
>>>>
>>>> Duncan Murdoch



[Rd] Error compiling rgl package
Duncan Murdoch