On Tue, 8 Jan 2008, Peter McMahan wrote: > Hello, > I'm having trouble getting the igraph package to load on Solaris. I > can get igraph to compile and install from a local directory without > issues using simply "R CMD INSTALL igraph", however "library(igraph)" > from within R gives the following errors: > Error in dyn.load(x, as.logical(local), as.logical(now)) : > unable to load shared library '/home/mcmahan/R/i386-pc- > solaris2.10-library/2.5/igraph/libs/igraph.so': > ld.so.1: R: fatal: relocation error: file /home/mcmahan/R/i386-pc- > solaris2.10-library/2.5/igraph/libs/igraph.so: symbol __1cDstdEcerr_: > referenced symbol not found > Error : .onLoad failed in 'loadNamespace' for 'igraph' > Error: package/namespace load failed for 'igraph' > > At the suggestion of the igraph help list, I've tried adding "-lCstd" > to src/Makevars.in after the "[EMAIL PROTECTED]@" and recompliling, > but no luck.
You say you are using gcc, but that would be relevant to the Sun C++ compiler (see the R-admin manual, which also says that configure adds it where needed). So which C++ compiler is this? The symptoms do look as if you are mixing incompatible C and C++ compilers. I don't have anything like as old components as you have, but igraph contains C++ errors and will not compile under the SunStudio 12 C++ compiler (reported to the maintainer a long time ago). It did work for me just now using gcc/g++ 4.2.1 and R 2.6.1 patched. > Any ideas? My system info is: > SunOS 5.10 i386 Generic_120012-14 09-19-2007 > gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath) > R version 2.5.1 (2007-06-27) > igraph version 0.4.5 (with a few changes to compile on Solaris) Since no changes are needed to compile under gcc, this suggests you are not using gcc's C++ compiler. > thanks, > Peter -- 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 ______________________________________________ R-help@r-project.org 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.