[Starkit] 32 bit starkit on 64 bit Linux
Detlef Groth
dgroth at gmx.de
Thu Jun 22 15:17:37 CEST 2006
Hello too,
may be tcl_platform(wordsize) (8-on 64bit machines and 4 on 32 bit machines) is a possible choice for getting the right library. Otherwizeit might be possible to try loading both versions of the library 64 and 32 bit and to catch the error for loading the wrong version.
regards,
Detlef
> Hello,
>
> since a x86_64 Linux is able to run both i[3456]86 and x86_64 binaries,
> there
> arise a problem with the tcl_platform(machine) variable. Since it always
> reports the underlying machine (what maybe is the right thing to do) the
> right libraries cannot be loaded when running in 32 bit mode (if the name
> and
> thus type is decided algorithmically inside the pkgIndex.tcl) ...
>
> (I think this maybe is a problem of all tcl distributions, not only
> tclkit)
>
> The possible solutions I see:
>
> - let tcl_platform(machine) return the current type. This can be decided
> at
> compile time.
>
> - introduce a new member of tcl_platform that gives the right machine
> for
> loading libraries.
>
> BTW: how is this problem solved on Intel-Macs running a tclkit inside
> rosetta?
>
> For now my workaround is to explicitly set tcl_platform(machine) in
> starkit/main.tcl -- but this is ugly :-(
>
> Uwe
> _____________________________________________
> Starkit mailing list - Starkit at equi4.com
> http://www.equi4.com/mailman/listinfo/starkit
--
Dr.Detlef Groth
Neue Scheune 5
14548 Ferch
Germany
More information about the Starkit
mailing list