jpc@iesd.uucp (Jens P. Christensen) (12/06/87)
Could anyone please shed light on a problem I have in compiling the S statistical package from AT&T on our Sun-3 system: System specifics: Sun 3/260 under SunOS 3.4 using the m4 macro processor supplied with the S system. S version date: Fri Feb 28 1986 Using the hints on compiling with BSD4.2 systems I only get apparently harmless warnings under the compilation. This could for example be: Warning on line 84 of hcp.f: local variable i never used Warning on line 96 of stems.f: statement cannot be reached f77: Warning: File with unknown suffix (/usr/local/src/s/S/newfun/lib/grz) passed to ld or "dprint.c", line 20: warning: illegal combination of pointer and integer, op = Furthermore there are problems with the utility routine scandata.C, which fails with error: too many local variables. This is fixed by making the declaration of "table" global. Not pretty, but it works. These are all the kinds of problems that appear during the compilation, and it *will* result in an executable, except.... The f...ing system doesn't even know how to add two numbers, as seen in the following: One-time initialization for new S user in /usr.MC68020/iesd/tap/jpc ... Directories swork and sdata created > 1 + 2 Bad operator: + Error in + > Running the tests supplied with the system ($A/DOTEST ALL) will not give better results. This is an excerpt from $TEST/current/apply: > prefix("apply.") # test of apply and multivariate stuff, some time-series > $Random.seed_c(57,0,3,0,0,0,49,16,0,0,0,0) # to initialize at same spot > matr_matrix(rnorm(100),20,5) Invalid distribution: rnorm Error in rnorm Dumped > print(cm_apply(matr,2,"mean")); apply(matr,2,"var") apply.matr not found Dumped . . and more depressing errors... Why does the prefix command work, while the matr_matrix(rnorm... stuff don't? So, have *anybody* made this run on a Sun system, and how did you do it? All suggestions or pointers to which direction I should go, are welcome. regards, -- Jens Peter Christensen jpc@iesd.uucp Department of Math. and Computer Science {...}!mcvax!diku!iesd!jpc Aalborg University Centre Denmark