Project

General

Profile

Bug #1066

tcl/tk 64bit not working

Added by Hans Rosenfeld almost 9 years ago. Updated over 8 years ago.

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

100%

Estimated time:
8.00 h
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.


Files

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

History

#1

Updated by Albert Lee almost 9 years ago

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

#2

Updated by Ryo Murakawa almost 9 years ago

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

Updated by Ryo Murakawa almost 9 years ago

  • Assignee changed from Ryo Murakawa to OI PKG
#4

Updated by Ken Mays over 8 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 h

Packages updated to:
,5.11-0.151.1:20110912T024729Z
,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