From khera@kciLink.com  Thu Jul  5 10:10:16 2001
Return-Path: <khera@kciLink.com>
Received: from yertle.kciLink.com (yertle.kcilink.com [216.194.193.105])
	by hub.freebsd.org (Postfix) with ESMTP id 3959F37B408
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  5 Jul 2001 10:10:16 -0700 (PDT)
	(envelope-from khera@kciLink.com)
Received: from onceler.kciLink.com (onceler.kciLink.com [216.194.193.106])
	by yertle.kciLink.com (Postfix) with ESMTP id E12FF2E45F
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  5 Jul 2001 13:10:14 -0400 (EDT)
Received: (from khera@localhost)
	by onceler.kciLink.com (8.11.4/8.11.3) id f65HAEi47726;
	Thu, 5 Jul 2001 13:10:14 -0400 (EDT)
	(envelope-from khera)
Message-Id: <200107051710.f65HAEi47726@onceler.kciLink.com>
Date: Thu, 5 Jul 2001 13:10:14 -0400 (EDT)
From: <khera@kciLink.com>
Reply-To: khera@kciLink.com
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: tcl 8.3.3_3 has error in tclConfig.sh
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         28726
>Category:       ports
>Synopsis:       tclConfig.sh has error in LD_SEARCH_FILES value
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    dinoex
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 05 10:20:01 PDT 2001
>Closed-Date:    Sun Aug 19 08:02:28 PDT 2001
>Last-Modified:  Sun Aug 19 08:03:03 PDT 2001
>Originator:     Vivek Khera
>Release:        FreeBSD 4.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD onceler.kciLink.com 4.3-STABLE FreeBSD 4.3-STABLE #6: Mon Jun 11 12:39:31 EDT 2001 khera@yertle.kciLink.com:/u/yertle2/usr.obj/amd/onceler/u/onceler1/usr/src/sys/ONCELER i386


	
>Description:
	

I was attempting to build expect without X11 support.  expect needs to
know how to find the tcl shared lib, so it uses the
TCL_LD_SEARCH_FLAGS value from tclConfig.sh.  However, this value is
set for cc options, not ld options.  This results in a failure during
the build of expect, since -Wl,-rpath,/usr/local/lib is not a known
option.

Curiously, the tkConfig.sh file defines the corresponding variable
correctly, which is why expect builds properly with Tk enabled.

>How-To-Repeat:
	

build expect without Tk enabled.

>Fix:

	
patch after install.  I don't know why Tk gets it right and Tcl doesn't.


--- /usr/local/lib/tcl8.3/#tclConfig.sh~        Thu Jul  5 13:05:35 2001
+++ /usr/local/lib/tcl8.3/tclConfig.sh  Thu Jul  5 13:05:35 2001
@@ -96,7 +96,7 @@
 # run-time dynamic linker where to look for shared libraries such as
 # libtcl.so.  Used when linking applications.  Only works if there
 # is a variable "LIB_RUNTIME_DIR" defined in the Makefile.
-TCL_LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
+TCL_LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
 
 # Additional object files linked with Tcl to provide compatibility
 # with standard facilities from ANSI C or POSIX.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->dinoex 
Responsible-Changed-By: dinoex 
Responsible-Changed-When: Mon Aug 6 12:47:04 PDT 2001 
Responsible-Changed-Why:  
I will look into this one. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=28726 

From: dirk.meyer@dinoex.sub.org (Dirk Meyer)
To: freebsd-gnats-submit@FreeBSD.org, khera@kciLink.com
Cc:  
Subject: subject=Re: ports/28726: tclConfig.sh has error in LD_SEARCH_FILES
	value
Date: Tue, 14 Aug 2001 08:37:14 +0200

 The macro is generated by automake, and used to build parts of tcl itself.
 It should only be used for FreeBSD 1 and 2, but the detection seems
 defunct, as this macro was intend to be empty.
 
 Please check if you leave ths filed empy, will the port still work
 in your ebviroment?
 
 kind regrdas Dirk,
 
 - Dirk Meyer, Im Grund 4, 34317 Habichtswald, Germany
State-Changed-From-To: open->closed 
State-Changed-By: dinoex 
State-Changed-When: Sun Aug 19 08:02:28 PDT 2001 
State-Changed-Why:  
Tcl port has been modified. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=28726 
>Unformatted:
