Bug 82826 - Tcl 8.4.10 build is broken.
Summary: Tcl 8.4.10 build is broken.
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Pav Lucistnik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-30 16:20 UTC by Mike Edenfield
Modified: 2005-06-30 19:57 UTC (History)
0 users

See Also:


Attachments
file.diff (435 bytes, patch)
2005-06-30 16:20 UTC, Mike Edenfield
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!