Bug 82826

Summary: Tcl 8.4.10 build is broken.
Product: Ports & Packages Reporter: Mike Edenfield <kutulu>
Component: Individual Port(s)Assignee: Pav Lucistnik <pav>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Mike Edenfield 2005-06-30 16:20:17 UTC
There is a known problem building Tcl v8.4.10 with GCC 3.x.  The problem is apparently hidden by a bug in gcc4.0.  This problem is resolved in the CVS version of Tcl but the fix hasn't made it into a release version yet.

Fix: Add the following patch file to lang/tcl84/files:
Comment 1 Pav Lucistnik freebsd_committer freebsd_triage 2005-06-30 18:11:41 UTC
State Changed
From-To: open->feedback

I can build tcl 8.4.10 just fine with 

/usr/ports/lang/tcl84 # gcc --version 
gcc (GCC) 3.4.2 [FreeBSD] 20040728
Comment 2 Pav Lucistnik freebsd_committer freebsd_triage 2005-06-30 18:11:41 UTC
Responsible Changed
From-To: freebsd-ports-bugs->pav

Track
Comment 3 Mike Edenfield 2005-06-30 19:47:47 UTC
The problem appears to be specific to the threaded Tcl.  That is, I have 
WITH_THREADS defined in /etc/make.conf.  When I build lang/tcl84 with 
this configuration, I receive this error:

tclUnixNotfy.c: In function `Tcl_FinalizeNotifier':
tclUnixNotfy.c:297: too few arguments to function `Tcl_JoinThread'

The thread from tcl-core which describes the problem can be found here:

http://sourceforge.net/mailarchive/forum.php?thread_id=7490238&forum_id=3854

A better patch (the one that is actually in Tcl's CVS) is:

http://cvs.sourceforge.net/viewcvs.py/tcl/tcl/unix/tclUnixNotfy.c?r1=1.11.2.11&r2=1.11.2.12&diff_format=u


--Mike
Comment 4 Pav Lucistnik freebsd_committer freebsd_triage 2005-06-30 19:57:20 UTC
State Changed
From-To: feedback->closed

Patched in CVS, thank you!