Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2007-11-25
23:06 • Closed ticket [1788551fff]: `make shell` fails on Fedora plus 7 other change... artifact: 391d3df8ae user: jenglish
2007-11-15
22:35 • Ticket [1788551fff]: 4 changes artifact: bc1438e3ca user: nobody
2007-11-06
02:04 • Open ticket [1788551fff]. artifact: 55cc526105 user: jenglish
01:43 • Closed ticket [1788551fff]. artifact: b2f1849825 user: dgp
2007-09-11
22:50 • Ticket [1788551fff]: 4 changes artifact: 7fe5edc5ef user: dgp
2007-09-07
17:06 • Ticket [1788551fff]: 1 change artifact: 5b14456477 user: dkf
2007-09-06
07:12 • Ticket [1788551fff]: 4 changes artifact: 1f3888680e user: jenglish
2007-09-05
15:12 • New ticket [1788551fff]. artifact: e65f80637b user: dgp

`make shell` fails on Fedora

Closed / Fixed1788551fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 19 years ago
Descriptionplain2007-09-05 15:12:20
With current HEAD sources and a
default (--enable-shared) build
on a Fedora Core 6 system:

$ make shell
LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}; export LD_LIBRARY_PATH; \
        TCL_LIBRARY="/home/dgp/cvs/tcl/library"; export TCL_LIBRARY; \
        ./tclsh
% info patch
8.5a4
% set {*}{a 1}
extra characters after close-brace

This shows that the ./tclsh program
is not picking up the just built
8.5a7 shared library, but is finding
an installed 8.5a4 shared library
instead.  Somehow the LD_LIBRARY_PATH
mechanism is ineffective.

Workaround is to either configure
--disable-shared for sandbox testing,
or install before trying.
jenglishplain2007-09-06 07:12:45
Logged In: YES 
user_id=68433
Originator: NO

This seems to Work For Me.  (FC6, tried with locally-compiled tcl 8.4.15 in pwd and distro-supplied version in /usr).

One probable difference: SELinux is turned off on this machine (edit /etc/selinux.conf, set "SELINUX=disabled", reboot).
dkf Ticket [1788551fff]: 1 change [History diff]2007-09-07 17:06:30
dgpplain2007-09-11 22:50:50
Logged In: YES 
user_id=80530
Originator: YES


`make runtest` appears to be
an acceptable workaround
dgpplain2007-11-06 01:43:27
Logged In: YES 
user_id=80530
Originator: YES


Linux support for LD_LIBRARY_PATH
is broken, so fixing this is off
the table.  The `make runtest`
workaround will have to suffice.
jenglishplain2007-11-06 02:04:51
Logged In: YES 
user_id=68433
Originator: NO

Probable cause: the tclsh binary is linked with "-Wl,-rpath,$(libdir)", and according to ld(1), directories in the executable's "-rpath" list are searched before LD_LIBRARY_PATH.
[email protected]plain2007-11-15 22:35:39
Logged In: NO 

Recent change to autogoo adds a '--disable-rpath' configure option (2007-11-15, dkf; see also patch 1231022).

Specifying --disable-rpath at configure-time should fix this problem as well.
jenglishplain2007-11-25 23:06:24
Logged In: YES 
user_id=68433
Originator: NO

(--disable-rpath fixes this problem; closing).
Log in (anonymous is fine) to add a comment.