Re: Re: Starkit causes suddenly ELF Header issue

Pat Thoyts <[email protected]> Thu, 2 Dec 2010 13:27:57 +0000
Newsgroups gmane.comp.lang.tcl.starkit
Message-ID <[email protected]>
On 2 December 2010 08:11, Zbigniew Diaczyszyn <[email protected]> wrote:
> Am 29.11.2010 22:35, schrieb Zbigniew Diaczyszyn:
>>
>> My application is suddenly causing a load error when it is compiled as a
>> starkit on Linux and tries to perform:
>>
>> package require <mypackage>
>>
>> The catch command shows the following message:
>>
>> couldn't load file "/tmp/tclEoKhjm": /tmp/tclEoKhjm: invalid ELF header
>>
>
> The issue seems to be caused by my application:
>
> A starkit which contains just the line: "package require Itcl" is executing
> well.

Are you using 64bit linux? Make sure your package library is suitable
for the tcl executable you are using. You cannot load 64bit libraries
into 32 bit processes.
Or possibly you simply generated something that is not a shared object
(aka dll).
Also, to load an extension into a tclkit, the extension package must
have been compiled using Tcl stubs.
The tmp filename is because shared libraries are loaded by the
system's ld.so which doesn't understand tcl virtual filesystems. So we
copy the shared library out into the tmp directory and have that
loaded up.

-- 
You received this message because you are subscribed to the "starkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/starkit?hl=en