[R] rgl install problem on Solaris 10 X86

Prof Brian Ripley ripley at stats.ox.ac.uk
Sat Feb 4 09:20:05 CET 2006


On Fri, 3 Feb 2006, Duncan Murdoch wrote:

> On 2/3/2006 6:37 PM, Dongseok Choi wrote:
>> Hi,
>>
>>   Could you help me to install the rgl package on Solaris 10 x86?
>
> No, but there have been a lot of changes to it since the last upload to
> CRAN.  You might want to grab a new copy from
> http://rgl.neoscientists.org/About.html by getting the latest Subversion
> checkout.

I tried to reproduce this, but our Solaris box does not have GL installed. 
My understanding is that the real problem seems to be that Color.cpp is 
using undeclared ISO C functions and needs to include

#include <stdlib.h> // for realoc and free
#include <string.h> // for memcpy

so please try adding them.

As for the -dalign messages, I presume you included them (like -xlibmil) 
in CXXFLAGS.  They are supported by our SunPro compiler, so which version 
is yours?  (In any case, you need to remove it, if I guessed right.)

>
> Duncan Murdoch
>
>
>>   I tried and got the following error messages.
>>   When I compiled my R as 64bit, I used the SUN ProW compilers.
>>   However, gcc seems to being used below as well as missing some information.
>>
>> Thank you in advance,
>> Dongseok
>>
>>> install.packages("rgl")
>> --- Please select a CRAN mirror for use in this session ---
>> * Installing *source* package 'rgl' ...
>> checking for gcc... gcc
>> checking for C compiler default output file name... a.out
>> checking whether the C compiler works... yes
>> checking whether we are cross compiling... no
>> checking for suffix of executables...
>> checking for suffix of object files... o
>> checking whether we are using the GNU C compiler... yes
>> checking whether gcc accepts -g... yes
>> checking for gcc option to accept ANSI C... none needed
>> checking how to run the C preprocessor... gcc -E
>> checking for X... libraries /usr/openwin/lib, headers /usr/openwin/include
>>
>> checking for libpng-config... yes
>> configure: creating ./config.status
>> config.status: creating src/Makevars
>> ** libs
>> CC -xtarget=generic64 -I/export/home/choid/bin/R2.2.1/lib/R/include -I/usr/openwin/include -DHAVE_PNG_H -I/usr/include/libpng12 -I/mounts/devel/SUNWspro/prd/include -I/mounts/devel/GNU/repoz/readline43/include   -KPIC  -O -xlibmil -dalign -I/mounts/devel/SUNWspro/prod/include -c api.cpp -o api.o
>> CC: Warning: Option -dalign passed to ld, if ld is invoked, ignored otherwise
>> CC -xtarget=generic64 -I/export/home/choid/bin/R2.2.1/lib/R/include -I/usr/openwin/include -DHAVE_PNG_H -I/usr/include/libpng12 -I/mounts/devel/SUNWspro/prd/include -I/mounts/devel/GNU/repoz/readline43/include   -KPIC  -O -xlibmil -dalign -I/mounts/devel/SUNWspro/prod/include -c Background.cpp -o Background.o
>> CC: Warning: Option -dalign passed to ld, if ld is invoked, ignored otherwise
>> "Background.cpp", line 54: Warning: boundingBox hides Shape::boundingBox.
>> 1 Warning(s) detected.
>> CC -xtarget=generic64 -I/export/home/choid/bin/R2.2.1/lib/R/include -I/usr/openwin/include -DHAVE_PNG_H -I/usr/include/libpng12 -I/mounts/devel/SUNWspro/prd/include -I/mounts/devel/GNU/repoz/readline43/include   -KPIC  -O -xlibmil -dalign -I/mounts/devel/SUNWspro/prod/include -c BBoxDeco.cpp -o BBoxDeco.o
>> CC: Warning: Option -dalign passed to ld, if ld is invoked, ignored otherwise
>> CC -xtarget=generic64 -I/export/home/choid/bin/R2.2.1/lib/R/include -I/usr/openwin/include -DHAVE_PNG_H -I/usr/include/libpng12 -I/mounts/devel/SUNWspro/prd/include -I/mounts/devel/GNU/repoz/readline43/include   -KPIC  -O -xlibmil -dalign -I/mounts/devel/SUNWspro/prod/include -c Color.cpp -o Color.oCC: Warning: Option -dalign passed to ld, if ld is invoked, ignored otherwise
>> "Color.cpp", line 142: Error: The function "realloc" must have a prototype.
>> "Color.cpp", line 159: Error: The function "realloc" must have a prototype.
>> "Color.cpp", line 160: Error: The function "memcpy" must have a prototype.
>> "Color.cpp", line 168: Error: The function "free" must have a prototype.
>> "Color.cpp", line 175: Error: The function "realloc" must have a prototype.
>> "Color.cpp", line 196: Error: The function "realloc" must have a prototype.
>> "Color.cpp", line 247: Error: The function "realloc" must have a prototype.
>> 7 Error(s) detected.
>> *** Error code 7
>> make: Fatal error: Command failed for target `Color.o'
>> ERROR: compilation failed for package 'rgl'
>> ** Removing '/export/home/choid/bin/R2.2.1/lib/R/library/rgl'
>>
>> The downloaded packages are in
>>         /tmp/Rtmp9Yaawc/downloaded_packages
>>
>>
>>
>> 	[[alternative HTML version deleted]]
>>
>> ______________________________________________
>> R-help at stat.math.ethz.ch mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list