Bug #1066

tcl/tk 64bit not working

Added by Hans Rosenfeld about 7 years ago. Updated almost 7 years ago.

Status:ResolvedStart date:2011-05-25
Priority:HighDue date:2011-09-14
Assignee:OI Userland% Done:


Category:OI-UserlandEstimated time:8.00 hours
Target version:oi_151_stable
Difficulty:Bite-size Tags:Tcl/Tk


I get the following error running the 64bit tclsh (/usr/bin/amd64/tclsh8.4), trying to load the Tk package:

% package require Tk
couldn't load file "/usr/lib/tk8.4/../libtk8.4.so": ld.so.1: tclsh8.4: fatal: /usr/lib/tk8.4/../libtk8.4.so: wrong ELF class: ELFCLASS32

I traced this down to /usr/lib/tk8.4/pkgIndex.tcl:

if {[package vcompare [package provide Tcl] 8.4] != 0} { return }
package ifneeded Tk 8.4 [list load [file join $dir .. libtk8.4.so] Tk]

The attached patch fixes this for me, but I don't know where that needs to be applied.

pkgIndex.tcl.diff Magnifier (619 Bytes) Hans Rosenfeld, 2011-05-25 03:29 PM


#1 Updated by Albert Lee about 7 years ago

The "load" function itself should probably be aware of $ISALIST somehow.

#2 Updated by Ryo Murakawa about 7 years ago

  • Assignee set to Ryo Murakawa
  • Tags changed from needs-triage to Tcl/Tk

#3 Updated by Ryo Murakawa about 7 years ago

  • Assignee changed from Ryo Murakawa to OI PKG

#4 Updated by Ken Mays almost 7 years ago

  • Due date set to 2011-09-14
  • Category set to 10
  • Status changed from New to Resolved
  • Assignee changed from OI PKG to OI Userland
  • Target version set to oi_151_stable
  • % Done changed from 0 to 100
  • Estimated time set to 8.00

Packages updated to:

/usr/bin/amd64/tclsh8.4 should properly resolve to /usr/lib/amd64/libtk8.4.so

Also available in: Atom