Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-05
08:22 • Ticket [218541ffff] tcl8.0.4 uses wrong library path on Linux status still C... artifact: 3f4469f33c user: dgp
2000-10-26
08:24 • Closed ticket [218541ffff]. artifact: 1045f7b0f5 user: welch
01:01 • New ticket [218541ffff]. artifact: 090214a194 user: nobody

tcl8.0.4 uses wrong library path on Linux

Closed / Fixed218541ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:01:56
OriginalBugID: 957 Bug
Version: 8.0.4
SubmitDate: '1998-12-14'
LastModified: '1999-08-13'
Severity: SER
Status: Released
Submitter: pat
ChangedBy: hobbs
RelatedBugIDs: 1951 1896 2195 1409
OS: All
OSVersion: NA
Machine: NA
FixedDate: '1999-08-13'
FixedInVersion: 8.1
ClosedDate: '2000-10-25'


From: John Ellson <[email protected]>
Newsgroups: comp.lang.tcl
Subject: BUG tcl8.0.4 uses wrong library path on Linux
Date: Mon, 23 Nov 1998 12:23:44 -0500
Organization: Lucent Technologies
Message-ID: <[email protected]>

Building tcl8.0.4 on linux with:

configure --prefix=/usr/add-on/tcl8.0 --enable-shared

RedHat already has a tcl installation in /usr
The resulting tclsh picks up the wrong libtcl8.0.so

The final step of tcl8.0.4 make is:

gcc -rdynamic tclAppInit.o -L/usr/add-on/tcl8.0/build/tcl8.0.4/unix
-ltcl8.0  -ldl  -lm -lc  -o tclsh

The final step of tcl8.0.3 with plus patches (which have had this
problem fixed for years now!) is:

cc -rdynamic  tclAppInit.o -L/usr/add-on/tcl8.0/build/tcl8.0.3/unix
-ltcl8.0  -ldl  -lieee -lm -Wl,-rpath,/usr/add-on/tcl8.0/lib -o tclsh8.0

The significant part being: "-Wl,-rpath,/usr/add-on/tcl8.0/lib"

John Ellson

-Wl,-rpath have been included since 8.1.
-- 08/13/1999 hobbs 
-- 08/13/1999 hobbs
welch Closed ticket [218541ffff]. [History diff]2000-10-26 08:24:13
dgp Ticket [218541ffff]: 3 changes [History diff]2001-04-05 08:22:18
Log in (anonymous is fine) to add a comment.