[R] Installation help (saveload.c)

Don MacQueen macq at llnl.gov
Sat May 19 01:23:49 CEST 2001


I'm trying to install R on a SunOS 5.6 system.
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.

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



More information about the R-help mailing list