#10891 closed defect (worksforme)
BUG: py-tkinter 2.4.3 failed to build on intel iMac 10.4.8
Reported by: | aurelien.dehay@… | Owned by: | mww@… |
---|---|---|---|
Priority: | High | Milestone: | |
Component: | ports | Version: | 1.3.2 |
Keywords: | Cc: | markd@… | |
Port: |
Description
When trying to install py-tkinter (dependency for fetchmail):
root# port install py-tkinter
---> Building py-tkinter with target build Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_python_py-tkinter/work/Python-2.4.3/Modules" && /opt/local/bin/python2.4 setup.py build" returned error 1 Command output: /opt/local/include/tkDecls.h:1154: error: parse error before '*' token /opt/local/include/tkDecls.h:1154: warning: function declaration isn't a prototype /opt/local/include/tkDecls.h:1155: error: parse error before 'Tk_Outline' /opt/local/include/tkDecls.h:1155: warning: function declaration isn't a prototype /opt/local/include/tkDecls.h:1156: error: parse error before 'Tk_Outline' /opt/local/include/tkDecls.h:1156: warning: function declaration isn't a prototype /opt/local/include/tkDecls.h:1157: error: parse error before 'Tk_Outline' /opt/local/include/tkDecls.h:1157: warning: function declaration isn't a prototype /opt/local/include/tkDecls.h:1158: error: parse error before 'GC' /opt/local/include/tkDecls.h:1158: warning: function declaration isn't a prototype /opt/local/include/tkDecls.h:1160: error: parse error before 'GC' /opt/local/include/tkDecls.h:1160: warning: function declaration isn't a prototype /opt/local/include/tkDecls.h:1162: error: parse error before 'Pixmap' /opt/local/include/tkDecls.h:1162: warning: function declaration isn't a prototype /opt/local/include/tkDecls.h:1163: error: parse error before 'XColor' /opt/local/include/tkDecls.h:1163: warning: function declaration isn't a prototype /opt/local/include/tkDecls.h:1167: error: parse error before 'Pixmap' /opt/local/include/tkDecls.h:1167: warning: function declaration isn't a prototype /opt/local/include/tkDecls.h:1173: error: parse error before 'Tk_ClassProcs' /opt/local/include/tkDecls.h:1173: warning: function declaration isn't a prototype /opt/local/include/tkDecls.h:1179: error: parse error before '*' token /opt/local/include/tkDecls.h:1179: warning: function declaration isn't a prototype /opt/local/include/tkDecls.h:1195: error: parse error before 'Drawable' /opt/local/include/tkDecls.h:1195: warning: function declaration isn't a prototype /opt/local/include/tkDecls.h:1196: warning: type defaults to 'int' in declaration of 'TkStubs' /opt/local/include/tkDecls.h:1196: warning: data definition has no type or storage class /opt/local/include/tkDecls.h:1201: error: parse error before '*' token /opt/local/include/tkDecls.h:1201: warning: type defaults to 'int' in declaration of 'tkStubsPtr' /opt/local/include/tkDecls.h:1201: warning: data definition has no type or storage class error: command '/usr/bin/gcc-4.0' failed with exit status 1
Error: Status 1 encountered during processing.
Attachments (1)
Change History (10)
comment:1 Changed 18 years ago by pmq@…
comment:2 Changed 18 years ago by aurelien.dehay@…
Hi.
imac intel mac os x 10.4.8 uname -a: Darwin ordinateur-de-aurelien-dehay.local 8.8.1 Darwin Kernel Version 8.8.1: Mon Sep 25 19:42:00 PDT 2006; root:xnu-792.13.8.obj~1/RELEASE_I386 i386 i386
Xcode :
Version : 2.4 Dernière modification : 13/10/06 14:37 Type : Universal Informations générales : Xcode v2.3 Emplacement : /Developer/Applications/Xcode.app
Changed 18 years ago by aurelien.dehay@…
Attachment: | py-tkinter-dv-install.txt added |
---|
port -dv install py-tkinter
comment:3 Changed 18 years ago by pmq@…
My guess: you have installed XFree86 from MacPorts, then something broke during Tk's build, and you haven't got your copy of ${prefix}/include/tk.h, and py-tkinter fails.
comment:4 Changed 18 years ago by pmq@…
Oops, saw your mail on the MP-users ML. OK so you have tk.h, but you installed XFree86 from MacPorts. You should deinstall that, and use Apple's X11, which is on an Apple install media somewhere (X11*.pkg).
comment:5 Changed 18 years ago by aurelien.dehay@…
but tk depends on XFree86, I can't uninstall XFree86:
ordinateur-de-aurelien-dehay:/Users/aurelien root# port uninstall XFree86 ---> Unable to uninstall XFree86 4.5.0_2, the following ports depend on it: ---> tk
comment:6 Changed 18 years ago by kballard (Lily Ballard)
Milestone: | → Available Ports |
---|
comment:7 Changed 18 years ago by pipping@…
Milestone: | Available Ports → Port Bugs |
---|
comment:8 Changed 17 years ago by markd@…
Cc: | markd@… added |
---|---|
Resolution: | → worksforme |
Status: | new → closed |
This is ancient but tk should be uninstalled, then Xfree86, and then install X11 according to the instructions on the wiki under InstallingMacPorts.
Could you describe your current setup? Eg Mac OS X version, 'uname -a', GCC version, XCode version, Intel/PPC, and so on. Could you also attach a build log obtained with "port -dv install py-tkinter"? Thanks.