From ripley at stats.ox.ac.uk  Sat Sep 15 09:18:33 2007
From: ripley at stats.ox.ac.uk (ripley at stats.ox.ac.uk)
Date: Sat, 15 Sep 2007 09:18:33 +0200 (CEST)
Subject: [Rd] (PR#9910) Incomplete library linking for grDevices.so on
Message-ID: <20070915071833.D0B1E4C9EE@slim.kubism.ku.dk>

What compiler system is this?  And what settings were used?

We are not seeing such a problem on Solaris 10 (neither Sparc nor x86_64) 
with the Sun Studio 11 compilers they shipped with (a month or two ago).

Note that the error message is not to do with subject line: it is 
launching R and /export/home/gordonp/Desktop/R-alpha/lib/libRlapack.so 
that has the problem.

I don't think that configure can be expected to know about all possible 
systems on which R might be built, which is why we allow users to set 
variables such as FLIBS and MAIN_LD.  We do try to document the settings 
needed for known systems in the R-admin manual, and that includes all the 
Solaris systems we have encountered or seen reports from.

On Fri, 14 Sep 2007, gordonp at ucalgary.ca wrote:

> Full_Name: Paul Gordon
> Version: 2.6.1 (alpha)
> OS: Solaris 10
> Submission from: (NULL) (136.159.169.6)
>
>
> When compiling R 2.6.1 (alpha 2007-09-13), grDevices.so fails to link 
> properly because of a missing symbol __vlog_.

That is not what the error message reproduced below says, which comes from 
the runtime loader.

>  This symbol is defined in 
> libmvec.so, but no -lmvec is add by the configure script.  Manually 
> adding -lmvec to the linking command allows grDevices to compile.  The 
> error output of the make command (for a 64-bit version of R) is given 
> below:
>
> cc -G -m64 -L/lib/64 -L/usr/lib/64 -L/usr/local/lib/64 -L/usr/ucblib/sparcv9
> -L/usr/ccs/lib/sparcv9 -L/opt/SUNWspro/prod/lib/sparcv9 -o grDevices.so chull.o
> devNull.o devPicTeX.o devPS.o devQuartz.o init.o

> Warning in solve.default(rgb) :
>  unable to load shared library
> '/export/home/gordonp/Desktop/R-alpha/modules//lapack.so':
>  ld.so.1: R: fatal: relocation error: file
> /export/home/gordonp/Desktop/R-alpha/lib/libRlapack.so: symbol __vlog_:
> referenced symbol not found
> Error in solve.default(rgb) : lapack routines cannot be loaded
> Error: unable to load R code in package 'grDevices'
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

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



[Rd] (PR#9910) Incomplete library linking for grDevices.so on
ripley at stats.ox.ac.uk