R-beta: Compile error; R-0.60.1, Solaris 2.6, gcc

Jens Lund jlund at dina.kvl.dk
Sat Dec 13 16:02:19 CET 1997


I have just downloaded the R-0.60.1 sources and have problems compiling R
on a Sun Ultra 1 running Solaris 2.6 and gcc

I have not been able to find to find any compiling hints in the
documentation or the FAQ.

After ./configure I use make and get the output below.

Any hints are welcome.

I am not on the list, so please answer me directly too.

Best regards


Jens Lund
Ph.D. student in statistics
The Royal Veterinary & Agricultural University, Denmark
Please see http://www.dina.kvl.dk/~jlund for further information

Output from ./configure:
poisson:~/src/R-0.60.1/> ./configure
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc -g ) works... yes
checking whether the C compiler (gcc -g ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for bison... bison -y
checking for ranlib... ranlib
checking for ar... ar
checking for lpr... lpr
checking how to run the C preprocessor... gcc -E
checking for X... libraries /usr/openwin/lib, headers /usr/openwin/include
checking whether -R must be followed by a space... no
checking for dnet_ntoa in -ldnet... no
checking for dnet_ntoa in -ldnet_stub... no
checking for gethostbyname... no
checking for gethostbyname in -lnsl... yes
checking for connect... no
checking for connect in -lsocket... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for sin in -lm... yes
checking for main in -lncurses... no
checking for main in -ltermcap... yes
checking for main in -lreadline... no
checking for dlopen in -ldl... yes
checking for strcoll... yes
checking for ANSI C header files... yes
checking for fcntl.h... yes
checking for limits.h... yes
checking for dlfcn.h... yes
checking for dl.h... no
checking for elf.h... yes
checking for time.h... yes
checking for sys/times.h... yes
checking for rpc/xdr.h... yes
checking for readline/history.h... no
checking for working const... yes
checking return type of signal handlers... void
checking for pid_t... yes
checking for vfork.h... no
checking for working vfork... yes
checking for vprintf... yes
checking for strtod... yes
checking for strtol... yes
checking for isnan... yes
checking for finite... yes
checking for matherr... yes
checking for times... yes
checking for rint... yes
checking for asinh... yes
checking for acosh... yes
checking for atanh... yes
checking for regcomp... yes
checking for memmove... yes
checking for memcpy... yes
checking for bcopy... yes
checking for xmkmf... xmkmf
checking how to make shared libraries... done
checking for perl... /pack/collect/bin/perl
checking whether perl is perl 5... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating src/main/Makefile
creating src/graphics/Makefile
creating src/math/Makefile
creating src/appl/Makefile
creating src/regex/Makefile
creating src/unix/Makefile
creating src/front/R.sh
creating etc/SHLIB
creating etc/COMPILE
creating etc/INSTALL
creating etc/REMOVE
creating etc/Rdconv
creating etc/Rdindex
creating etc/Rman2Rd
creating etc/Sd2Rd
creating etc/build-help
creating etc/build-htmlpkglist
creating etc/help.pretty
creating etc/html2dos
creating demos/dynload/Makefile
creating src/library/LIBCLEAN
creating cmd/fwf2table
creating src/include/Platform.h

Output from make:
poisson:~/src/R-0.60.1/> make
Building/Installing R
cd src; make install
make[1]: Entering directory `/home/user_14/jlund/src/R-0.60.1/src'
extracting foreign function symbols
cd graphics; make
make[2]: Entering directory
gcc -g -I../include   -c gdevice.c -o gdevice.o
gcc -g -I../include   -c graphics.c -o graphics.o
ar cr ../lib/libgraphics.a gdevice.o graphics.o
ranlib ../lib/libgraphics.a
make[2]: Leaving directory `/home/user_14/jlund/src/R-0.60.1/src/graphics'
cd math; make
make[2]: Entering directory `/home/user_14/jlund/src/R-0.60.1/src/math'
gcc -g -I../include   -c fsquare.c -o fsquare.o
gcc -g -I../include   -c fcube.c -o fcube.o
gcc -g -I../include   -c fint.c -o fint.o
gcc -g -I../include   -c fmax.c -o fmax.o
gcc -g -I../include   -c fmin2.c -o fmin2.o
gcc -g -I../include   -c imin.c -o imin.o
gcc -g -I../include   -c imax.c -o imax.o
gcc -g -I../include   -c fsign.c -o fsign.o
gcc -g -I../include   -c round.c -o round.o
gcc -g -I../include   -c prec.c -o prec.o
gcc -g -I../include   -c sign.c -o sign.o
gcc -g -I../include   -c i1mach.c -o i1mach.o
gcc -g -I../include   -c d1mach.c -o d1mach.o
gcc -g -I../include   -c beta.c -o beta.o
gcc -g -I../include   -c gamma.c -o gamma.o
gcc -g -I../include   -c lbeta.c -o lbeta.o
gcc -g -I../include   -c lgamma.c -o lgamma.o
gcc -g -I../include   -c choose.c -o choose.o
gcc -g -I../include   -c dpsifn.c -o dpsifn.o
gcc -g -I../include   -c digamma.c -o digamma.o
gcc -g -I../include   -c sexp.c -o sexp.o
gcc -g -I../include   -c snorm.c -o snorm.o
gcc -g -I../include   -c sunif.c -o sunif.o
gcc -g -I../include   -c dbeta.c -o dbeta.o
gcc -g -I../include   -c pbeta.c -o pbeta.o
gcc -g -I../include   -c qbeta.c -o qbeta.o
gcc -g -I../include   -c rbeta.c -o rbeta.o
gcc -g -I../include   -c dbinom.c -o dbinom.o
gcc -g -I../include   -c pbinom.c -o pbinom.o
gcc -g -I../include   -c qbinom.c -o qbinom.o
gcc -g -I../include   -c rbinom.c -o rbinom.o
gcc -g -I../include   -c dcauchy.c -o dcauchy.o
gcc -g -I../include   -c pcauchy.c -o pcauchy.o
gcc -g -I../include   -c qcauchy.c -o qcauchy.o
gcc -g -I../include   -c rcauchy.c -o rcauchy.o
gcc -g -I../include   -c dchisq.c -o dchisq.o
gcc -g -I../include   -c pchisq.c -o pchisq.o
gcc -g -I../include   -c qchisq.c -o qchisq.o
gcc -g -I../include   -c rchisq.c -o rchisq.o
gcc -g -I../include   -c dexp.c -o dexp.o
gcc -g -I../include   -c pexp.c -o pexp.o
gcc -g -I../include   -c qexp.c -o qexp.o
gcc -g -I../include   -c rexp.c -o rexp.o
gcc -g -I../include   -c df.c -o df.o
gcc -g -I../include   -c pf.c -o pf.o
gcc -g -I../include   -c qf.c -o qf.o
gcc -g -I../include   -c rf.c -o rf.o
gcc -g -I../include   -c dgamma.c -o dgamma.o
gcc -g -I../include   -c pgamma.c -o pgamma.o
gcc -g -I../include   -c qgamma.c -o qgamma.o
gcc -g -I../include   -c rgamma.c -o rgamma.o
gcc -g -I../include   -c dgeom.c -o dgeom.o
gcc -g -I../include   -c pgeom.c -o pgeom.o
gcc -g -I../include   -c qgeom.c -o qgeom.o
gcc -g -I../include   -c rgeom.c -o rgeom.o
gcc -g -I../include   -c dhyper.c -o dhyper.o
gcc -g -I../include   -c phyper.c -o phyper.o
gcc -g -I../include   -c qhyper.c -o qhyper.o
gcc -g -I../include   -c rhyper.c -o rhyper.o
gcc -g -I../include   -c dlnorm.c -o dlnorm.o
gcc -g -I../include   -c plnorm.c -o plnorm.o
gcc -g -I../include   -c qlnorm.c -o qlnorm.o
gcc -g -I../include   -c rlnorm.c -o rlnorm.o
gcc -g -I../include   -c dlogis.c -o dlogis.o
gcc -g -I../include   -c plogis.c -o plogis.o
gcc -g -I../include   -c qlogis.c -o qlogis.o
gcc -g -I../include   -c rlogis.c -o rlogis.o
gcc -g -I../include   -c dnbinom.c -o dnbinom.o
gcc -g -I../include   -c pnbinom.c -o pnbinom.o
gcc -g -I../include   -c qnbinom.c -o qnbinom.o
gcc -g -I../include   -c rnbinom.c -o rnbinom.o
gcc -g -I../include   -c pnchisq.c -o pnchisq.o
gcc -g -I../include   -c qnchisq.c -o qnchisq.o
gcc -g -I../include   -c dnorm.c -o dnorm.o
gcc -g -I../include   -c pnorm.c -o pnorm.o
gcc -g -I../include   -c qnorm.c -o qnorm.o
gcc -g -I../include   -c rnorm.c -o rnorm.o
gcc -g -I../include   -c dpois.c -o dpois.o
gcc -g -I../include   -c ppois.c -o ppois.o
gcc -g -I../include   -c qpois.c -o qpois.o
gcc -g -I../include   -c rpois.c -o rpois.o
gcc -g -I../include   -c dt.c -o dt.o
gcc -g -I../include   -c pt.c -o pt.o
gcc -g -I../include   -c qt.c -o qt.o
gcc -g -I../include   -c rt.c -o rt.o
gcc -g -I../include   -c dunif.c -o dunif.o
gcc -g -I../include   -c punif.c -o punif.o
gcc -g -I../include   -c qunif.c -o qunif.o
gcc -g -I../include   -c runif.c -o runif.o
gcc -g -I../include   -c dweibull.c -o dweibull.o
gcc -g -I../include   -c pweibull.c -o pweibull.o
gcc -g -I../include   -c qweibull.c -o qweibull.o
gcc -g -I../include   -c rweibull.c -o rweibull.o
ar cr ../lib/libmath.a fsquare.o fcube.o fint.o fmax.o fmin2.o imin.o
imax.o fsign.o round.o prec.o sign.o i1mach.o d1mach.o beta.o gamma.o
lbeta.o lgamma.o choose.o dpsifn.o digamma.o sexp.o snorm.o sunif.o
dbeta.o pbeta.o qbeta.o rbeta.o dbinom.o pbinom.o qbinom.o rbinom.o
dcauchy.o pcauchy.o qcauchy.o rcauchy.o dchisq.o pchisq.o qchisq.o
rchisq.o dexp.o pexp.o qexp.o rexp.o df.o pf.o qf.o rf.o dgamma.o pgamma.o
qgamma.o rgamma.o dgeom.o pgeom.o qgeom.o rgeom.o dhyper.o phyper.o
qhyper.o rhyper.o dlnorm.o plnorm.o qlnorm.o rlnorm.o dlogis.o plogis.o
qlogis.o rlogis.o dnbinom.o pnbinom.o qnbinom.o rnbinom.o pnchisq.o
qnchisq.o dnorm.o pnorm.o qnorm.o rnorm.o dpois.o ppois.o qpois.o rpois.o
dt.o pt.o qt.o rt.o dunif.o punif.o qunif.o runif.o dweibull.o pweibull.o
qweibull.o rweibull.o
ranlib ../lib/libmath.a
make[2]: Leaving directory `/home/user_14/jlund/src/R-0.60.1/src/math'
cd appl; make
make[2]: Entering directory `/home/user_14/jlund/src/R-0.60.1/src/appl'
gcc -g -I../include   -c approx.c -o approx.o
gcc -g -I../include   -c bakslv.c -o bakslv.o
gcc -g -I../include   -c binning.c -o binning.o
gcc -g -I../include   -c blas.c -o blas.o
gcc -g -I../include   -c zblas.c -o zblas.o
gcc -g -I../include   -c ch2inv.c -o ch2inv.o
gcc -g -I../include   -c chol.c -o chol.o
gcc -g -I../include   -c cpoly.c -o cpoly.o
gcc -g -I../include   -c cumsum.c -o cumsum.o
gcc -g -I../include   -c distance.c -o distance.o
gcc -g -I../include   -c dpoco.c -o dpoco.o
gcc -g -I../include   -c dpodi.c -o dpodi.o
gcc -g -I../include   -c dpofa.c -o dpofa.o
gcc -g -I../include   -c dposl.c -o dposl.o
gcc -g -I../include   -c dqrdc.c -o dqrdc.o
gcc -g -I../include   -c dqrdc2.c -o dqrdc2.o
gcc -g -I../include   -c dqrls.c -o dqrls.o
gcc -g -I../include   -c dqrsl.c -o dqrsl.o
gcc -g -I../include   -c dqrutl.c -o dqrutl.o
gcc -g -I../include   -c dsvdc.c -o dsvdc.o
gcc -g -I../include   -c dtrsl.c -o dtrsl.o
gcc -g -I../include   -c eigen.c -o eigen.o
gcc -g -I../include   -c fortran.c -o fortran.o
gcc -g -I../include   -c fft.c -o fft.o
gcc -g -I../include   -c fmin.c -o fmin.o
gcc -g -I../include   -c lminfl.c -o lminfl.o
gcc -g -I../include   -c lowess.c -o lowess.o
gcc -g -I../include   -c machar.c -o machar.o
gcc -g -I../include   -c massdist.c -o massdist.o
gcc -g -I../include   -c pretty.c -o pretty.o
gcc -g -I../include   -c splines.c -o splines.o
gcc -g -I../include   -c stem.c -o stem.o
gcc -g -I../include   -c strsignif.c -o strsignif.o
gcc -g -I../include   -c tabulate.c -o tabulate.o
gcc -g -I../include   -c uncmin.c -o uncmin.o
gcc -g -I../include   -c zeroin.c -o zeroin.o
ar cr ../lib/libappl.a approx.o bakslv.o binning.o blas.o zblas.o ch2inv.o
chol.o cpoly.o cumsum.o distance.o dpoco.o dpodi.o dpofa.o dposl.o dqrdc.o
dqrdc2.o dqrls.o dqrsl.o dqrutl.o dsvdc.o dtrsl.o eigen.o fortran.o fft.o
fmin.o lminfl.o lowess.o machar.o massdist.o pretty.o splines.o stem.o
strsignif.o tabulate.o uncmin.o zeroin.o
ranlib ../lib/libappl.a
make[2]: Leaving directory `/home/user_14/jlund/src/R-0.60.1/src/appl'
cd unix; make
make[2]: Entering directory `/home/user_14/jlund/src/R-0.60.1/src/unix'
gcc -g -I../include -I/usr/openwin/include -c dataentry.c
gcc -g -I../include -I/usr/openwin/include -c devX11.c
gcc -g -I../include -c devPS.c
gcc -g -I../include   -c dynload.c -o dynload.o
In file included from dynload.c:62:
warning: `NBBY' redefined
/usr/include/sys/select.h:45: warning: this is the location of the
previous definition
gcc -g -I../include   -c edit.c -o edit.o
gcc -g -I../include -c fileio.c
gcc -g -I../include -c psx11.c
gcc -g -I../include   -c PostScript.c -o PostScript.o
gcc -g -I../include -c devPicTeX.c
gcc -g -I../include -I/usr/openwin/include -c rotated.c
gcc -g -I../include -c system.c
ar cr ../lib/libunix.a dataentry.o devX11.o devPS.o dynload.o edit.o
fileio.o psx11.o PostScript.o devPicTeX.o rotated.o system.o
ranlib ../lib/libunix.a
make[2]: Leaving directory `/home/user_14/jlund/src/R-0.60.1/src/unix'
cd main; make
make[2]: Entering directory `/home/user_14/jlund/src/R-0.60.1/src/main'
gcc -g -I../include   -c arithmetic.c -o arithmetic.o
gcc -g -I../include   -c array.c -o array.o
gcc -g -I../include   -c attrib.c -o attrib.o
gcc -g -I../include   -c bind.c -o bind.o
gcc -g -I../include   -c builtin.c -o builtin.o
gcc -g -I../include   -c character.c -o character.o
gcc -g -I../include   -c coerce.c -o coerce.o
gcc -g -I../include   -c colors.c -o colors.o
gcc -g -I../include   -c complex.c -o complex.o
gcc -g -I../include   -c context.c -o context.o
gcc -g -I../include   -c cov.c -o cov.o
gcc -g -I../include   -c cum.c -o cum.o
gcc -g -I../include   -c dataframe.c -o dataframe.o
gcc -g -I../include   -c debug.c -o debug.o
gcc -g -I../include   -c deparse.c -o deparse.o
gcc -g -I../include   -c deriv.c -o deriv.o
gcc -g -I../include   -c dotcode.c -o dotcode.o
gcc -g -I../include   -c dstruct.c -o dstruct.o
gcc -g -I../include   -c duplicate.c -o duplicate.o
gcc -g -I../include   -c envir.c -o envir.o
gcc -g -I../include   -c errors.c -o errors.o
gcc -g -I../include   -c eval.c -o eval.o
gcc -g -I../include   -c format.c -o format.o
gcc -g -I../include   -c fourier.c -o fourier.o
gcc -g -I../include   -c iosupport.c -o iosupport.o
gcc -g -I../include   -c gram.c -o gram.o
gcc -g -I../include   -c list.c -o list.o
gcc -g -I../include   -c logic.c -o logic.o
gcc -g -I../include   -c main.c -o main.o
gcc -g -I../include   -c match.c -o match.o
gcc -g -I../include   -c memory.c -o memory.o
gcc -g -I../include   -c model.c -o model.o
gcc -g -I../include   -c names.c -o names.o
gcc -g -I../include   -c objects.c -o objects.o
gcc -g -I../include   -c optimize.c -o optimize.o
gcc -g -I../include   -c options.c -o options.o
gcc -g -I../include   -c par.c -o par.o
gcc -g -I../include   -c paste.c -o paste.o
gcc -g -I../include   -c plot.c -o plot.o
gcc -g -I../include   -c plot3d.c -o plot3d.o
gcc -g -I../include   -c plotmath.c -o plotmath.o
gcc -g -I../include   -c print.c -o print.o
gcc -g -I../include   -c printarray.c -o printarray.o
gcc -g -I../include   -c printvector.c -o printvector.o
gcc -g -I../include   -c printutils.c -o printutils.o
gcc -g -I../include   -c random.c -o random.o
gcc -g -I../include   -c relop.c -o relop.o
gcc -g -I../include   -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:243:
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:243:
/usr/include/sys/model.h:32: #error "No DATAMODEL_NATIVE specified"
make[2]: *** [saveload.o] Error 1
make[2]: Leaving directory `/home/user_14/jlund/src/R-0.60.1/src/main'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/home/user_14/jlund/src/R-0.60.1/src'
make: *** [install] Error 2

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