[Userland] [OpenIndiana Distribution - Bug #4277] (In Progress) OpenIndiana hipster: 64-bit tclsh doesn't know where to look for modules

illumos project devnull at illumos.org
Sat Nov 2 10:45:58 UTC 2013


Issue #4277 has been updated by Alexander Pyhalov.

Status changed from New to In Progress
% Done changed from 0 to 20

Fixed it by the following workaround: 
<pre>
global tcl_platform
if {$tcl_platform(wordSize) == 8} {
  package ifneeded ModuleName  [list load [file join $dir amd64/libname.so]]
} else {
  package ifneeded ModuleName  [list load [file join $dir libname.so]]
}
</pre>

It seems that the other possible sollution is to put modules in /usr/lib/moduleName and /usr/lib/amd64/moduleName. But I haven't checked that it's working and not sure if collisions exist between names of TCL modules and other libraries.
----------------------------------------
Bug #4277: OpenIndiana hipster: 64-bit tclsh doesn't know where to look for modules
https://www.illumos.org/issues/4277

Author: Alexander Pyhalov
Status: In Progress
Priority: Normal
Assignee: OI Userland
Category: 
Target version: 
Difficulty: Medium
Tags: needs-triage


/usr/bin/amd64/tclsh doesn't know where to look for modules.

/usr/bin/amd64/tclsh
% package require Pgtcl
couldn't load file "/usr/lib/tcl8.5/pgtcl1.9/libpgtcl1.9.so": ld.so.1: tclsh8.5: fatal: /usr/lib/tcl8.5/pgtcl1.9/libpgtcl1.9.so: wrong ELF class: ELFCLASS32
% package require sqlite3
couldn't load file "/usr/lib/tcl8.5/sqlite3.7.17/libsqlite3.7.17.so": ld.so.1: tclsh8.5: fatal: /usr/lib/tcl8.5/sqlite3.7.17/libsqlite3.7.17.so: wrong ELF class: ELFCLASS32

Existing modules ship 64-bit version libraries in /usr/lib/tcl8.5/*/amd64/


-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://www.illumos.org/my/account



More information about the Userland-team mailing list