R-beta: Query: installing 0.50-a1 on Solaris 2.5.1

Simon Fear (fear@scmp.scm.liv.ac.uk)
Wed, 30 Jul 1997 15:27:57 +0100


Date: Wed, 30 Jul 1997 15:27:57 +0100
From: fear@scmp.scm.liv.ac.uk (Simon Fear)
Message-Id: <199707301427.PAA08742@scmp.scm.liverpool.ac.uk>
To: r-help@stat.math.ethz.ch
Subject: R-beta: Query: installing 0.50-a1 on Solaris 2.5.1

Content-MD5: ghbezPqyLc/BIW0StUCjwA==
Sender: owner-r-help@stat.math.ethz.ch
Precedence: bulk

Can anyone spot the problem here. Following is an edited script of the =
install=20
session. The gist is:=20

* syntax error in original src/main/dotcode.c

Easily remedied (or at least, such that compiles without error message =
.... )

change line 449-450 (two lines preceding return)

#ifdef HAVE_F77_UNDERSCORE
    if(PRIMVAL(op)) {
        *q++ =3D '_';
        *q =3D '\0';
#endif
    }
    return mkString(buf);
}
    =09
to

    }
#endif

But then load complains of hundreds of undefined symbols in, surprise =
surprise,=20
dotcode.o.

Alternatively, setting F77=3Dno in config.site, the above does not =
generate a=20
syntax error, but the same load problems occur.

I thought the problem might be in my temporary lack of access to =
NFS-mounted f77=20
libraries; but surely F77=3Dno version should work?

____________

extracts from script install.log:

Script started on Wed Jul 30 14:12:23 1997
scmb% configure=0D
loading cache ./config.cache=0D
checking for gcc... gcc=0D
checking whether we are using GNU C... yes=0D
checking for bison... bison -y=0D
checking for ranlib... ranlib=0D
checking for ar... ar=0D
checking for underscore after Fortran symbols... NFS read failed for =
server=20
fs0.liv.ac.uk: error 5 (RPC: Timed out)=0D
nothing worked - won't use fortran=0D
checking how to run the C preprocessor... gcc -E=0D
checking for POSIXized ISC... no=0D
checking for X... libraries /usr/openwin/lib, headers =
/usr/openwin/include=0D
checking for -lICE... no=0D
checking for -ldnet... no=0D
checking for -ldnet_stub... no=0D
checking for -lnsl... yes=0D
checking for -lsocket... yes=0D
checking for -lm... yes=0D
checking for -lncurses... no=0D
checking for -ltermcap... yes=0D
checking for -lreadline... yes=0D
checking for -ldl... yes=0D
checking for strcoll... yes=0D
checking whether cross-compiling... no=0D
checking for ANSI C header files... yes=0D
checking for fcntl.h... yes=0D
checking for limits.h... yes=0D
checking for dlfcn.h... yes=0D
checking for dl.h... no=0D
checking for elf.h... yes=0D
checking for time.h... yes=0D
checking for sys/times.h... yes=0D
checking for rpc/xdr.h... yes=0D
checking for working const... yes=0D
checking return type of signal handlers... void=0D
checking for pid_t... yes=0D
checking for vfork.h... no=0D
checking for working vfork... yes=0D
checking for vprintf... yes=0D
checking for strtod... yes=0D
checking for strtol... yes=0D
checking for isnan... yes=0D
checking for matherr... yes=0D
checking for times... yes=0D
checking for rint... yes=0D
checking for memmove... yes=0D
checking for memcpy... yes=0D
checking for bcopy... yes=0D
checking for xmkmf... xmkmf=0D
checking how to make shared libraries... done=0D
updating cache ./config.cache=0D
creating ./config.status=0D
creating Makefile=0D
creating src/main/Makefile=0D
creating src/graphics/Makefile=0D
creating src/math/Makefile=0D
creating src/appl/Makefile=0D
creating src/regex/Makefile=0D
creating src/unix/Makefile=0D
creating src/front/R.sh=0D
creating etc/SHLIB=0D
creating etc/COMPILE=0D
creating demos/dynload/Makefile=0D
creating src/library/LIBSETUP=0D
creating src/library/LIBCLEAN=0D
creating src/include/Platform.h=0D

scmb% make=0D
building/installing R=0D
cd src; make install=0D
extracting foreign function symbols=0D
cd graphics; make=0D

.... etc etc

gcc -g -I../include  -c  dotcode.c=0D
dotcode.c:452: parse error before `return'=0D
*** Error code 1=0D
make: Fatal error: Command failed for target `dotcode.o'=0D
Current working directory =
/export/home/scmk/fear/junk/R/R-0.50-a1/src/main=0D
*** Error code 1=0D
make: Fatal error: Command failed for target `build'=0D
Current working directory /export/home/scmk/fear/junk/R/R-0.50-a1/src=0D
*** Error code 1=0D
make: Fatal error: Command failed for target `install'=0D


.... ...

whether changed as above or re-run with F77=3Dno finally:

gcc  -o R.binary arithmetic.o  array.o  attrib.o  bind.o  builtin.o  =
character.o=20
 coerce.o  colors.o  complex.o  context.o  cov.o  cum.o  dataframe.o  =
debug.o =20
deparse.o  deriv.o  dotcode.o  dstruct.o  duplicate.o  envir.o  errors.o =
 =
eval.o=20
 format.o  fourier.o  gram.o  list.o  logic.o  main.o  match.o  memory.o =
 =
=20
model.o  names.o  objects.o  optimize.o  options.o  par.o  paste.o =
plot.o =20
plot3d.o  plotmath.o  print.o  printarray.o  printvector.o  printutils.o =
 =
=20
random.o  relop.o  saveload.o  scan.o  seq.o  sort.o  source.o  split.o  =
=20
subassign.o  subscript.o  subset.o  summary.o  unique.o  util.o  =
version.o=20
.../lib/libgraphics.a  ../lib/libunix.a  ../lib/libappl.a  =
.../lib/libregex.a =20
.../lib/libmath.a  -L/usr/openwin/lib -R /usr/openwin/lib -lX11 -lnsl =
-lsocket=20
-ldl -lreadline -ltermcap -lm=0D
Undefined			first referenced=0D
 symbol  			    in file=0D
dqrqty_                             dotcode.o=0D
fmin_                               dotcode.o=0D
dqrqy_                              dotcode.o=0D
chol_                               dotcode.o=0D
dqrcf_                              dotcode.o=0D
dtrsl_                              dotcode.o=0D
dpoco_                              dotcode.o=0D
dposl_                              dotcode.o=0D
result_                             ../lib/libappl.a(uncmin.o)=0D
dcopy_                              ../lib/libappl.a(bakslv.o)=0D
dqrsl_                              dotcode.o=0D
root1d_                             dotcode.o=0D
dpodi_                              dotcode.o=0D
ch2inv_                             dotcode.o=0D
dqrdc_                              dotcode.o=0D
rg_                                 dotcode.o=0D
dqrrsd_                             dotcode.o=0D
dqrxb_                              dotcode.o=0D
dsvdc_                              dotcode.o=0D
dqrdc2_                             dotcode.o=0D
optif9_                             dotcode.o=0D
rs_                                 dotcode.o=0D
cg_                                 dotcode.o=0D
ch_                                 dotcode.o=0D
dqrls_                              dotcode.o=0D
dpofa_                              dotcode.o=0D
ld: fatal: Symbol referencing errors. No output written to R.binary=0D
*** Error code 1=0D
make: Fatal error: Command failed for target `R.binary'=0D
Current working directory =
/export/home/scmk/fear/junk/R/R-0.50-a1/src/main=0D
*** Error code 1=0D
make: Fatal error: Command failed for target `build'=0D
Current working directory /export/home/scmk/fear/junk/R/R-0.50-a1/src=0D
*** Error code 1=0D
make: Fatal error: Command failed for target `install'=0D
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=