[R] Installation help (saveload.c)

Prof Brian D Ripley ripley at stats.ox.ac.uk
Sat May 19 07:54:09 CEST 2001


On Fri, 18 May 2001, Don MacQueen wrote:

> I'm trying to install R on a SunOS 5.6 system.

Your gcc appears to be for SunOS5.4, and gcc version 2.7.0.  You will need
a gcc for SunOS 5.6.  That seems to be the real problem.  Also, gcc version
2.7.0 is years old.  Pre-built versions of gcc for Solaris are available at
various sites, even for Solaris versions as old as 2.6, but it only takes
a few minutes to build 2.95.3 (the current version) from the sources.

> The first problem I encountered was during configuration.
>  From config.log:
>
> configure:7171: checking whether the C++ compiler (c++  ) works
> configure:7187: c++ -o conftest  -I/usr/local/include  conftest.C
> -L/usr/local/lib 1>&5
> ld: fatal: library -lstdc++: not found
> ld: fatal: File processing errors. No output written to conftest
> configure: failed program was:
>
> #line 7182 "configure"
> #include "confdefs.h"
>
> int main(){return(0);}
>
>
> I've asked local system administrators for help finding the missing
> library file. While waiting, I specified CXX=gcc in config.site as a
> possible work-around. This allowed configure to create a makefile.

That's again a symptom of a mis-installed gcc, or a failure to set a
library path (or mis-setting it).


> But now, make fails:
>
> main[61]% pwd
> /erd/statistic/apps/R-1.2.3/src/main
> main[62]%  gcc -I. -I../../src/include -I../../src/include
> -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c saveload.c -o
> saveload.o
> In file included from /usr/include/sys/turnstile.h:12,
>                   from /usr/include/sys/t_lock.h:20,
>                   from /usr/include/sys/vnode.h:37,
>                   from /usr/include/sys/stream.h:21,
>                   from /usr/include/netinet/in.h:38,
>                   from /usr/include/rpc/auth_kerb.h:14,
>                   from /usr/include/rpc/rpc.h:39,
>                   from saveload.c:229:
> /erd/share/gnu/lib/gcc-lib/sparc-sun-solaris2.4/2.7.0/include/sys/param.h:185:
> warning: `NBBY' redefined
> /usr/include/sys/select.h:45: warning: this is the location of the
> previous definition
> In file included from /usr/include/sys/stream.h:26,
>                   from /usr/include/netinet/in.h:38,
>                   from /usr/include/rpc/auth_kerb.h:14,
>                   from /usr/include/rpc/rpc.h:39,
>                   from saveload.c:229:
> /usr/include/sys/model.h:32: #error "No DATAMODEL_NATIVE specified"
>
> The errors appear to be due to lines in select.h and param.h. These
> appear to be Sun-supplied files, so at this point I don't know what
> to do.
>
> Thanks for any suggestions.
> -Don
> --
> --------------------------------------
> Don MacQueen
> Environmental Protection Department
> Lawrence Livermore National Laboratory
> Livermore, CA, USA
> --------------------------------------
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>

-- 
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 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list