#3778 `make shell` fails on Fedora

obsolete: 8.5a7
closed-fixed
Jeffrey Hobbs
5
2007-11-25
2007-09-05
Don Porter
No

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.

Discussion

  • Joe English
    Joe English
    2007-09-06

    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).

     
    • assigned_to: nobody --> hobbs
     
  • Don Porter
    Don Porter
    2007-09-11

    Logged In: YES
    user_id=80530
    Originator: YES

    `make runtest` appears to be
    an acceptable workaround

     
  • Don Porter
    Don Porter
    2007-11-05

    • status: open --> closed-wont-fix
     
  • Don Porter
    Don Porter
    2007-11-05

    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.

     
  • Joe English
    Joe English
    2007-11-05

    • status: closed-wont-fix --> open
     
  • Joe English
    Joe English
    2007-11-05

    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.

     
  • 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.

     
  • Joe English
    Joe English
    2007-11-25

    • status: open --> closed-fixed
     
  • Joe English
    Joe English
    2007-11-25

    Logged In: YES
    user_id=68433
    Originator: NO

    (--disable-rpath fixes this problem; closing).