R-beta: survival4 in R-0.60.1 [S_alloc not found]

Martin Maechler maechler at stat.math.ethz.ch
Tue Dec 16 10:48:53 CET 1997


>>>>> "Goran" == Goran Brostrom <gb at stat.umu.se> writes:

    Goran> Kurt, I use survival4_1.0-2. Now, I tried the same experiment on
    Goran> my Solaris2.4 system, with exactly the same R-survival4 setup,
    Goran> and got:

    > library(survival4)
    Goran> Autoloading required package: splines

    > coxph(Surv(c(1,2,3,4), c(1,1,1,1)) ~ c(1,0,1,0))
    Goran> ld.so.1: /export/home1/local/R-0.60.1/bin/R.binary: fatal:
    Goran> relocation error: symbol not found: S_alloc: referenced in
    Goran> /export/home1/local/R-0.60.1/library/survival4/libs/survival4.so
    Goran> Killed

It works fine for me  (Solaris 2.5.1, gcc)

> library(survival4)
Autoloading required package: splines 
>  coxph(Surv(c(1,2,3,4), c(1,1,1,1)) ~ c(1,0,1,0))
Call:
coxph(formula = Surv(c(1, 2, 3, 4), c(1, 1, 1, 1)) ~ c(1, 0, 
        1, 0))


              coef exp(coef) se(coef)     z    p
c(1, 0, 1, 0) 0.94      2.56     1.24 0.758 0.45

Likelihood ratio test=0.62  on 1 df, p=0.432  n= 4 
> str(version)
List of 12
 $ platform  : chr "sparc-sun-solaris2.5.1"
 $ arch      : chr "sparc"
 $ os        : chr "solaris2.5.1"
 $ system    : chr "sparc, solaris2.5.1"
 $ status    : chr "Alpha"
 $ status.rev: chr "0"
 $ major     : chr "0"
 $ minor     : chr "60.1"
 $ year      : chr "1997"
 $ month     : chr "December"
 $ day       : chr "6"
 $ language  : chr "R"
> 
--------------------------------

Here, I check where S_alloc should be;
It should be in  R.binary, getting  there from main/memory.o :


% nm -g /usr/local/R-0.60.1/bin/R.binary | wc 
    1722   13737  113513

% nm -g /usr/local/R-0.60.1/bin/R.binary | grep S_alloc 
[4288]	|    361912|     108|FUNC |GLOB |0    |8      |S_alloc

% nm -l /usr/local/R-0.60.1/src/lib/lib*.a | grep S_alloc 

% nm -rg /usr/local/R-0.60.1/src/main/*.o | grep S_alloc 
[41]	|       912|     108|FUNC |GLOB |0    |2      |/usr/local/R-0.60.1/src/main/memory.o:S_alloc
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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