Opened 15 years ago
Closed 14 years ago
#21512 closed defect (worksforme)
Tk fails to build
Reported by: | issac.trotts@… | Owned by: | mww@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.8.0 |
Keywords: | snowleopard | Cc: | francesco086@…, vitaly@…, pkrohn@…, turkowski, macports@…, mdippery@…, flash@… |
Port: | tk |
Description (last modified by tobypeterson)
This is on Snow Leopard, on a MacBook Pro. Xcode is version 3.2, 64 bit.
Here is the output.
---> Computing dependencies for py25-nose ---> Building tk Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.6/unix" && /usr/bin/make -j2 all " returned error 2 Command output: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.6/unix/../generic/tk3d.c: At top level: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.6/unix/../generic/tk3d.c:1080: error: expected ')' before '*' token /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.6/unix/../generic/tk3d.c:1167: error: expected ')' before '*' token /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.6/unix/../generic/tk3d.c: In function 'Tk_Get3DBorderFromObj': /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.6/unix/../generic/tk3d.c:1242: error: 'TkWindow' has no member named 'dispPtr' /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.6/unix/../generic/tk3d.c:1256: error: 'TkBorder' has no member named 'resourceRefCount' /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.6/unix/../generic/tk3d.c:1257: error: 'Tk_FakeWin' has no member named 'display' /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.6/unix/../generic/tk3d.c:1257: error: 'Tk_FakeWin' has no member named 'screenNum' /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.6/unix/../generic/tk3d.c:1257: error: 'TkBorder' has no member named 'screen' /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.6/unix/../generic/tk3d.c:1258: error: 'Tk_FakeWin' has no member named 'atts' /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.6/unix/../generic/tk3d.c:1258: error: 'TkBorder' has no member named 'colormap' /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.6/unix/../generic/tk3d.c:1278: error: 'TkDisplay' has no member named 'borderTable' /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.6/unix/../generic/tk3d.c:1278: error: 'TkDisplay' has no member named 'borderTable' /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.6/unix/../generic/tk3d.c:1283: error: 'TkBorder' has no member named 'nextPtr' /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.6/unix/../generic/tk3d.c:1284: error: 'Tk_FakeWin' has no member named 'display' /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.6/unix/../generic/tk3d.c:1284: error: 'Tk_FakeWin' has no member named 'screenNum' /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.6/unix/../generic/tk3d.c:1284: error: 'TkBorder' has no member named 'screen' /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.6/unix/../generic/tk3d.c:1285: error: 'Tk_FakeWin' has no member named 'atts' make: *** [tkArgv.o] Error 1/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.6/unix/../generic/tk3d.c:1285: error: 'TkBorder' has no member named 'colormap' make: *** Waiting for unfinished jobs.... /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.6/unix/../generic/tk3d.c:1288: error: 'TkBorder' has no member named 'objRefCount' /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.6/unix/../generic/tk3d.c: In function 'TkDebugBorder': /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.6/unix/../generic/tk3d.c:1368: error: 'TkWindow' has no member named 'dispPtr' /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.6/unix/../generic/tk3d.c:1371: error: 'TkDisplay' has no member named 'borderTable' /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.6/unix/../generic/tk3d.c:1371: error: 'TkDisplay' has no member named 'borderTable' /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.6/unix/../generic/tk3d.c:1377: error: 'TkBorder' has no member named 'nextPtr' /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.6/unix/../generic/tk3d.c:1380: error: 'TkBorder' has no member named 'resourceRefCount' /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.6/unix/../generic/tk3d.c:1382: error: 'TkBorder' has no member named 'objRefCount' make: *** [tk3d.o] Error 1
Attachments (1)
Change History (22)
comment:1 Changed 15 years ago by tobypeterson
Description: | modified (diff) |
---|
comment:2 Changed 15 years ago by jmroot (Joshua Root)
Owner: | changed from macports-tickets@… to mww@… |
---|
Changed 15 years ago by issac.trotts@…
sudo port -d install tk > output 2>&1
comment:4 Changed 15 years ago by blb@…
In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.6/unix/../generic/tkInt.h:21, from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.6/unix/../generic/tk3d.c:16: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.6/unix/../generic/tk.h:78:23: error: X11/Xlib.h: No such file or directory
Do you have the xorg-libX11 port installed? Run
port installed xorg-libX11
comment:5 Changed 15 years ago by issac.trotts@…
Yes:
$ port installed xorg-libX11 The following ports are currently installed:
xorg-libX11 @1.2.2_0 (active)
comment:9 Changed 15 years ago by pkrohn@…
Hi all, I'm a bit of a noob when it comes to MacPorts -- if only because I've had good luck getting what I needed to compile. In any case, I am experiencing the same problem. Some minimal detail about my setup:
$ port installed xorg-libX11 The following ports are currently installed: xorg-libX11 @1.2.2_0 xorg-libX11 @1.3_0 (active)
$ uname -a Darwin fogcity.local 10.0.0 Darwin Kernel Version 10.0.0: Fri Jul 31 22:47:34 PDT 2009; root:xnu-1456.1.25~1/RELEASE_I386 i386
comment:10 Changed 15 years ago by mf2k (Frank Schima)
Keywords: | snowleopard added |
---|
comment:11 follow-ups: 17 18 20 Changed 15 years ago by pkrohn@…
This situation does not exist on all hosts; I was able to build tk on another 10.6 system.
The problem seems to be that on some systems, the include path for X11 libraries is not correctly calculated. I was able to get tk to build with minor manual changes to the Makefile, but this fix is not suitable for a patch because it really just fixes the symptoms of the problem. In any case, here is what I did, under /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.7/unix:
- copy Makefile to Makefile.auto
- set the include path to /opt/local/include (my X11 includes live under there)
- run this diff:
diff -u Makefile.auto Makefile --- Makefile.auto 2009-10-11 16:35:23.000000000 -0700 +++ Makefile 2009-10-11 16:39:32.000000000 -0700 @@ -146,14 +146,15 @@ # X11 include files accessible (the configure script will try to # set this value, and will cause it to be an empty string if the # include files are accessible via /usr/include). -X11_INCLUDES = +X11_INCLUDES = -I$(includedir) AQUA_INCLUDES = -I$(MAC_OSX_DIR) -I$(XLIB_DIR) # Linker switch(es) to use to link with the X11 library archive (the # configure script will try to set this value automatically, but you # can override it). -X11_LIB_SWITCHES = -L/usr/X11R6/lib -lX11 -Wl,-weak-lXss -lXext $(XFT_LIBS) +#X11_LIB_SWITCHES = -L/usr/X11R6/lib -lX11 -Wl,-weak-lXss -lXext $(XFT_LIBS) +X11_LIB_SWITCHES = -L/opt/local/lib -lX11 -Wl,-weak-lXss -lXext $(XFT_LIBS)
Hope this helps!
comment:12 Changed 15 years ago by mf2k (Frank Schima)
Cc: | turk@… added |
---|
Cc reporter of duplicate #22056.
comment:15 follow-up: 16 Changed 15 years ago by mdippery@…
After taking another look, I believe that the +quartz
variant of tk
doesn't build properly on Snow Leopard.
comment:16 Changed 15 years ago by jmroot (Joshua Root)
Replying to mdippery@…:
After taking another look, I believe that the
+quartz
variant oftk
doesn't build properly on Snow Leopard.
This ticket does not involve +quartz, you're probably looking for #20799.
comment:17 Changed 15 years ago by areusch@…
Patch works great for me on snow leopard 10.6.2, Xcode ver 3.2.1. Let me know if I can provide other information about my system to help you guys figure out when the X11 includes/libs are relocated.
Replying to pkrohn@…:
This situation does not exist on all hosts; I was able to build tk on another 10.6 system.
The problem seems to be that on some systems, the include path for X11 libraries is not correctly calculated. I was able to get tk to build with minor manual changes to the Makefile, but this fix is not suitable for a patch because it really just fixes the symptoms of the problem. In any case, here is what I did, under /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.7/unix:
- copy Makefile to Makefile.auto
- set the include path to /opt/local/include (my X11 includes live under there)
- run this diff:
diff -u Makefile.auto Makefile --- Makefile.auto 2009-10-11 16:35:23.000000000 -0700 +++ Makefile 2009-10-11 16:39:32.000000000 -0700 @@ -146,14 +146,15 @@ # X11 include files accessible (the configure script will try to # set this value, and will cause it to be an empty string if the # include files are accessible via /usr/include). -X11_INCLUDES = +X11_INCLUDES = -I$(includedir) AQUA_INCLUDES = -I$(MAC_OSX_DIR) -I$(XLIB_DIR) # Linker switch(es) to use to link with the X11 library archive (the # configure script will try to set this value automatically, but you # can override it). -X11_LIB_SWITCHES = -L/usr/X11R6/lib -lX11 -Wl,-weak-lXss -lXext $(XFT_LIBS) +#X11_LIB_SWITCHES = -L/usr/X11R6/lib -lX11 -Wl,-weak-lXss -lXext $(XFT_LIBS) +X11_LIB_SWITCHES = -L/opt/local/lib -lX11 -Wl,-weak-lXss -lXext $(XFT_LIBS)Hope this helps!
comment:18 Changed 15 years ago by decibel (Jim Nasby)
Replying to pkrohn@…:
This situation does not exist on all hosts; I was able to build tk on another 10.6 system.
The problem seems to be that on some systems, the include path for X11 libraries is not correctly calculated. I was able to get tk to build with minor manual changes to the Makefile, but this fix is not suitable for a patch because it really just fixes the symptoms of the problem. In any case, here is what I did, under /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.7/unix:
That worked for me as well.
comment:20 Changed 15 years ago by flash@…
Replying to pkrohn@…: Worked for me as well, thanks, though I edited Makefile rather than creating Makefile.auto.
comment:21 Changed 14 years ago by jmroot (Joshua Root)
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Can't reproduce. May be OK with 1.9 in any case because it sets CPATH.
Attach full debug output, please.