Opened 15 years ago

Closed 14 years ago

#22180 closed defect (duplicate)

tk 8.5.7 does not build

Reported by: roumbaba Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc:
Port: tk

Description

Hi there,

I am getting the error below when installing tk@8.5.7 on my macbook pro running os X 10.5.8 with macport 1.8.1. Xcode 3.1.2

bash-3.2#sudo port clean --all -f tk
--->  Cleaning tk
bash-3.2# sudo port install tk
--->  Computing dependencies for tk
--->  Fetching tk
--->  Attempting to fetch tk8.5.7-src.tar.gz from http://kent.dl.sourceforge.net/tcl
--->  Attempting to fetch tcl8.5.7-src.tar.gz from http://kent.dl.sourceforge.net/tcl
--->  Verifying checksum(s) for tk
--->  Extracting tk
--->  Configuring tk
--->  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.7/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.7/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.7/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.7/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.7/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.7/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.7/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.7/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.7/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.7/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.7/unix/../generic/tk3d.c:1242: error: syntax error before ')' token
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.7/unix/../generic/tk3d.c:1254: error: syntax error before ')' token
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.7/unix/../generic/tk3d.c:1257: error: syntax error before ')' token
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.7/unix/../generic/tk3d.c:1257: error: syntax error before ')' token
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.7/unix/../generic/tk3d.c:1258: error: syntax error before ')' token
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.7/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.7/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.7/unix/../generic/tk3d.c:1282: error: syntax error before ')' token
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.7/unix/../generic/tk3d.c:1284: error: syntax error before ')' token
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.7/unix/../generic/tk3d.c:1284: error: syntax error before ')' token
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.7/unix/../generic/tk3d.c:1285: error: syntax error before ')' token
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.7/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.7/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.7/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.7/unix/../generic/tk3d.c:1368: error: syntax error before ')' token
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_tk/work/tk8.5.7/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.7/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.7/unix/../generic/tk3d.c:1373: error: syntax error before ')' token
make: *** [tkArgv.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [tk3d.o] Error 1

Error: Status 1 encountered during processing.
bash-3.2# 

Attachments (1)

port.tk.log.gz (11.4 KB) - added by gituliar@… 15 years ago.
sudo port -d install tk

Download all attachments as: .zip

Change History (7)

comment:1 Changed 15 years ago by mf2k (Frank Schima)

Cc: roumbaba@… mww@… openmaintainer@… removed
Keywords: tk not buildding removed
Owner: changed from macports-tickets@… to mww@…
Port: @8.5.7 removed

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

Please clean and try again with the debug switch so we can see the first error.

sudo port clean tk
sudo port -d install tk build.jobs=1 2>&1 | tee ~/Desktop/tk.txt

Assuming it still fails, please attach tk.txt from the desktop to this ticket.

Changed 15 years ago by gituliar@…

Attachment: port.tk.log.gz added

sudo port -d install tk

comment:3 Changed 15 years ago by gituliar@…

I suppose, I have almost the same error on PowerBook G4 (Mac OS 10.4.11 and macports 1.8.1):

--->  Computing dependencies for tk
--->  Fetching tk
--->  Verifying checksum(s) for tk
--->  Extracting tk
--->  Configuring tk
--->  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.7/unix" && /usr/bin/make -j1 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.7/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.7/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.7/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.7/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.7/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.7/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.7/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.7/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.7/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.7/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.7/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.7/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.7/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.7/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.7/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.7/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.7/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.7/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.7/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.7/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.7/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.7/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.7/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.7/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.7/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.7/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.7/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.7/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.7/unix/../generic/tk3d.c:1373: error: parse error before ')' token
make: *** [tk3d.o] Error 1

Error: Status 1 encountered during processing.

comment:4 in reply to:  description Changed 15 years ago by tim@…

you probably either don't have the x11 sdk installed, or tk's configure script didn't find it. in my case, it didn't find it. I modified the portfile to add the x11 include path to the configure options, and the problem went away. you can find the portfile using the command "port file tk". find the configure.cppflags line and add your x11 sdk include path to it, e.g.,

configure.cppflags -I${workpath}/tcl${version}/generic -I/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include

comment:5 Changed 14 years ago by jmroot (Joshua Root)

Is this still a problem with 8.5.9?

comment:6 Changed 14 years ago by jmroot (Joshua Root)

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.