Opened 15 years ago
Closed 12 years ago
#20799 closed defect (fixed)
tk +quartz doesn't build 64-bit
Reported by: | eallik@… | Owned by: | mww@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.8.99 |
Keywords: | LP64 | Cc: | simon@…, cedayiv@…, kiwi.2008@…, jpgoldberg (Jeffrey Goldberg), tjbx, vitaly@…, jpenney (Jason Penney), rmsfisher@…, hgbrauen@…, markus@…, macports@…, itrekkie@…, palimm@…, nevil (Anders Hasselqvist), yannick.cholette@…, adhocrocker@…, speed.rob@…, royliu@…, michael@…, ddollar@…, jarias01@…, gthyni@…, thimo@…, zeph0x@…, simpoir@…, verena.wolf@…, Damien@…, bgrupe27, yacoob@…, tsunanet@…, jsg8pitt@…, eykosioux@…, jeremy.bethmont@…, zimmermann@…, yves@…, tim.stoop@…, stephen@…, mdippery@…, macports.org@…, jemaltz@…, markus.doits@…, giancarlo.degani@…, elvis.dowson@…, braden@…, elelay (Eric Le Lay), rmstonecipher@…, joe@…, avysk (Alexey Vyskubov), calsaiwing@…, toreador@…, a.y.harano@…, marc@…, macports@…, rizwank@…, obutovich@…, asahiro.g@…, kenny.macdermid@…, michelle.lynn.gill@…, maehne (Torsten Maehne), tonycpsu@… |
Port: | tk |
Description (last modified by nerdling (Jeremy Lavergne))
Using MacPorts trunk:
make: *** [tkMacOSXButton.o] Error 1
Attachments (7)
Change History (128)
comment:1 Changed 15 years ago by jmroot (Joshua Root)
Cc: | eallik@… removed |
---|---|
Keywords: | snowleopard added |
Owner: | changed from macports-tickets@… to mww@… |
Changed 15 years ago by nerdling (Jeremy Lavergne)
Attachment: | tk+quartz_debug_build.txt added |
---|
comment:2 Changed 15 years ago by nerdling (Jeremy Lavergne)
Description: | modified (diff) |
---|
comment:3 follow-up: 4 Changed 15 years ago by jmroot (Joshua Root)
Keywords: | LP64 added; snowleopard removed |
---|---|
Summary: | tk +quartz doesn't build on SL → tk +quartz doesn't build 64-bit |
Version: | 1.8.0 → 1.8.99 |
comment:4 Changed 15 years ago by speed.rob@…
Replying to jmr@…:
Smells like QuickDraw, which means this isn't 10.6-specific.
Tk still relies on QuickDraw for --with-aqua? If that's the case this isn't going to be fixed any time soon.
comment:5 Changed 15 years ago by andreas@…
Hi Gang.
What do you mean by tk relies on quickdraw (what is qd anyway?)
Im trying to build python26 which relies on tk, and i have built it successfully on 10.5 before, like 2-3 months ago. But trying to build it on 10.6 now i get something like this attached log files.
Changed 15 years ago by andreas@…
comment:6 Changed 15 years ago by andreas@…
Cc: | mcalhoun@… kentk@… mike@… alexguo@… robin@… lstoll@… tamyrvoll@… john+macports@… joshua_anderson@… huahang.liu@… faisal.moledina@… tomvons@… benjaminkreeger@… m@… andrius.laikina@… dizzyd@… xmitchx@… treaves@… shrift@… tannhaus@… tharant@… hkroger@… sjcjonker@… macports@… thedoobs@… ram@… gerald.gutierrez@… pkutzner+macports@… erik.labianca@… issaco@… luis.beca@… brianm@… david@… macports@… albert.veli@… julien.lusson@… me@… randyoo@… macports@… rmsfisher@… fmaillet@… andy@… macports.org@… jlaurila@… xgutter@… brian.cunnie@… conradwt@… macsforever2000@… macosforge@… deepu.sudhakar@… nicos_pavlov@… jan@… added |
---|
Cc Me!
comment:10 Changed 15 years ago by jmroot (Joshua Root)
Cc: | andreas@… added; mcalhoun@… kentk@… mike@… alexguo@… robin@… lstoll@… tamyrvoll@… john+macports@… joshua_anderson@… huahang.liu@… faisal.moledina@… tomvons@… benjaminkreeger@… m@… andrius.laikina@… dizzyd@… xmitchx@… treaves@… shrift@… tannhaus@… tharant@… hkroger@… sjcjonker@… macports@… thedoobs@… ram@… gerald.gutierrez@… pkutzner+macports@… erik.labianca@… issaco@… luis.beca@… brianm@… david@… macports@… albert.veli@… julien.lusson@… me@… randyoo@… macports@… rmsfisher@… fmaillet@… andy@… macports.org@… jlaurila@… xgutter@… brian.cunnie@… conradwt@… macsforever2000@… macosforge@… deepu.sudhakar@… nicos_pavlov@… jan@… removed |
---|
Cleaning up after cc malfunction.
comment:17 follow-up: 26 Changed 15 years ago by tjbx
Is this any help?
http://www.nabble.com/Tcl-Tk-in-SnowLeopard-td25240853.html
comment:26 follow-ups: 27 33 Changed 15 years ago by speed.rob@…
Replying to tjb@…:
Is this any help?
I downloaded the patched tk from Github and tried it out. Worked like a charm.
Maintainer, I believe you can close this ticket by updating the portfile to 8.5.7 and adding the patch.
comment:27 Changed 15 years ago by cwt@…
Replying to speed.rob@…:
Replying to tjb@…:
Is this any help?
I downloaded the patched tk from Github and tried it out. Worked like a charm.
Maintainer, I believe you can close this ticket by updating the portfile to 8.5.7 and adding the patch.
I downloaded tk from branch de-carbon-8-5 and it worked.
comment:28 Changed 15 years ago by tjbx
How about someone posting an updated port file here since it doesn't look like this is going to get properly fixed anytime soon. Thanks in advance.
comment:30 Changed 15 years ago by macports@…
Can someone explain how to install tk on OS X 10.6 so that macports sees and uses it? Speed.rob mentions adding a patch, but I don't see one?
comment:33 Changed 15 years ago by lvcargnini@…
Could you attach the patch ?
Replying to speed.rob@…:
I downloaded the patched tk from Github and tried it out. Worked like a charm.
Maintainer, I believe you can close this ticket by updating the portfile to 8.5.7 and adding the patch.
Changed 15 years ago by KubaO (Kuba Ober)
Attachment: | x11_tk_Portfile.das.patch added |
---|
portfile patch to use github sources [disclaimer: I'm a total ports noob] -- wish starts up OK
comment:36 Changed 15 years ago by speed.rob@…
I tried out kuba's patch, but it just ended up not being able to fetch the data. I looked around on github and found that a neatly gzipped copy of the patched tk has already been created, but it's from April 15th. I'm not sure how much work has been done on this branch since then, but I tried it out and it built without a hitch.
Note: I'm not 100% sure this is a real fix. My only interest in the +quartz variant is preventing python dependencies from installing a bunch of X stuff I don't need, so I've done almost no testing.
Changed 15 years ago by speed.rob@…
Attachment: | tk-decarbon.patch added |
---|
Portfile patch. Changes the source to a tk branch with no carbon dependencies hosted on github.
Changed 15 years ago by c.freden@…
Attachment: | Portfile-tk.diff added |
---|
Patch for tk Portfile, fetches source from http://opensource.apple.com/tarballs/tcl/tcl-87.tar.gz
comment:47 follow-up: 49 Changed 15 years ago by c.freden@…
I couldn't get speed.rob's or kuba's patches to compile.
But if i edit the port file to fetch the tcl-8.5.7 tarball from http://opensource.apple.com (the link tjb posted) it all compiles and installes. It is a big tarball though (~40MB) so it is far from optimal but at least it worked for me. Attached patch in above post.
comment:49 Changed 15 years ago by jp@…
If I do that, I get a build error:
error: /Library/Frameworks/Tcl.framework directory doesn't contain tclConfig.sh
comment:59 follow-up: 63 Changed 15 years ago by zeph0x@…
I was getting the exact error in the description on my Snow Leopard system. speed.rob's patch allowed me to compile tk +quartz but c.freden's did not. I didn't try kuba's.
comment:62 Changed 15 years ago by mf2k (Frank Schima)
Cc: | verena.wolf@… added |
---|
Cc reporter of dup #22641.
comment:63 Changed 15 years ago by mdippery@…
Replying to zeph0x@…:
I was getting the exact error in the description on my Snow Leopard system. speed.rob's patch allowed me to compile tk +quartz but c.freden's did not. I didn't try kuba's.
I, too, got Tk to compile using speed.rob's patch. c.freden's did not either, and I did not try kuba's. I'm using 10.6.2.
comment:68 Changed 15 years ago by farcaller@…
speed.rob's patch works for me with minor modifications.
comment:69 Changed 15 years ago by mf2k (Frank Schima)
Cc: | Damien@… bgrupe@… added |
---|
Cc from dup #23042.
Changed 15 years ago by nevil (Anders Hasselqvist)
Attachment: | tk-858-decarbon.patch added |
---|
Patch updated for tk 8.5.8. Fetching from github.
comment:76 follow-up: 80 Changed 15 years ago by ddennedy (Dan Dennedy)
anders.hasselqvist's patch works for me.
comment:80 Changed 15 years ago by zeph0x@…
comment:82 follow-ups: 84 94 Changed 15 years ago by jabronson@…
tk-858-decarbon.patch worked for me
comment:84 follow-ups: 86 89 Changed 15 years ago by tim.stoop@…
comment:86 follow-up: 87 Changed 15 years ago by lawrence.bandeira@…
Replying to tim.stoop@…:
Replying to jabronson@…:
tk-858-decarbon.patch worked for me
Same for me.
How do I apply this patch? Can you tell me step by step? Thanks forwards
comment:87 Changed 15 years ago by andre.david@…
Replying to lawrence.bandeira@…:
How do I apply this patch? Can you tell me step by step? Thanks forwards
See http://guide.macports.org/chunked/development.patches.html#development.patches.applying
comment:89 follow-up: 90 Changed 15 years ago by n.a.hawes@…
Replying to tim.stoop@…:
Replying to jabronson@…:
tk-858-decarbon.patch worked for me
Same for me.
And me.
comment:90 Changed 15 years ago by yannick.cholette@…
Replying to n.a.hawes@…:
Replying to tim.stoop@…:
Replying to jabronson@…:
tk-858-decarbon.patch worked for me
Same for me.
And me.
And me too!
comment:91 Changed 14 years ago by rmsfisher@…
Has anyone worked with the tk developers to reconcile the above referenced git fork with the project's trunk? It is unlikely that a checkout from a git fork will be found a suitably "stable" replacement for an official release tarball.
comment:94 Changed 14 years ago by jabronson@…
Replying to jabronson@…:
tk-858-decarbon.patch worked for me
Looks like MacPorts Python 2.6.5 is no longer able to build _tkinter.so against my MacPorts tk+quartz install. Opened #25221 in case anyone else is affected.
comment:98 Changed 14 years ago by camillo.rossi@…
I am trying to apply the tk-858-decarbon.patch but it does not work:
sudo patch -p0 < ~/Desktop/tk-858-decarbon.patch patching file Portfile Hunk #1 FAILED at 14. 1 out of 1 hunk FAILED -- saving rejects to file Portfile.rej
Maybe my Portfile is different?
Changed 14 years ago by avysk (Alexey Vyskubov)
Attachment: | tk-859-decarbon.patch added |
---|
Patch updated for tk 8.5.9 (you probably also want tcl patch from bug 22954)
comment:106 Changed 14 years ago by bm55b@…
tk version 8.6 has switched to Cocoa. http://www.markroseman.com/tcl/guide86.html
Currently 8.6b1 (beta1) and 8.6b2 is coming. http://www.tcl.tk/cgi-bin/tct/tip/311
I'm going to use X until we get the ports work for 8.6 done
comment:115 follow-up: 118 Changed 13 years ago by avysk (Alexey Vyskubov)
The title of this ticket is misleading. Tk +quartz doesn't build with the same error as 32-bit too.
comment:118 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Replying to tascafoo@…:
The title of this ticket is misleading. Tk +quartz doesn't build with the same error as 32-bit too.
The title of the ticket is accurate, for Snow Leopard. If you are on Lion, then you are experiencing the consequences of the fact that QuickDraw was removed in Lion. See #32329 which tracks this.
comment:121 Changed 12 years ago by jmroot (Joshua Root)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Smells like QuickDraw, which means this isn't 10.6-specific.