Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Jul 2001 13:10:14 -0400 (EDT)
From:      <khera@kciLink.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/28726: tcl 8.3.3_3 has error in tclConfig.sh
Message-ID:  <200107051710.f65HAEi47726@onceler.kciLink.com>

next in thread | raw e-mail | index | archive | help

>Number:         28726
>Category:       ports
>Synopsis:       tclConfig.sh has error in LD_SEARCH_FILES value
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 05 10:20:01 PDT 2001
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200107051710.f65HAEi47726>