[Rd] Undefined symbols in loading tcltk (PR#1499)

Peter Dalgaard BSA p.dalgaard@biostat.ku.dk
30 Apr 2002 18:09:12 +0200


kleiweg@let.rug.nl writes:

> Non of these errors occured in earliers versions of R.
> 
> > library(tcltk)
> /usr/lib/dld.sl: Unresolved symbol: Tcl_GetVar2Ex (code)  from /opt_local/opt/R/lib/R/library/tcltk/libs/tcltk.sl
> /usr/lib/dld.sl: Unresolved symbol: Tcl_GetString (code)  from /opt_local/opt/R/lib/R/library/tcltk/libs/tcltk.sl
> /usr/lib/dld.sl: Unresolved symbol: Tcl_SetVar2Ex (code)  from /opt_local/opt/R/lib/R/library/tcltk/libs/tcltk.sl
> Error in dyn.load(x, as.logical(local), as.logical(now)) :
>         unable to load shared library "/opt_local/opt/R/lib/R/library/tcltk/libs/tcltk.sl":
>   can't open /opt_local/opt/R/lib/R/library/tcltk/libs/tcltk.sl
> Error in library(tcltk) : .First.lib failed
> 
> # Tk's version number.
> TK_VERSION='8.0'
> TK_MAJOR_VERSION='8'
> TK_MINOR_VERSION='0'
> TK_PATCH_LEVEL='.5'
...
> ========================
> 
> No errors on this platform:
> 
> # Tk's version number.
> TK_VERSION='8.3'
> TK_MAJOR_VERSION='8'
> TK_MINOR_VERSION='3'
> TK_PATCH_LEVEL='.3'


That's likely due to the time those functions got introduced in Tcl...
I actually thought they were in Tcl8.x, but it seems necessary that x
>= 1. The functions are used extensively, so an upgrade of Tcl/Tk is
suggested. 

[Poking a bit around reveal that Tcl_SetVar2Ex was Tcl_SetVar2 in 8.0
and the Get versions similar, but I can't seem to locate anything
about Tcl_GetString.]
-- 
   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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._