From dgilbert@trooper.velocet.ca Sun Mar  7 21:14:02 1999
Return-Path: <dgilbert@trooper.velocet.ca>
Received: from trooper.velocet.ca (host-034.canadiantire.ca [209.146.201.34])
	by hub.freebsd.org (Postfix) with ESMTP id 440A314E04
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  7 Mar 1999 21:13:20 -0800 (PST)
	(envelope-from dgilbert@trooper.velocet.ca)
Received: (from dgilbert@localhost)
	by trooper.velocet.ca (8.8.7/8.8.7) id AAA15092;
	Mon, 8 Mar 1999 00:13:02 -0500 (EST)
Message-Id: <199903080513.AAA15092@trooper.velocet.ca>
Date: Mon, 8 Mar 1999 00:13:02 -0500 (EST)
From: dgilbert@velocet.ca
Sender: dgilbert@trooper.velocet.ca
To: FreeBSD-gnats-submit@freebsd.org
Subject: tk81 port thread-broken
X-Send-Pr-Version: 3.2

>Number:         10480
>Category:       ports
>Synopsis:       tk81 will not *compile* with threaded applications
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar  7 21:20:00 PST 1999
>Closed-Date:    Sun Jun 27 09:30:52 PDT 1999
>Last-Modified:  Sun Jun 27 09:31:18 PDT 1999
>Originator:     David Gilbert
>Release:        FreeBSD 3.0-RELEASE i386
>Organization:
Velocet Communications
>Environment:

	FreeBSD-3.0 ports tree, Python-1.5.2 build tree.  Python-1.5.1
also has this problem.

>Description:

	If you compile Python --with-thread and with tcl-tk, you will
find that you will end up with and undefined symbol: mknod.  It would
appear that this is simply short-circuited (normally) somewhere
in the header file magic.

	It would appear that any application compiled with -pthread
and linked with tk8.1 will come up with mknod missing.

>How-To-Repeat:

	Compile Python --with-thread and with tcl-tk

>Fix:
	
	I've (temporarily) added the following short bit of code,
assuming that whatever tk wants to do with mknod I can live without:

int mknod() {}




>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: jseger 
State-Changed-When: Sun Jun 27 09:30:52 PDT 1999 
State-Changed-Why:  
tk81 has since been updated, if the problem still exists, please 
resubmit (with a patch if possible). 
>Unformatted:
