Bug #1066

tcl/tk 64bit not working

Added by Hans Rosenfeld almost 3 years ago. Updated over 2 years ago.

Status:Resolved Start date:2011-05-25
Priority:High Due date:2011-09-14
Assignee:OI Userland % Done:

100%

Category:SFW (Solaris Freeware)
Target version:oi_151_stable Estimated time:8.00 hours
Difficulty:Bite-size Tags:Tcl/Tk

Description

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 (619 Bytes) Hans Rosenfeld, 05/25/2011 03:29 pm

History

Updated by Albert Lee almost 3 years ago

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

Updated by Ryo Murakawa almost 3 years ago

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

Updated by Ryo Murakawa almost 3 years ago

  • Assignee changed from Ryo Murakawa to OI PKG

Updated by Ken Mays over 2 years ago

  • Due date set to 2011-09-14
  • Category set to SFW (Solaris Freeware)
  • 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:
runtime/,5.11-0.151.1:20110912T024729Z
runtime/,5.11-0.151.1:20110912T024851Z

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

Also available in: Atom PDF