dyn.load tcl/tk (PR#1774)

Peter Dalgaard BSA p.dalgaard@biostat.ku.dk
12 Jul 2002 13:00:44 +0200


joeckel@mpch-mainz.mpg.de writes:

> <<insert bug report here>>
> ------------------------------------------------------
> Error:

Perhaps some mental preprocessing could have been applied? These seem
to be the relevant bits of your 3850 line mail:
 
> R : Copyright 2002, The R Development Core Team
> Version 1.5.1  (2002-06-17)
....
> > require(tcltk) || stop("tcltk support is absent")
> Loading required package: tcltk
> Error in dyn.load(x, as.logical(local), as.logical(now)) :
>         unable to load shared library 
> "/soft/R/v1.5.1/lib/R/library/tcltk/libs/tcltk.so":
>   dlopen: /soft/R/v1.5.1/lib/R/library/tcltk/libs/tcltk.so: symbol 
> "Tcl_GetDoubleFromObj" unresolved
...
> setenv TCLTK_LIBS "-L/soft/tcl/v8.3.4/lib"
> setenv TCLTK_CPPFLAGS "-I/soft/tcl/v8.3.4/include"
...
> ./configure --prefix=/soft/R/v1.5.1 
> --with-tcl-config=/soft/tcl/v8.3.4/lib/tclConfig.sh 
> --with-tk-config=/soft/tcl/v8.3.4/lib/tkConfig.sh >&! config.out
.....
> /usr/bin/cc -shared -L/soft/readline/v4.2.1/lib -o tcltk.so tcltk.o  
> -L/soft/tcl/v8.3.4/lib -lm   
> ld:
> Warning: Unresolved:
> TclFreeObj
> Tcl_GetDoubleFromObj
> Tcl_GetIntFromObj
> Tcl_GetStringFromObj
> Tcl_ListObjAppendElement
..... 
> 
> --please do not edit the information below--
> 
> Version:
>  platform = alphaev56-dec-osf5.1
>  arch = alphaev56
>  os = osf5.1
>  system = alphaev56, osf5.1
>  status = 
>  major = 1
>  minor = 5.1
>  year = 2002
>  month = 06
>  day = 17
>  language = R
> 
> Search Path:
>  .GlobalEnv, package:ctest, Autoloads, package:base
> 

As far as I can see, you never actually link against the tcl/tk
libraries (-ltcl -ltk) so you'd need more stuff in TCLTK_LIBS. Or
maybe simply *not* set it and let configure work it out.

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._