From owner-freebsd-ports Thu Jul 5 10:20: 9 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id CC5D637B405 for ; Thu, 5 Jul 2001 10:20:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.3/8.11.3) id f65HK1p80899; Thu, 5 Jul 2001 10:20:01 -0700 (PDT) (envelope-from gnats) Received: from yertle.kciLink.com (yertle.kcilink.com [216.194.193.105]) by hub.freebsd.org (Postfix) with ESMTP id 3959F37B408 for ; 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 ; 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: Reply-To: khera@kciLink.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/28726: tcl 8.3.3_3 has error in tclConfig.sh Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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