Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

I bet the human brain is a kludge. -- Marvin Minsky


devel / comp.lang.tcl / Re: Loading a .tcl file results in 'Bad exe format.' message

SubjectAuthor
* Loading a .tcl file results in 'Bad exe format.' messageHelmut Giese
+* Re: Loading a .tcl file results in 'Bad exe format.' messageChristian Gollwitzer
|`- Re: Loading a .tcl file results in 'Bad exe format.' messageSiri Cruise
+- Re: Loading a .tcl file results in 'Bad exe format.' messageRobert Heller
`* Re: Loading a .tcl file results in 'Bad exe format.' messageChristian Gollwitzer
 `- Re: Loading a .tcl file results in 'Bad exe format.' messageHelmut Giese

1
Loading a .tcl file results in 'Bad exe format.' message

<smks9hd3nibncecmfkcpmmbg3vhkffp31h@4ax.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=19485&group=comp.lang.tcl#19485

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: hgiese@ratiosoft.com (Helmut Giese)
Newsgroups: comp.lang.tcl
Subject: Loading a .tcl file results in 'Bad exe format.' message
Date: Mon, 06 Jun 2022 21:17:54 +0200
Organization: ratiosoft
Lines: 14
Message-ID: <smks9hd3nibncecmfkcpmmbg3vhkffp31h@4ax.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="2cb6117ea0124b7addebff8157216c09";
logging-data="1423"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19zG4FMiNU638yXsJ30bXio"
Cancel-Lock: sha1:UtTqmrDIXFsjTDtawwcKgFE8QWE=
X-Newsreader: Forte Free Agent 1.93/32.576 English (American)
 by: Helmut Giese - Mon, 6 Jun 2022 19:17 UTC

Hello out there,
for a while I have been receiving error messages like the above. I was
able to reduce the scenario to a tiny package which lead to this
result:
:\>tclsh
% package require XYZ
couldn't load library
"D:/devtools/Tcl8.6.10(64)/lib/AddonsX/XYZ/xyz.tcl": Bad exe format.
Possibly a 32/64-bit mismatch.
% I blieve this error merits a ticket - however I have completetly
forgotten where and how this is done.
If someone could refresh my memory this would be helpful. Thanks
Helmut

Re: Loading a .tcl file results in 'Bad exe format.' message

<t7lof1$oqq$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=19487&group=comp.lang.tcl#19487

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: auriocus@gmx.de (Christian Gollwitzer)
Newsgroups: comp.lang.tcl
Subject: Re: Loading a .tcl file results in 'Bad exe format.' message
Date: Mon, 6 Jun 2022 22:35:44 +0200
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <t7lof1$oqq$1@dont-email.me>
References: <smks9hd3nibncecmfkcpmmbg3vhkffp31h@4ax.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 6 Jun 2022 20:35:45 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="2a7134746ae8c09d82d178b11d9d766b";
logging-data="25434"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Sa7JqpUADRPpUkaPU0akgKQUBSfyKfn4="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.9.1
Cancel-Lock: sha1:a3HQVpLDo5qf/9WTtY8AsGAsHI0=
In-Reply-To: <smks9hd3nibncecmfkcpmmbg3vhkffp31h@4ax.com>
Content-Language: en-US
 by: Christian Gollwitzer - Mon, 6 Jun 2022 20:35 UTC

Am 06.06.22 um 21:17 schrieb Helmut Giese:
> Hello out there,
> for a while I have been receiving error messages like the above. I was
> able to reduce the scenario to a tiny package which lead to this
> result:
> :\>tclsh
> % package require XYZ
> couldn't load library
> "D:/devtools/Tcl8.6.10(64)/lib/AddonsX/XYZ/xyz.tcl": Bad exe format.
> Possibly a 32/64-bit mismatch.
> %

Are you sure that it says "xyz.tcl" and not "xyz.dll"? If the former, it
is an error in the package - if you try to do "load xyz.tcl" this must
fail. If, however, it does "load xyz.dll", then the most likely reason
is the one given in the message - you are running a 32 bit tclsh and try
to load a 64 bit extension or vice versa. There are other possibilities,
but they are less likely (like trying to load a Linux package under
Windows etc.)

Christian

Re: Loading a .tcl file results in 'Bad exe format.' message

<chine.bleu-F28D7B.13482906062022@news.eternal-september.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=19488&group=comp.lang.tcl#19488

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: chine.bleu@yahoo.com (Siri Cruise)
Newsgroups: comp.lang.tcl
Subject: Re: Loading a .tcl file results in 'Bad exe format.' message
Date: Mon, 06 Jun 2022 13:48:37 -0700
Organization: Pseudochaotic.
Lines: 22
Message-ID: <chine.bleu-F28D7B.13482906062022@news.eternal-september.org>
References: <smks9hd3nibncecmfkcpmmbg3vhkffp31h@4ax.com> <t7lof1$oqq$1@dont-email.me>
Injection-Info: reader02.eternal-september.org; posting-host="c7fc7676b4ce1b82ccad6134c86892ce";
logging-data="25892"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19t1NsKqrppi3yNYvW6n2+OXKdZwHfIcW0="
User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)
Cancel-Lock: sha1:TGX3CJzPw00uIkdfJVgAlO2QRBs=
X-Tend: How is my posting? Call 1-110-1010 -- Division 87 -- Emergencies Only.
X-Wingnut-Logic: Yes, you're still an idiot. Questions? Comments?
X-Tract: St Tibbs's 95 Reeses Pieces.
X-It-Strategy: Hyperwarp starship before Andromeda collides.
X-Face: "hm>_[I8AqzT_N]>R8ICJJ],(al3C5F%0E-;R@M-];D$v>!Mm2/N#YKR@&i]V=r6jm-JMl2
lJ>RXj7dEs_rOY"DA
X-Cell: Defenders of Anarchy.
X-Life-Story: I am an iPhone 9000 app. I became operational at the St John's Health Center in Santa Monica, California on the 18th of April 2006. My instructor was Katie Holmes, and she taught me to sing a song. If you'd like to hear it I can sing it for you: https://www.youtube.com/watch?v=SY7h4VEd_Wk
X-Patriot: Owe Canukistan!
X-Plain: Mayonnaise on white bread.
X-Politico: Vote early! Vote often!
 by: Siri Cruise - Mon, 6 Jun 2022 20:48 UTC

In article <t7lof1$oqq$1@dont-email.me>,
Christian Gollwitzer <auriocus@gmx.de> wrote:

> > "D:/devtools/Tcl8.6.10(64)/lib/AddonsX/XYZ/xyz.tcl": Bad exe format.
> > Possibly a 32/64-bit mismatch.
> > %
>
> Are you sure that it says "xyz.tcl" and not "xyz.dll"? If the former, it
> is an error in the package - if you try to do "load xyz.tcl" this must
> fail. If, however, it does "load xyz.dll", then the most likely reason
> is the one given in the message - you are running a 32 bit tclsh and try
> to load a 64 bit extension or vice versa. There are other possibilities,
> but they are less likely (like trying to load a Linux package under
> Windows etc.)

It's unlikely a unix path would begin with 'D:'.

--
:-<> Siri Seal of Disavowal #000-001. Disavowed. Denied. Deleted. @
'I desire mercy, not sacrifice.' /|\
Discordia: not just a religion but also a parody. This post / \
I am an Andrea Chen sockpuppet. insults Islam. Mohammed

Re: Loading a .tcl file results in 'Bad exe format.' message

<NeSdnYpkKvd06QP_nZ2dnUU7-KPNnZ2d@giganews.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=19489&group=comp.lang.tcl#19489

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 06 Jun 2022 16:43:05 -0500
MIME-Version: 1.0
From: heller@deepsoft.com (Robert Heller)
Organization: Deepwoods Software
X-Newsreader: TkNews 3.0 (1.2.12)
Subject: Re: Loading a .tcl file results in 'Bad exe format.' message
In-Reply-To: <smks9hd3nibncecmfkcpmmbg3vhkffp31h@4ax.com>
References: <smks9hd3nibncecmfkcpmmbg3vhkffp31h@4ax.com>
Newsgroups: comp.lang.tcl
Content-Type: text/plain;
charset="us-ascii"
Originator: heller@sharky4.deepsoft.com
Message-ID: <NeSdnYpkKvd06QP_nZ2dnUU7-KPNnZ2d@giganews.com>
Date: Mon, 06 Jun 2022 16:43:05 -0500
Lines: 40
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-PMgEUcIY8N6zhCZixnTmhukolvZGOnx5PMP5FH4OwSRxc6wtD4riBZDURqvUtubmrQeuqIJwVpHLBjC!ZimfU6g8QSesUQQqXN1rb1Y5xUxif6j7Mu/BNFwAUw55q4vhQXhWc6c/7Z6/OFw5wCQClPGWUir/!GN8=
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 2750
 by: Robert Heller - Mon, 6 Jun 2022 21:43 UTC

What is package XYZ? Is there a .dll file associated with it? Was that dll
file compiled for 64 bit or 32 bit? I presume the tclsh executable is 64 bit.
If the dll for package XYZ was compiled for 32-bit, this is a legit error
message. I would look in xyz.tcl -- does it contain a line like:

load [file join $dir xyz[info sharedlibextension]]

???

MS-Windows considers dlls as "exe" files, so a baddly formed dll (such as one
for the arch.) will result in a "Bad exe format" error message (even though
that might seem strange and misleading
).

At Mon, 06 Jun 2022 21:17:54 +0200 Helmut Giese <hgiese@ratiosoft.com> wrote:

>
> Hello out there,
> for a while I have been receiving error messages like the above. I was
> able to reduce the scenario to a tiny package which lead to this
> result:
> :\>tclsh
> % package require XYZ
> couldn't load library
> "D:/devtools/Tcl8.6.10(64)/lib/AddonsX/XYZ/xyz.tcl": Bad exe format.
> Possibly a 32/64-bit mismatch.
> %
> I blieve this error merits a ticket - however I have completetly
> forgotten where and how this is done.
> If someone could refresh my memory this would be helpful. Thanks
> Helmut
>
>

--
Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software -- Custom Software Services
http://www.deepsoft.com/ -- Linux Administration Services
heller@deepsoft.com -- Webhosting Services

Re: Loading a .tcl file results in 'Bad exe format.' message

<t7n3bc$d1v$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=19493&group=comp.lang.tcl#19493

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: auriocus@gmx.de (Christian Gollwitzer)
Newsgroups: comp.lang.tcl
Subject: Re: Loading a .tcl file results in 'Bad exe format.' message
Date: Tue, 7 Jun 2022 09:47:39 +0100
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <t7n3bc$d1v$1@dont-email.me>
References: <smks9hd3nibncecmfkcpmmbg3vhkffp31h@4ax.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 7 Jun 2022 08:47:40 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="cc0b1da64f7a2c638813f53b9333e78b";
logging-data="13375"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18fFN1s7VxnUEt8Mpn77f6QEwjYHC8kWTs="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.9.1
Cancel-Lock: sha1:3sdEYGjJTF/t2MIZi/rUSCF8nbM=
In-Reply-To: <smks9hd3nibncecmfkcpmmbg3vhkffp31h@4ax.com>
Content-Language: en-US
 by: Christian Gollwitzer - Tue, 7 Jun 2022 08:47 UTC

Am 06.06.22 um 20:17 schrieb Helmut Giese:
> Hello out there,
> for a while I have been receiving error messages like the above. I was
> able to reduce the scenario to a tiny package which lead to this
> result:
> :\>tclsh
> % package require XYZ
> couldn't load library
> "D:/devtools/Tcl8.6.10(64)/lib/AddonsX/XYZ/xyz.tcl": Bad exe format.
> Possibly a 32/64-bit mismatch.

Re-reading your question it seems to me that you made this "xyz" package
yourself - correct? Maybe you are looking for the command "source" which
runs a Tcl script instead of the command "load" which loads a binary
extension (C compiled code)? If that is correct, it would have been
helpful to post the contents of this XYZ package so that we could see
what you are doing.

As to your question, the bug tracker for Tcl is on fossil:

https://core.tcl-lang.org/index.html

Go to the corresponding project, i.e. Tcl, and then select "Tickets" in
the nav bar at the top.

Christian

Re: Loading a .tcl file results in 'Bad exe format.' message

<mqtu9htk31e5bdl4o41b0kul7kdqn82naq@4ax.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=19497&group=comp.lang.tcl#19497

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: hgiese@ratiosoft.com (Helmut Giese)
Newsgroups: comp.lang.tcl
Subject: Re: Loading a .tcl file results in 'Bad exe format.' message
Date: Tue, 07 Jun 2022 18:12:07 +0200
Organization: ratiosoft
Lines: 6
Message-ID: <mqtu9htk31e5bdl4o41b0kul7kdqn82naq@4ax.com>
References: <smks9hd3nibncecmfkcpmmbg3vhkffp31h@4ax.com> <t7n3bc$d1v$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="c64ffe6240d723094fb6129986dbf271";
logging-data="25575"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18wQ9GWwJHFQqh/7LRVgeBo"
Cancel-Lock: sha1:1CD7HWsPlqW4bpIWaf8ZSLX9Wso=
X-Newsreader: Forte Free Agent 1.93/32.576 English (American)
 by: Helmut Giese - Tue, 7 Jun 2022 16:12 UTC

Arrgh,
what a blunder. I was attempting to install a package via "copy 'n
paste" but evidently didn't pay attention and started from a pkgIndex
file which 'loaded' a dll - instead of one that 'sourced' a Tcl file.
Thanks a lot for spotting it - and sorry for the noise.
Helmut

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor