Opened 16 years ago

Closed 14 years ago

#14488 closed defect (duplicate)

blt not building

Reported by: schimaf@… Owned by: markd@…
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: Cc:
Port: blt

Description

I'm trying to build blt but I'm getting an error. Here's the output:

sh-3.2# port install blt
--->  Fetching blt
--->  Verifying checksum(s) for blt
--->  Extracting blt
--->  Applying patches to blt
--->  Configuring blt
--->  Building blt 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_blt/work/BLT2.4z" && make all " returned error 2
Command output: (cd src; make all)
/usr/bin/gcc-4.0 -c -Wall -O3 -fno-common   -I. -I.  -I/opt/local/include -I/usr/X11/include bltAlloc.c
In file included from bltInt.h:80,
                 from bltAlloc.c:1:
bltNsUtil.h:50: error: conflicting types for 'Tcl_FindCommand'
/opt/local/include/tclDecls.h:3125: error: previous declaration of 'Tcl_FindCommand' was here
bltNsUtil.h:67: error: conflicting types for 'Tcl_CreateNamespace'
/opt/local/include/tclDecls.h:3070: error: previous declaration of 'Tcl_CreateNamespace' was here
bltNsUtil.h:72: error: conflicting types for 'Tcl_FindNamespace'
/opt/local/include/tclDecls.h:3118: error: previous declaration of 'Tcl_FindNamespace' was here
bltNsUtil.h:75: error: conflicting types for 'Tcl_Export'
/opt/local/include/tclDecls.h:3088: error: previous declaration of 'Tcl_Export' was here
make[1]: *** [bltAlloc.o] Error 1
make: *** [all] Error 2

Error: Status 1 encountered during processing.

Running Xcode 3.0 on Mac OS X 10.5.2 (Intel) MacPro 8 core.

Attachments (6)

Portfile (1.7 KB) - added by mf2k (Frank Schima) 15 years ago.
tcl 8.4.19 portfile
Portfile.2 (1.8 KB) - added by mf2k (Frank Schima) 15 years ago.
tk 8.4.19 portfile
Portfile.3 (972 bytes) - added by mf2k (Frank Schima) 15 years ago.
Updated py25-tkinter portfile
Portfile.4 (2.0 KB) - added by mf2k (Frank Schima) 15 years ago.
Updated blt Portfile for tcl/tk 8.4
listbox.tcl (13.6 KB) - added by mf2k (Frank Schima) 15 years ago.
text.tcl (30.5 KB) - added by mf2k (Frank Schima) 15 years ago.

Download all attachments as: .zip

Change History (21)

comment:1 Changed 16 years ago by markd@…

Looks like BLT is not ready for Tk 8.5 yet. I hope someone patches it soon.

http://groups.google.com/group/comp.lang.tcl/browse_thread/thread/6e5f6db6afada238

comment:3 Changed 16 years ago by jmroot (Joshua Root)

Milestone: Port Bugs
Owner: changed from macports-tickets@… to markd@…

comment:4 Changed 16 years ago by mf2k (Frank Schima)

Keywords: blt removed
Port: blt added

For the record, my current workaround is that I use a modified version of the tk and tcl ports that install version 8.4.19 of both.

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

Here's a promising version to try.

comment:6 Changed 15 years ago by lapcchan@…

any update? or how do i install old version of tk/tcl on macport? i tried to compile customized version of tcl/tk. however, that will be a lots of work since i am using python, py-tkinter and etc on macports

Changed 15 years ago by mf2k (Frank Schima)

Attachment: Portfile added

tcl 8.4.19 portfile

Changed 15 years ago by mf2k (Frank Schima)

Attachment: Portfile.2 added

tk 8.4.19 portfile

comment:7 in reply to:  6 Changed 15 years ago by mf2k (Frank Schima)

Replying to lapcchan@…:

any update? or how do i install old version of tk/tcl on macport? i tried to compile customized version of tcl/tk. however, that will be a lots of work since i am using python, py-tkinter and etc on macports

I have modified my local portfiles for tcl and tk and created a py25-tkinter84. They are attached to this ticket. Ideally there should be tcl84 and tk84 ports but macports lacks a few features to implement this properly. See #16336. Also a tcltk_select port should be created but I don't know how to do that.

comment:8 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:9 Changed 15 years ago by bobchew@…

BLT builds using the tcl/tk 8.4 portfiles, but py25-tkinter84 throws an error about not being able to find setup.py. Any ideas?

Doing this on Mac OS X 10.5.6, XCode 3.1 (non-iPhone).

comment:10 in reply to:  9 ; Changed 15 years ago by bobchew@…

Strange! There's even more errors when it comes to tcl/tk 8.4: It keeps throwing the error that tk wasn't installed properly. This happens whenever tk is invoked, whether via BLT or even by running wish.

Changed 15 years ago by mf2k (Frank Schima)

Attachment: Portfile.3 added

Updated py25-tkinter portfile

Changed 15 years ago by mf2k (Frank Schima)

Attachment: Portfile.4 added

Updated blt Portfile for tcl/tk 8.4

comment:11 in reply to:  10 ; Changed 15 years ago by mf2k (Frank Schima)

Replying to bobchew@…:

Strange! There's even more errors when it comes to tcl/tk 8.4: It keeps throwing the error that tk wasn't installed properly. This happens whenever tk is invoked, whether via BLT or even by running wish.

My solution was to install xorg-server. Then try using my updated portfile for py25-tkinter and a new one for blt that omits the dependency on xorg-libs.

comment:12 in reply to:  11 Changed 15 years ago by mf2k (Frank Schima)

Version: 1.6.01.7.1

Replying to macsforever2000@…:

Replying to bobchew@…:

Strange! There's even more errors when it comes to tcl/tk 8.4: It keeps throwing the error that tk wasn't installed properly. This happens whenever tk is invoked, whether via BLT or even by running wish.

My solution was to install xorg-server. Then try using my updated portfile for py25-tkinter and a new one for blt that omits the dependency on xorg-libs.

You mean runtime tk errors? Yes, this needs to be fixed with a few patch files. I will eventually integrate these into the tk84 portfile, but until then, I'm attaching 2 files (listbox.tcl and text.tcl) to replace in "/opt/local/lib/tk8.4/".

Changed 15 years ago by mf2k (Frank Schima)

Attachment: listbox.tcl added

Changed 15 years ago by mf2k (Frank Schima)

Attachment: text.tcl added

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

Here's my bug report on the issue on the blt sourceforge page.

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

The py25-tkinter84 port is no longer required as of r51955, please ignore it.

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

Resolution: duplicate
Status: newclosed

Superseded by #22536.

Note: See TracTickets for help on using tickets.