Ticket #22954 (closed defect: duplicate)
wish does not run on Snow Leopard
| Reported by: | mdippery@… | Owned by: | mww@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.8.1 |
| Keywords: | Cc: | jabronson@…, tascafoo@…, zeph0x@… | |
| Port: | tcl |
Description
I'm using Mac OS X 10.6.2. I installed the tcl port. It built without problems, but whenever I try to run wish (or a script that uses wish) I get the following error:
TclMacOSXNotifierAddRunLoopMode: Tcl not built with CoreFoundation support
wish then crashes.
Attachments
Change History
comment:1 Changed 3 years ago by macsforever2000@…
- Keywords snowleopard removed
- Owner changed from macports-tickets@… to mww@…
comment:2 follow-up: ↓ 3 Changed 3 years ago by blb@…
- Port changed from tcl to tk
Note that the tk port is what gives you wish, so the output from
port installed tcl tk
would be more interesting.
comment:3 in reply to: ↑ 2 Changed 3 years ago by mdippery@…
Replying to blb@…:
Note that the tk port is what gives you wish, so the output from
port installed tcl tkwould be more interesting.
Here it is:
The following ports are currently installed: tcl @8.5.8_0+darwin+threads (active) tk @8.5.7_0+darwin+quartz (active)
(The version numbers are different because I was able to update Tcl, but Tk failed to update to the newest version. This is described in #21512.)
comment:4 Changed 3 years ago by mdippery@…
After taking another look, I'm guessing that the real issue is that the +quartz variant for tk doesn't build on Snow Leopard.
comment:5 Changed 3 years ago by jmr@…
- Status changed from new to closed
- Resolution set to duplicate
comment:6 Changed 3 years ago by mdippery@…
I re-examined this issue and found that while the problem cropped up when I launched MacPorts' wish, the issue *is* with tcl, not tk. The problem is that the --disable-corefoundation flag is passed to ./configure when building tcl, but building without CoreFoundation support breaks the +quartz variant of tk.
I'm not sure why tcl is built without CoreFoundation support. I did find this post which describes the issue, but clearly fixing *that* issue also breaks usage of tcl with tk +quartz.
I'm posting a patch that fixes the problem, although perhaps it'd be better to allow tcl to have a CoreFoundation-enabled variant? I'll let the maintainers think about it.
Changed 3 years ago by mdippery@…
Patch to re-enable CoreFoundation support in tcl
comment:7 Changed 3 years ago by blb@…
- Status changed from closed to reopened
- Resolution duplicate deleted
- Port changed from tk to tcl
Reopening as it is a separate issue from tk+quartz (this is for Tcl's CoreFoundation support).
comment:9 Changed 3 years ago by jmr@…
I remember claims that CF support caused problems being brought up in relation to one of the recent Tcl/Tk updates.
comment:11 in reply to: ↑ description ; follow-up: ↓ 13 Changed 2 years ago by JACurrivan@…
Replying to mdippery@…:
I'm using Mac OS X 10.6.2. I installed the tcl port. It built without problems, but whenever I try to run wish (or a script that uses wish) I get the following error:
TclMacOSXNotifierAddRunLoopMode: Tcl not built with CoreFoundation supportwish then crashes.
Hi everyone, I am also having this problem. I am new to MacPorts, can someone run through steps for how to use this tcl.patch? I am not sure which folder I need to be in to apply the patch. Is it as simple as finding that folder and then doing something like "patch -p1 < tcl.patch" ? Thanks.
Changed 2 years ago by zeph0x@…
- Attachment tcl.2.patch added
mdippery's patch to re-enable CoreFoundation support in tcl, updated for version 8.5.9 of tcl.
comment:13 in reply to: ↑ 11 Changed 2 years ago by zeph0x@…
Hi everyone, I am also having this problem. I am new to MacPorts, can someone run through steps for how to use this tcl.patch? I am not sure which folder I need to be in to apply the patch. Is it as simple as finding that folder and then doing something like "patch -p1 < tcl.patch" ? Thanks.
Do this:
$ cd /opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/tcl $ sudo patch < ~/Downloads/tcl.2.patch $ sudo port install tcl
All Portfiles are found in the /opt/local/var/macports/sources/rsync.macports.org/release/port. You can run a find command from there to find your port:
$ find . -type d -iname tcl ./lang/tcl $
Or use the port command to find what folder it is in
$ port info tcl tcl @8.5.9, Revision 1 (lang)
comment:14 Changed 2 years ago by macports@…
The issue seems to be back. wish or using it provide the error. So tcl 8.5.9 does not have the patch from mdippery can someone add it in please
port installed tcl tk The following ports are currently installed: tcl @8.5.7_1+darwin tcl @8.5.8_0 tcl @8.5.8_0+darwin tcl @8.5.8_0+universal tcl @8.5.9_0+universal (active) tk @8.5.7_0+darwin+quartz (active)
comment:15 Changed 22 months ago by lkraider+ports@…
I'm seeing this issue too, patch fixes it.
Snow Leopard 10.6.8
macports 2.0.1
tcl @8.5.9_0+threads
comment:16 Changed 11 months ago by jmr@…
- Status changed from reopened to closed
- Resolution set to duplicate


wfm on Snow Leopard.
Please post the output of the following: