Here's what should happen on RH9 (with the latest libpng and gcc in /usr/local/lib)
g++ -shared -L/usr/local/lib -o rgl.so x11lib.o x11gui.o types.o math.o fps.o pixmap.o gui.o api.o device.o devicemanager.o rglview.o scene.o glgui.o -L/usr/X11R6/lib -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lpng12 -lz -lm -lstdc++ -lX11 -lXext -lGL -lGLU -lpng12 -lz -lm Note that he had no --shared but did have crt1.o, that is was trying to build a standalone executable and not a shared object. Something is wrong with the R installation's rules to make shared libraries. On Fri, 25 Jun 2004, Duncan Murdoch wrote: > On Fri, 25 Jun 2004 17:36:30 +0000, "E GCP" <[EMAIL PROTECTED]> wrote : > > >Hi! > > > >I'm new to R, but have worked with Splus before. I installed several > >packages in R (R-1.9.1) without problems, but when I try to install rgl > >(rgl_0.64-13.tar.gz). I get the following, and the package does not install. > >Any help would be greatly appreciated. I'm running R in redhat 9. > > The missing reference R_InputHandlers is declared in the > $RHOME/src/include/R_ext/eventloop.h file, and I believe is compiled > into the library R_X11 (with some extension). You don't seem to have > that in the list of libraries: > > >g++ -L/usr/local/lib -o rgl.so x11lib.o x11gui.o types.o math.o fps.o > >pixmap.o > >gui.o api.o device.o devicemanager.o rglview.o scene.o glgui.o > >-L/usr/X11R6/lib > >-L/usr/lib -lstdc++ -lX11 -lXext -lGL -lGLU -lpng > >/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../crt1.o(.text+0x18): In > >functio > >n `_start': > >../sysdeps/i386/elf/start.S:77: undefined reference to `main' > >x11lib.o(.text+0x84): In function `set_R_handler': > >/tmp/R.INSTALL.8663/rgl/src/x11gui.h:33: undefined reference to > >`R_InputHandlers > > I don't know what you'll need to do to fix this, since I'm using > Windows, so none of this stuff happens there, and I could be > completely wrong about it. -- Brian D. Ripley, [EMAIL PROTECTED] 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 ______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
