Opened 17 years ago

Closed 15 years ago

#13910 closed defect (fixed)

tk-8.5.0 Configure error - build failure

Reported by: igor.karpov@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: erlang tk Cc: igor.karpov@…
Port:

Description

Trying to build erlang on my Darwin 8.11.1 Darwin Kernel Version 8.11.1: Wed Oct 10 18:23:28 PDT 2007; root:xnu-792.25.20~1/RELEASE_I386 i386) got the following error:

% port install erlang

--->  Building tk with target all
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.0/unix" && make 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.0/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.0/unix/../generic/tk3d.c:1167: error: parse error before '*' token
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.0/unix/../generic/tk3d.c: In function 'Intersect':
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.0/unix/../generic/tk3d.c:1181: error: 'a2Ptr' undeclared (first use in this function)
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.0/unix/../generic/tk3d.c:1181: error: 'a1Ptr' undeclared (first use in this function)
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.0/unix/../generic/tk3d.c:1181: error: 'b2Ptr' undeclared (first use in this function)
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.0/unix/../generic/tk3d.c:1181: error: 'b1Ptr' undeclared (first use in this function)
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.0/unix/../generic/tk3d.c:1196: error: 'iPtr' undeclared (first use in this function)
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.0/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.0/unix/../generic/tk3d.c:1240: error: 'borderPtr' undeclared (first use in this function)
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.0/unix/../generic/tk3d.c:1242: error: invalid operands to binary *
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.0/unix/../generic/tk3d.c:1242: error: parse error before ')' token
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.0/unix/../generic/tk3d.c:1254: error: parse error before ')' token
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.0/unix/../generic/tk3d.c:1257: error: parse error before ')' token
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.0/unix/../generic/tk3d.c:1257: error: parse error before ')' token
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.0/unix/../generic/tk3d.c:1258: error: parse error before ')' token
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.0/unix/../generic/tk3d.c:1278: error: request for member 'borderTable' in something not a structure or union
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.0/unix/../generic/tk3d.c:1278: error: request for member 'borderTable' in something not a structure or union
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.0/unix/../generic/tk3d.c:1282: error: parse error before ')' token
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.0/unix/../generic/tk3d.c:1284: error: parse error before ')' token
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.0/unix/../generic/tk3d.c:1284: error: parse error before ')' token
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.0/unix/../generic/tk3d.c:1285: error: parse error before ')' token
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.0/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.0/unix/../generic/tk3d.c:1365: error: 'borderPtr' undeclared (first use in this function)
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.0/unix/../generic/tk3d.c:1368: error: invalid operands to binary *
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.0/unix/../generic/tk3d.c:1368: error: parse error before ')' token
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.0/unix/../generic/tk3d.c:1371: error: request for member 'borderTable' in something not a structure or union
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.0/unix/../generic/tk3d.c:1371: error: request for member 'borderTable' in something not a structure or union
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.0/unix/../generic/tk3d.c:1373: error: parse error before ')' token
make: *** [tk3d.o] Error 1

Error: The following dependencies failed to build: tk
Error: Status 1 encountered during processing.

Change History (8)

comment:1 Changed 17 years ago by jmpalacios (Juan Manuel Palacios)

Priority: HighNormal

comment:2 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to mww@…

Assigning to maintainer of tk.

comment:3 Changed 17 years ago by mww@…

Resolution: fixed
Status: newclosed

Ttk 8.5 requires Tcl 8.5. Make sure that you got this version installed (and not 8.4.x).
If already done, please try again -- I've changed the CPPFLAGS in 33103 so the build won't pick up old tcl headers.

comment:4 Changed 17 years ago by adfernandes (Andrew Fernandes)

Resolution: fixed
Status: closedreopened

Hmm... this fails for me. I have tcl @8.5.0_0 installed (just checked) and am trying to upgrade tk from 8.4.16_0 to 8.5.0_0.

The initial configure works, and several files compile... and then the following happens. Yes, the error says 8.4, but I'm sure I'm using/upgrading the versions above.

(I'm also freshly synced, and I checked that my portfile is identical to the patched one, above.)

...snip...

/usr/bin/gcc-4.0 -c -Os -O2 -pipe  -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_
x11_tk/work/tcl8.5.0/generic -I/opt/local/include  -Wall -Wno-implicit-int -fno-common -I/opt/local/var/macports/build/_opt_local_va
r_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.0/unix/../unix -I/opt/local/var/macports/build/_opt_local_var_
macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.0/unix/../generic -I/opt/local/var/macports/build/_opt_local_var
_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.0/unix/../bitmaps -I/opt/local/var/macports/build/_opt_local_va
r_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.0/unix/../../tcl8.5.0//generic -I/opt/local/var/macports/build
/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.0/unix/../../tcl8.5.0//unix -I/usr/X11R6/include
 -DPACKAGE_NAME=\"tk\" -DPACKAGE_TARNAME=\"tk\" -DPACKAGE_VERSION=\"8.5\" -DPACKAGE_STRING=\"tk\ 8.5\" -DPACKAGE_BUGREPORT=\"\" -DST
DC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAV
E_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidde
n\"\)\)\) -DMAC_OSX_TCL=1 -DHAVE_COREFOUNDATION=1 -DTCL_SHLIB_EXT=\".dylib\" -DTCL_CFG_OPTIMIZED=1 -DTCL_CFG_DEBUG=1 -DTCL_WIDE_INT_
TYPE=long\ long -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_INTPTR_T=1 -DHAVE_UINTPTR_T=1 -DHAVE_PW_GECOS=1 -DHAVE_XSS=1 -DHAV
E_LIBXFT=1 -DHAVE_XFT=1      -DTCL_NO_DEPRECATED  -DUSE_TCL_STUBS  /opt/local/var/macports/build/_opt_local_var_macports_sources_rsy
nc.macports.org_release_ports_x11_tk/work/tk8.5.0/unix/../generic/tkTextWind.c
/usr/bin/gcc-4.0 -c -Os -O2 -pipe  -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_
x11_tk/work/tcl8.5.0/generic -I/opt/local/include  -Wall -Wno-implicit-int -fno-common -I/opt/local/var/macports/build/_opt_local_va
r_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.0/unix/../unix -I/opt/local/var/macports/build/_opt_local_var_
macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.0/unix/../generic -I/opt/local/var/macports/build/_opt_local_var
_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.0/unix/../bitmaps -I/opt/local/var/macports/build/_opt_local_va
r_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.0/unix/../../tcl8.5.0//generic -I/opt/local/var/macports/build
/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.0/unix/../../tcl8.5.0//unix -I/usr/X11R6/include
 -DPACKAGE_NAME=\"tk\" -DPACKAGE_TARNAME=\"tk\" -DPACKAGE_VERSION=\"8.5\" -DPACKAGE_STRING=\"tk\ 8.5\" -DPACKAGE_BUGREPORT=\"\" -DST
DC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAV
E_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidde
n\"\)\)\) -DMAC_OSX_TCL=1 -DHAVE_COREFOUNDATION=1 -DTCL_SHLIB_EXT=\".dylib\" -DTCL_CFG_OPTIMIZED=1 -DTCL_CFG_DEBUG=1 -DTCL_WIDE_INT_
TYPE=long\ long -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_INTPTR_T=1 -DHAVE_UINTPTR_T=1 -DHAVE_PW_GECOS=1 -DHAVE_XSS=1 -DHAV
E_LIBXFT=1 -DHAVE_XFT=1      -DTCL_NO_DEPRECATED  -DUSE_TCL_STUBS  /opt/local/var/macports/build/_opt_local_var_macports_sources_rsy
nc.macports.org_release_ports_x11_tk/work/tk8.5.0/unix/../generic/tkStubInit.c
/usr/bin/gcc-4.0 -c -Os -O2 -pipe  -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_
x11_tk/work/tcl8.5.0/generic -I/opt/local/include  -Wall -Wno-implicit-int -fno-common -I/opt/local/var/macports/build/_opt_local_va
r_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.0/unix/../unix -I/opt/local/var/macports/build/_opt_local_var_
macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.0/unix/../generic -I/opt/local/var/macports/build/_opt_local_var
_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.0/unix/../bitmaps -I/opt/local/var/macports/build/_opt_local_va
r_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.0/unix/../../tcl8.5.0//generic -I/opt/local/var/macports/build
/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.0/unix/../../tcl8.5.0//unix -I/usr/X11R6/include
 -DPACKAGE_NAME=\"tk\" -DPACKAGE_TARNAME=\"tk\" -DPACKAGE_VERSION=\"8.5\" -DPACKAGE_STRING=\"tk\ 8.5\" -DPACKAGE_BUGREPORT=\"\" -DST
DC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAV
E_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidde
n\"\)\)\) -DMAC_OSX_TCL=1 -DHAVE_COREFOUNDATION=1 -DTCL_SHLIB_EXT=\".dylib\" -DTCL_CFG_OPTIMIZED=1 -DTCL_CFG_DEBUG=1 -DTCL_WIDE_INT_
TYPE=long\ long -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_INTPTR_T=1 -DHAVE_UINTPTR_T=1 -DHAVE_PW_GECOS=1 -DHAVE_XSS=1 -DHAV
E_LIBXFT=1 -DHAVE_XFT=1      -DTCL_NO_DEPRECATED  -DUSE_TCL_STUBS  /opt/local/var/macports/build/_opt_local_var_macports_sources_rsy
nc.macports.org_release_ports_x11_tk/work/tk8.5.0/unix/../generic/tkStubLib.c
/usr/bin/gcc-4.0 -c -Os -O2 -pipe  -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_
x11_tk/work/tcl8.5.0/generic -I/opt/local/include  -Wall -Wno-implicit-int -fno-common -I/opt/local/var/macports/build/_opt_local_va
r_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.0/unix/../unix -I/opt/local/var/macports/build/_opt_local_var_
macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.0/unix/../generic -I/opt/local/var/macports/build/_opt_local_var
_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.0/unix/../bitmaps -I/opt/local/var/macports/build/_opt_local_va
r_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.0/unix/../../tcl8.5.0//generic -I/opt/local/var/macports/build
/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.0/unix/../../tcl8.5.0//unix -I/usr/X11R6/include
 -DPACKAGE_NAME=\"tk\" -DPACKAGE_TARNAME=\"tk\" -DPACKAGE_VERSION=\"8.5\" -DPACKAGE_STRING=\"tk\ 8.5\" -DPACKAGE_BUGREPORT=\"\" -DST
DC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAV
E_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidde
n\"\)\)\) -DMAC_OSX_TCL=1 -DHAVE_COREFOUNDATION=1 -DTCL_SHLIB_EXT=\".dylib\" -DTCL_CFG_OPTIMIZED=1 -DTCL_CFG_DEBUG=1 -DTCL_WIDE_INT_
TYPE=long\ long -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_INTPTR_T=1 -DHAVE_UINTPTR_T=1 -DHAVE_PW_GECOS=1 -DHAVE_XSS=1 -DHAV
E_LIBXFT=1 -DHAVE_XFT=1      -DTCL_NO_DEPRECATED  -DUSE_TCL_STUBS  /opt/local/var/macports/build/_opt_local_var_macports_sources_rsy
nc.macports.org_release_ports_x11_tk/work/tk8.5.0/unix/../generic/ttk/ttkBlink.c
In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8
.5.0/unix/../generic/ttk/ttkBlink.c:19:
/opt/local/include/tk.h:23:3: error: #error Tk 8.4 must be compiled with tcl.h from Tcl 8.4
make: *** [ttkBlink.o] Error 1

comment:5 Changed 17 years ago by aconbere@…

This also is broken for me, and I have the version mentioned in #33103

comment:6 Changed 17 years ago by aconbere@…

Well... I got this working by uninstalling all versions of tcl, reinstalling tcl 8.5 and then installing the rest.

comment:7 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:8 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: reopenedclosed

Since it's been over a year and a half, I assume this issue is resolved.

Note: See TracTickets for help on using tickets.