[R] Rggobi compilation error: display.c

Prof Brian Ripley ripley at stats.ox.ac.uk
Thu Sep 6 07:56:00 CEST 2007


On Wed, 5 Sep 2007, Yuelin Li wrote:

> On a ubuntu linux computer (Feisty, i386), I compile R and additional
> packages from source.  The compiler is gcc 4.1.2.
>
> The problem is, I can run "sudo R" and successfully compile all
> packages (e.g., MASS, lattice) except rggobi.  The error seems to be
> in display.c.  My ggobi is in /usr/local/, which R can find.  I don't
> think this is a dependence issue because install.packages(...,
> dependence=TRUE).  The script complains about not finding
> "/usr/local/lib/R/library/rggobi/libs/*", but that directory is there,
> with one file "rggobi.so" (possibly from an earlier successful
> compilation).

I don't think the file was there at the time, before the previous 
installation was restored.

> Any suggestions on what I am doing wrong?  Many thanks in advance.

Here is the error:

> display.c:37: error: too many arguments to function ÿÿklass->createWithVarsÿÿ

That is a symptom of installing rggobi_2.1.6 against ggobi 2.1.4: 
unfortunately rggobi's configure did not check the ggobi version.
It looks like you have an earlier rggobi installed, probably the one 
appropriate to your ggobi version.

> Yuelin.
>
>
> --------- R output ---------------
>> install.packages("rggobi", repos = "http://lib.stat.cmu.edu/R/CRAN", dependencies = TRUE, clean = TRUE)
> trying URL 'http://lib.stat.cmu.edu/R/CRAN/src/contrib/rggobi_2.1.6.tar.gz'
> Content type 'application/x-gzip' length 424483 bytes
> opened URL
> ==================================================
> downloaded 414Kb
>
> * Installing *source* package 'rggobi' ...
> checking for pkg-config... /usr/bin/pkg-config
> checking pkg-config is at least version 0.9.0... yes
> checking for GGOBI... yes
> configure: creating ./config.status
> config.status: creating src/Makevars
> ** libs
> gcc -std=gnu99 -I/usr/local/lib/R/include -I/usr/local/lib/R/include -g -DUSE_EXT_PTR=1 -D_R_=1 -I/usr/local/include/ggobi -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12   -I/usr/local/include    -fpic  -g -O2 -c brush.c -o brush.o
>
> [... snipped ...]
>
> gcc -std=gnu99 -I/usr/local/lib/R/include -I/usr/local/lib/R/include -g -DUSE_EXT_PTR=1 -D_R_=1 -I/usr/local/include/ggobi -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12   -I/usr/local/include    -fpic  -g -O2 -c dataset.c -o dataset.o
> gcc -std=gnu99 -I/usr/local/lib/R/include -I/usr/local/lib/R/include -g -DUSE_EXT_PTR=1 -D_R_=1 -I/usr/local/include/ggobi -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12   -I/usr/local/include    -fpic  -g -O2 -c display.c -o display.o
> display.c: In function ÿÿRS_GGOBI_createDisplayÿÿ:
> display.c:37: warning: passing argument 3 of ÿÿklass->createWithVarsÿÿ makes pointer from integer without a cast
> display.c:37: warning: passing argument 4 of ÿÿklass->createWithVarsÿÿ from incompatible pointer type
> display.c:37: warning: passing argument 5 of ÿÿklass->createWithVarsÿÿ from incompatible pointer type
> display.c:37: error: too many arguments to function ÿÿklass->createWithVarsÿÿ
> display.c:39: warning: passing argument 4 of ÿÿklass->createÿÿ from incompatible pointer type
> display.c:39: error: too many arguments to function ÿÿklass->createÿÿ
> make: *** [display.o] Error 1
> chmod: cannot access `/usr/local/lib/R/library/rggobi/libs/*': No such file or directory
> ERROR: compilation failed for package 'rggobi'
> ** Removing '/usr/local/lib/R/library/rggobi'
> ** Restoring previous '/usr/local/lib/R/library/rggobi'
>
> ______________________________________________
> 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
> and provide commented, minimal, self-contained, reproducible code.
>

-- 
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