Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4ebc21ab3675b224d5b698b107edabc169b83164
Ticket: 769237ffffffffffffffffffffffffffffffffff
tclsh looks for build, then LD_LIBRARY_PATH in linux
User & Date: r0ark on 2003-07-10 18:18:52
Changes

  1. assignee changed to: "hobbs"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Hello,
    
    I have a situation where I build TCL 8.4 in my local 
    sandbox and then release it to another public area.  
    
    With Sun (solaris 5.8) after setting the 
    LD_LIBRARY_PATH variable to the public area, and then 
    do a ldd tclsh8.4 , I get the public path.
    
    However, when I do the same process on the Linux 
    machine (Red Hat 8.0), ldd tclsh8.4 returns the sandbox 
    path.  
    
    As you can see in the clippings below, the build path is 
    my home directory, whereas the desired 
    LD_LIBRARY_PATH is the /projMan directory.
    
    Here are some hopefully useful clippings: (projMan is 
    public area)
    
    ldd on sun:
    >cobrajet<:  /home/r52652/cvs/projMan/RunEverything1.
    0/TCL-TK/sun55/bin > ldd tclsh8.4
            libtcl8.4.so =>  /projMan/RunEverything1.0/TCL-
    TK/sun55/lib/libtcl8.4.so
            libdl.so.1 =>    /usr/lib/libdl.so.1
            libsocket.so.1 =>        /usr/lib/libsocket.so.1
            libnsl.so.1 =>   /usr/lib/libnsl.so.1
            libm.so.1 =>     /usr/lib/libm.so.1
            libc.so.1 =>     /usr/lib/libc.so.1
            libmp.so.2 =>    /usr/lib/libmp.so.2
            /usr/platform/SUNW,Ultra-30/lib/libc_psr.so.1
    
    ldd on linux:
    >pls1<:  /home/r52652/cvs/projMan/RunEverything1.0/TC
    L-TK/linux/bin > ldd tclsh8.4
            libtcl8.4.so 
    => /home/r52652/cvs/projMan/RunEverything1.0/TCL-
    TK/linux/lib/libtcl8.4.so (0x40015000)
            libdl.so.2 => /lib/libdl.so.2 (0x400ae000)
            libm.so.6 => /lib/libm.so.6 (0x400b1000)
            libc.so.6 => /lib/libc.so.6 (0x400d3000)
            /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
    
    
    strings tclsh on linux:
    >pls1<:  /home/r52652/cvs/projMan/RunEverything1.0/TC
    L-TK/linux/bin > strings tclsh8.4
    /lib/ld-linux.so.2
    libtcl8.4.so
    Tcl_Main
    _DYNAMIC
    Tcl_Init
    Tcl_SetVar
    _GLOBAL_OFFSET_TABLE_
    _Jv_RegisterClasses
    __gmon_start__
    libdl.so.2
    _LIB_VERSION
    libm.so.6
    libc.so.6
    _IO_stdin_used
    __libc_start_main
    _edata
    __bss_start
    _end
    /home/r52652/cvs/projMan/RunEverything1.0/TCL-
    TK/linux/lib
    _fp_hw
    __libc_csu_fini
    __libc_csu_init
    Tcl_AppInit
    __data_start
    GLIBC_2.0
    PTRh
    QVhD
    ~/.tclshrc
    tcl_rcFileName
    
    
    strings tclsh8.4 on sun:
    
    >cobrajet<:  /home/r52652/cvs/projMan/RunEverything1.
    0/TCL-TK/sun55/bin > strings tclsh8.4
    /usr/lib/ld.so.1
    _environ
    _etext
    Tcl_AppInit
    _PROCEDURE_LINKAGE_TABLE_
    atexit
    Tcl_Init
    __register_frame_info
    _end
    _DYNAMIC
    _GLOBAL_OFFSET_TABLE_
    Tcl_Main
    _edata
    Tcl_SetVar
    _exit
    _init
    _fini
    _start
    __deregister_frame_info
    _lib_version
    main
    libc.so.1
    SYSVABI_1.3
    libtcl8.4.so
    libdl.so.1
    libsocket.so.1
    libnsl.so.1
    libm.so.1
    /home/r52652/cvs/projMan/RunEverything1.0/TCL-
    TK/sun55/lib
    tcl_rcFileName
    ~/.tclshrc
    
    thanks for your help
    
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "r0ark"
  9. subsystem changed to: "08. Environment Variables"
  10. title changed to:
    tclsh looks for build, then LD_LIBRARY_PATH in linux
    
  11. type changed to: "Bug"