Project

General

Profile

Actions

Bug #1066

closed

tcl/tk 64bit not working

Added by Hans Rosenfeld over 10 years ago. Updated about 10 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
Actions

Also available in: Atom PDF