Hello,

I am trying to install rgl package under R and getting some errors which is
below.

> install.packages("rgl")
Warning in install.packages("rgl") :
  argument 'lib' is missing: using '/usr/lib/R/library'
trying URL 'http://cran.csie.ntu.edu.tw/src/contrib/rgl_0.91.tar.gz'
Content type 'application/x-gzip' length 1677498 bytes (1.6 Mb)
opened URL
==================================================
downloaded 1.6 Mb

* installing *source* package ‘rgl’ ...
checking for gcc... gcc -m32 -std=gnu99
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 -m32 -std=gnu99 accepts -g... yes
checking for gcc -m32 -std=gnu99 option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -m32 -std=gnu99 -E
checking for gcc... (cached) gcc -m32 -std=gnu99
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc -m32 -std=gnu99 accepts -g... (cached) yes
checking for gcc -m32 -std=gnu99 option to accept ISO C89... (cached) none
needed
checking for libpng-config... no
checking libpng... checking for grep that handles long lines and -e...
/bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking png.h usability... no
checking png.h presence... no
checking for png.h... no
checking for png_read_update_info in -lpng... no
configure: libpng header and lib found
configure: using libpng dynamic linkage
checking for X... libraries , headers
checking GL/gl.h usability... yes
checking GL/gl.h presence... yes
checking for GL/gl.h... yes
checking GL/glu.h usability... yes
checking GL/glu.h presence... yes
checking for GL/glu.h... yes
checking for glEnd in -lGL... yes
checking for gluProject in -lGLU... yes
checking for freetype-config... yes
configure: using Freetype and FTGL
configure: creating ./config.status
config.status: creating src/Makevars
** libs
g++ -m32 -I/usr/include/R -DHAVE_PNG_H -DHAVE_FREETYPE -Iext/ftgl
-I/usr/include/freetype2 -Iext -I/usr/local/include   -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -fpic  -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -c BBoxDeco.cpp -o BBoxDeco.o
g++ -m32 -I/usr/include/R -DHAVE_PNG_H -DHAVE_FREETYPE -Iext/ftgl
-I/usr/include/freetype2 -Iext -I/usr/local/include   -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -fpic  -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -c Background.cpp -o Background.o
g++ -m32 -I/usr/include/R -DHAVE_PNG_H -DHAVE_FREETYPE -Iext/ftgl
-I/usr/include/freetype2 -Iext -I/usr/local/include   -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -fpic  -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -c Color.cpp -o Color.o
g++ -m32 -I/usr/include/R -DHAVE_PNG_H -DHAVE_FREETYPE -Iext/ftgl
-I/usr/include/freetype2 -Iext -I/usr/local/include   -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -fpic  -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -c Disposable.cpp -o Disposable.o
g++ -m32 -I/usr/include/R -DHAVE_PNG_H -DHAVE_FREETYPE -Iext/ftgl
-I/usr/include/freetype2 -Iext -I/usr/local/include   -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -fpic  -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -c Light.cpp -o Light.o
g++ -m32 -I/usr/include/R -DHAVE_PNG_H -DHAVE_FREETYPE -Iext/ftgl
-I/usr/include/freetype2 -Iext -I/usr/local/include   -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -fpic  -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -c LineSet.cpp -o LineSet.o
g++ -m32 -I/usr/include/R -DHAVE_PNG_H -DHAVE_FREETYPE -Iext/ftgl
-I/usr/include/freetype2 -Iext -I/usr/local/include   -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -fpic  -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -c LineStripSet.cpp -o LineStripSet.o
g++ -m32 -I/usr/include/R -DHAVE_PNG_H -DHAVE_FREETYPE -Iext/ftgl
-I/usr/include/freetype2 -Iext -I/usr/local/include   -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -fpic  -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -c Material.cpp -o Material.o
g++ -m32 -I/usr/include/R -DHAVE_PNG_H -DHAVE_FREETYPE -Iext/ftgl
-I/usr/include/freetype2 -Iext -I/usr/local/include   -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -fpic  -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -c PointSet.cpp -o PointSet.o
g++ -m32 -I/usr/include/R -DHAVE_PNG_H -DHAVE_FREETYPE -Iext/ftgl
-I/usr/include/freetype2 -Iext -I/usr/local/include   -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -fpic  -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -c PrimitiveSet.cpp -o PrimitiveSet.o
g++ -m32 -I/usr/include/R -DHAVE_PNG_H -DHAVE_FREETYPE -Iext/ftgl
-I/usr/include/freetype2 -Iext -I/usr/local/include   -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -fpic  -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -c QuadSet.cpp -o QuadSet.o
g++ -m32 -I/usr/include/R -DHAVE_PNG_H -DHAVE_FREETYPE -Iext/ftgl
-I/usr/include/freetype2 -Iext -I/usr/local/include   -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -fpic  -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -c RenderContext.cpp -o RenderContext.o
g++ -m32 -I/usr/include/R -DHAVE_PNG_H -DHAVE_FREETYPE -Iext/ftgl
-I/usr/include/freetype2 -Iext -I/usr/local/include   -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -fpic  -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -c Shape.cpp -o Shape.o
g++ -m32 -I/usr/include/R -DHAVE_PNG_H -DHAVE_FREETYPE -Iext/ftgl
-I/usr/include/freetype2 -Iext -I/usr/local/include   -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -fpic  -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -c SphereMesh.cpp -o SphereMesh.o
g++ -m32 -I/usr/include/R -DHAVE_PNG_H -DHAVE_FREETYPE -Iext/ftgl
-I/usr/include/freetype2 -Iext -I/usr/local/include   -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -fpic  -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -c SphereSet.cpp -o SphereSet.o
g++ -m32 -I/usr/include/R -DHAVE_PNG_H -DHAVE_FREETYPE -Iext/ftgl
-I/usr/include/freetype2 -Iext -I/usr/local/include   -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -fpic  -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -c SpriteSet.cpp -o SpriteSet.o
g++ -m32 -I/usr/include/R -DHAVE_PNG_H -DHAVE_FREETYPE -Iext/ftgl
-I/usr/include/freetype2 -Iext -I/usr/local/include   -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -fpic  -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -c String.cpp -o String.o
g++ -m32 -I/usr/include/R -DHAVE_PNG_H -DHAVE_FREETYPE -Iext/ftgl
-I/usr/include/freetype2 -Iext -I/usr/local/include   -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -fpic  -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -c Surface.cpp -o Surface.o
g++ -m32 -I/usr/include/R -DHAVE_PNG_H -DHAVE_FREETYPE -Iext/ftgl
-I/usr/include/freetype2 -Iext -I/usr/local/include   -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -fpic  -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -c TextSet.cpp -o TextSet.o
g++ -m32 -I/usr/include/R -DHAVE_PNG_H -DHAVE_FREETYPE -Iext/ftgl
-I/usr/include/freetype2 -Iext -I/usr/local/include   -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -fpic  -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -c Texture.cpp -o Texture.o
g++ -m32 -I/usr/include/R -DHAVE_PNG_H -DHAVE_FREETYPE -Iext/ftgl
-I/usr/include/freetype2 -Iext -I/usr/local/include   -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -fpic  -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -c Viewpoint.cpp -o Viewpoint.o
g++ -m32 -I/usr/include/R -DHAVE_PNG_H -DHAVE_FREETYPE -Iext/ftgl
-I/usr/include/freetype2 -Iext -I/usr/local/include   -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -fpic  -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -c api.cpp -o api.o
g++ -m32 -I/usr/include/R -DHAVE_PNG_H -DHAVE_FREETYPE -Iext/ftgl
-I/usr/include/freetype2 -Iext -I/usr/local/include   -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -fpic  -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -c assert.cpp -o assert.o
g++ -m32 -I/usr/include/R -DHAVE_PNG_H -DHAVE_FREETYPE -Iext/ftgl
-I/usr/include/freetype2 -Iext -I/usr/local/include   -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -fpic  -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -c callbacks.cpp -o callbacks.o
g++ -m32 -I/usr/include/R -DHAVE_PNG_H -DHAVE_FREETYPE -Iext/ftgl
-I/usr/include/freetype2 -Iext -I/usr/local/include   -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -fpic  -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -c device.cpp -o device.o
g++ -m32 -I/usr/include/R -DHAVE_PNG_H -DHAVE_FREETYPE -Iext/ftgl
-I/usr/include/freetype2 -Iext -I/usr/local/include   -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -fpic  -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -c devicemanager.cpp -o devicemanager.o
g++ -m32 -I/usr/include/R -DHAVE_PNG_H -DHAVE_FREETYPE -Iext/ftgl
-I/usr/include/freetype2 -Iext -I/usr/local/include   -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -fpic  -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -c fps.cpp -o fps.o
g++ -m32 -I/usr/include/R -DHAVE_PNG_H -DHAVE_FREETYPE -Iext/ftgl
-I/usr/include/freetype2 -Iext -I/usr/local/include   -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -fpic  -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -c ftgl.cpp -o ftgl.o
g++ -m32 -I/usr/include/R -DHAVE_PNG_H -DHAVE_FREETYPE -Iext/ftgl
-I/usr/include/freetype2 -Iext -I/usr/local/include   -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -fpic  -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -c geom.cpp -o geom.o
gcc -m32 -std=gnu99 -I/usr/include/R -DHAVE_PNG_H -DHAVE_FREETYPE -Iext/ftgl
-I/usr/include/freetype2 -Iext -I/usr/local/include    -fpic  -O2 -g -pipe
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -c gl2ps.c -o gl2ps.o
g++ -m32 -I/usr/include/R -DHAVE_PNG_H -DHAVE_FREETYPE -Iext/ftgl
-I/usr/include/freetype2 -Iext -I/usr/local/include   -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -fpic  -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -c glErrors.cpp -o glErrors.o
g++ -m32 -I/usr/include/R -DHAVE_PNG_H -DHAVE_FREETYPE -Iext/ftgl
-I/usr/include/freetype2 -Iext -I/usr/local/include   -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -fpic  -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -c glgui.cpp -o glgui.o
g++ -m32 -I/usr/include/R -DHAVE_PNG_H -DHAVE_FREETYPE -Iext/ftgl
-I/usr/include/freetype2 -Iext -I/usr/local/include   -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -fpic  -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -c gui.cpp -o gui.o
g++ -m32 -I/usr/include/R -DHAVE_PNG_H -DHAVE_FREETYPE -Iext/ftgl
-I/usr/include/freetype2 -Iext -I/usr/local/include   -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -fpic  -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -c init.cpp -o init.o
g++ -m32 -I/usr/include/R -DHAVE_PNG_H -DHAVE_FREETYPE -Iext/ftgl
-I/usr/include/freetype2 -Iext -I/usr/local/include   -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -fpic  -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -c osxgui.cpp -o osxgui.o
g++ -m32 -I/usr/include/R -DHAVE_PNG_H -DHAVE_FREETYPE -Iext/ftgl
-I/usr/include/freetype2 -Iext -I/usr/local/include   -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -fpic  -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -c osxlib.cpp -o osxlib.o
g++ -m32 -I/usr/include/R -DHAVE_PNG_H -DHAVE_FREETYPE -Iext/ftgl
-I/usr/include/freetype2 -Iext -I/usr/local/include   -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -fpic  -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -c par3d.cpp -o par3d.o
g++ -m32 -I/usr/include/R -DHAVE_PNG_H -DHAVE_FREETYPE -Iext/ftgl
-I/usr/include/freetype2 -Iext -I/usr/local/include   -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -fpic  -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -c pixmap.cpp -o pixmap.o
In file included from pixmap.cpp:14:
pngpixmap.h:3:17: error: png.h: No such file or directory
In file included from pixmap.cpp:14:
pngpixmap.h:124: error: ‘png_structp’ has not been declared
pngpixmap.h:124: error: ‘png_const_charp’ has not been declared
pngpixmap.h:131: error: ‘png_structp’ has not been declared
pngpixmap.h:131: error: ‘png_const_charp’ has not been declared
pngpixmap.h:139: error: ‘png_structp’ has not been declared
pngpixmap.h:139: error: ‘png_infop’ has not been declared
pngpixmap.h:244: error: ‘png_structp’ has not been declared
pngpixmap.h:244: error: ‘png_bytep’ has not been declared
pngpixmap.h:244: error: ‘png_uint_32’ has not been declared
pngpixmap.h:253: error: ‘png_structp’ has not been declared
pngpixmap.h:253: error: ‘png_infop’ has not been declared
pngpixmap.h:275: error: expected ‘)’ before ‘*’ token
pngpixmap.h:280: error: ‘png_structp’ does not name a type
pngpixmap.h:281: error: ‘png_infop’ does not name a type
pngpixmap.h:392: error: ‘png_structp’ has not been declared
pngpixmap.h:392: error: ‘png_const_charp’ has not been declared
pngpixmap.h:399: error: ‘png_structp’ has not been declared
pngpixmap.h:399: error: ‘png_const_charp’ has not been declared
pngpixmap.h:410: error: ‘png_structp’ does not name a type
pngpixmap.h:411: error: ‘png_infop’ does not name a type
pngpixmap.h: In member function ‘virtual bool
PNGPixmapFormat::checkSignature(FILE*)’:
pngpixmap.h:23: error: ‘png_sig_cmp’ was not declared in this scope
pngpixmap.h:20: warning: ignoring return value of ‘size_t fread(void*,
size_t, size_t, FILE*)’, declared with attribute warn_unused_result
pngpixmap.h: In constructor ‘PNGPixmapFormat::Load::Load(FILE*, Pixmap*)’:
pngpixmap.h:66: error: ‘png_ptr’ was not declared in this scope
pngpixmap.h:67: error: ‘info_ptr’ was not declared in this scope
pngpixmap.h: In member function ‘bool PNGPixmapFormat::Load::init()’:
pngpixmap.h:76: error: ‘png_ptr’ was not declared in this scope
pngpixmap.h:76: error: ‘PNG_LIBPNG_VER_STRING’ was not declared in this
scope
pngpixmap.h:76: error: ‘png_voidp’ was not declared in this scope
pngpixmap.h:76: error: ‘png_create_read_struct’ was not declared in this
scope
pngpixmap.h:79: error: ‘info_ptr’ was not declared in this scope
pngpixmap.h:79: error: ‘png_create_info_struct’ was not declared in this
scope
pngpixmap.h:81: error: ‘png_set_progressive_read_fn’ was not declared in
this scope
pngpixmap.h: In member function ‘bool PNGPixmapFormat::Load::process()’:
pngpixmap.h:97: error: ‘png_ptr’ was not declared in this scope
pngpixmap.h:97: error: ‘info_ptr’ was not declared in this scope
pngpixmap.h:97: error: ‘png_process_data’ was not declared in this scope
pngpixmap.h: In destructor ‘PNGPixmapFormat::Load::~Load()’:
pngpixmap.h:105: error: ‘png_ptr’ was not declared in this scope
pngpixmap.h:106: error: ‘info_ptr’ was not declared in this scope
pngpixmap.h:106: error: ‘png_infopp’ was not declared in this scope
pngpixmap.h:106: error: ‘png_destroy_read_struct’ was not declared in this
scope
pngpixmap.h: In static member function ‘static void
PNGPixmapFormat::Load::info_callback(int, int)’:
pngpixmap.h:142: error: ‘png_get_progressive_ptr’ was not declared in this
scope
pngpixmap.h:144: error: ‘png_uint_32’ was not declared in this scope
pngpixmap.h:144: error: expected ‘;’ before ‘width’
pngpixmap.h:147: error: ‘class PNGPixmapFormat::Load’ has no member named
‘png_ptr’
pngpixmap.h:147: error: ‘class PNGPixmapFormat::Load’ has no member named
‘info_ptr’
pngpixmap.h:287: error: invalid use of member ‘PNGPixmapFormat::Load::width’
in static member function
pngpixmap.h:147: error: from this location
pngpixmap.h:288: error: invalid use of member
‘PNGPixmapFormat::Load::height’ in static member function
pngpixmap.h:147: error: from this location
pngpixmap.h:149: error: ‘png_get_IHDR’ was not declared in this scope
pngpixmap.h:155: error: ‘PNG_COLOR_TYPE_RGB’ was not declared in this scope
pngpixmap.h:158: error: ‘PNG_COLOR_TYPE_GRAY’ was not declared in this scope
pngpixmap.h:161: error: ‘PNG_COLOR_TYPE_PALETTE’ was not declared in this
scope
pngpixmap.h:164: error: ‘PNG_COLOR_TYPE_RGB_ALPHA’ was not declared in this
scope
pngpixmap.h:167: error: ‘PNG_COLOR_TYPE_GRAY_ALPHA’ was not declared in this
scope
pngpixmap.h:175: error: ‘PNG_INTERLACE_ADAM7’ was not declared in this scope
pngpixmap.h:178: error: ‘png_set_strip_16’ was not declared in this scope
pngpixmap.h:179: error: ‘PNG_COLOR_TYPE_GRAY’ was not declared in this scope
pngpixmap.h:180: error: ‘png_set_expand_gray_1_2_4_to_8’ was not declared in
this scope
pngpixmap.h:190: error: ‘PNG_COLOR_TYPE_RGB’ was not declared in this scope
pngpixmap.h:193: error: ‘PNG_COLOR_TYPE_GRAY’ was not declared in this scope
pngpixmap.h:196: error: ‘PNG_COLOR_TYPE_RGB_ALPHA’ was not declared in this
scope
pngpixmap.h:199: error: ‘PNG_COLOR_TYPE_PALETTE’ was not declared in this
scope
pngpixmap.h:200: error: ‘png_set_palette_to_rgb’ was not declared in this
scope
pngpixmap.h:203: error: ‘PNG_COLOR_TYPE_GRAY_ALPHA’ was not declared in this
scope
pngpixmap.h:204: error: ‘png_set_gray_to_rgb’ was not declared in this scope
pngpixmap.h:213: error: ‘PNG_INFO_tRNS’ was not declared in this scope
pngpixmap.h:213: error: ‘png_get_valid’ was not declared in this scope
pngpixmap.h:214: error: ‘png_set_tRNS_to_alpha’ was not declared in this
scope
pngpixmap.h:287: error: invalid use of member ‘PNGPixmapFormat::Load::width’
in static member function
pngpixmap.h:218: error: from this location
pngpixmap.h:288: error: invalid use of member
‘PNGPixmapFormat::Load::height’ in static member function
pngpixmap.h:218: error: from this location
pngpixmap.h:220: error: ‘class PNGPixmapFormat::Load’ has no member named
‘png_ptr’
pngpixmap.h:220: error: ‘class PNGPixmapFormat::Load’ has no member named
‘info_ptr’
pngpixmap.h:220: error: ‘png_read_update_info’ was not declared in this
scope
pngpixmap.h:287: error: invalid use of member ‘PNGPixmapFormat::Load::width’
in static member function
pngpixmap.h:226: error: from this location
pngpixmap.h:288: error: invalid use of member
‘PNGPixmapFormat::Load::height’ in static member function
pngpixmap.h:226: error: from this location
pngpixmap.h:229: error: ‘class PNGPixmapFormat::Load’ has no member named
‘png_ptr’
pngpixmap.h:229: error: ‘class PNGPixmapFormat::Load’ has no member named
‘info_ptr’
pngpixmap.h: In static member function ‘static void
PNGPixmapFormat::Load::row_callback(int, int, int, int)’:
pngpixmap.h:246: error: ‘png_get_progressive_ptr’ was not declared in this
scope
pngpixmap.h:250: error: invalid conversion from ‘int’ to ‘const void*’
pngpixmap.h:250: error:   initializing argument 2 of ‘void* memcpy(void*,
const void*, size_t)’
pngpixmap.h: In static member function ‘static void
PNGPixmapFormat::Load::end_callback(int, int)’:
pngpixmap.h:255: error: ‘png_get_progressive_ptr’ was not declared in this
scope
pngpixmap.h: In constructor ‘PNGPixmapFormat::Save::Save(FILE*, Pixmap*)’:
pngpixmap.h:306: error: ‘png_ptr’ was not declared in this scope
pngpixmap.h:307: error: ‘info_ptr’ was not declared in this scope
pngpixmap.h: In member function ‘bool PNGPixmapFormat::Save::init()’:
pngpixmap.h:314: error: ‘png_ptr’ was not declared in this scope
pngpixmap.h:314: error: ‘PNG_LIBPNG_VER_STRING’ was not declared in this
scope
pngpixmap.h:314: error: ‘png_voidp’ was not declared in this scope
pngpixmap.h:314: error: ‘png_create_write_struct’ was not declared in this
scope
pngpixmap.h:317: error: ‘info_ptr’ was not declared in this scope
pngpixmap.h:317: error: ‘png_create_info_struct’ was not declared in this
scope
pngpixmap.h:319: error: ‘png_init_io’ was not declared in this scope
pngpixmap.h: In member function ‘bool PNGPixmapFormat::Save::process()’:
pngpixmap.h:329: error: ‘png_ptr’ was not declared in this scope
pngpixmap.h:329: error: ‘png_jmpbuf’ was not declared in this scope
pngpixmap.h:329: error: ‘setjmp’ was not declared in this scope
pngpixmap.h:331: error: ‘info_ptr’ was not declared in this scope
pngpixmap.h:331: error: ‘png_destroy_write_struct’ was not declared in this
scope
pngpixmap.h:335: error: ‘png_ptr’ was not declared in this scope
pngpixmap.h:335: error: ‘PNG_FILTER_NONE’ was not declared in this scope
pngpixmap.h:335: error: ‘png_set_filter’ was not declared in this scope
pngpixmap.h:338: error: ‘PNG_COLOR_TYPE_RGB’ was not declared in this scope
pngpixmap.h:339: error: ‘PNG_INTERLACE_NONE’ was not declared in this scope
pngpixmap.h:340: error: ‘PNG_COMPRESSION_TYPE_DEFAULT’ was not declared in
this scope
pngpixmap.h:341: error: ‘PNG_FILTER_TYPE_DEFAULT’ was not declared in this
scope
pngpixmap.h:343: error: ‘info_ptr’ was not declared in this scope
pngpixmap.h:346: error: ‘png_set_IHDR’ was not declared in this scope
pngpixmap.h:348: error: ‘png_text’ was not declared in this scope
pngpixmap.h:348: error: expected ‘;’ before ‘text’
pngpixmap.h:350: error: ‘text’ was not declared in this scope
pngpixmap.h:350: error: ‘png_charp’ was not declared in this scope
pngpixmap.h:350: error: expected ‘;’ before string constant
pngpixmap.h:351: error: expected ‘;’ before string constant
pngpixmap.h:352: error: ‘PNG_TEXT_COMPRESSION_NONE’ was not declared in this
scope
pngpixmap.h:354: error: ‘png_set_text’ was not declared in this scope
pngpixmap.h:356: error: ‘png_write_info’ was not declared in this scope
pngpixmap.h:358: error: ‘png_bytep’ was not declared in this scope
pngpixmap.h:358: error: expected ‘;’ before ‘rowptr’
pngpixmap.h:361: error: ‘rowptr’ was not declared in this scope
pngpixmap.h:361: error: ‘png_write_row’ was not declared in this scope
pngpixmap.h:365: error: ‘png_write_end’ was not declared in this scope
pngpixmap.h: In destructor ‘PNGPixmapFormat::Save::~Save()’:
pngpixmap.h:372: error: ‘png_ptr’ was not declared in this scope
pngpixmap.h:373: error: ‘info_ptr’ was not declared in this scope
pngpixmap.h:373: error: ‘png_destroy_write_struct’ was not declared in this
scope
make: *** [pixmap.o] Error 1
ERROR: compilation failed for package ‘rgl’
* removing ‘/usr/lib/R/library/rgl’

The downloaded packages are in
    ‘/tmp/Rtmp0QurXP/downloaded_packages’
Updating HTML index of packages in '.Library'
Warning message:
In install.packages("rgl") :
  installation of package 'rgl' had non-zero exit status

Can anyone tell me ahat exactly I am missing while my installation.

Thank you in advance

Jeet

	[[alternative HTML version deleted]]

