Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 1a12e6aef4817768a5df290207f273c723efbce2
Ticket: 3401063fffffffffffffffffffffffffffffffff
ldconfig was not ran, so libtcl8.5.so was not found later
User & Date: joxy on 2011-08-30 22:43:22
Changes

  1. assignee changed to: "stwo"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    ubuntu 10.04 latest repos contain tcl 8.4.*; my machine had them installed.
    
    then (without uninstallation of tcl 8.4.*), i built tcl 8.5.10 from sources on ubuntu 10.04 (ubuntu was updated with latest stuff).
    
    tcl build line used was: $ ./configure --enable-threads --enable-shared --enable-symbols && make && make test && sudo make install
    
    all completed successfully.
    
    then, the program using tcl was built successfully. When ran, this program gave:
    error while loading shared libraries: libtcl8.5.so: cannot open shared object file: No such file or directory
    
    This seems to be a bug in tcl's make install: it didn't ran ldconfig at the end of installation (i.e. at the end of make install)... But I don't know for sure if this is tcl's duty to run ldconfig or not.
    
    When I consulted ld.so.conf.d, it had /usr/local/lib listed in libc.conf:
    
    $ cat /etc/ld.so.conf
    include /etc/ld.so.conf.d/*.conf
    $ cat /etc/ld.so.conf.d/libc.conf | grep local
    /usr/local/lib
    $ sudo ldconfig
    $
    
    After that, the program referencing libtcl8.5.so found it successfully.
    
  4. foundin changed to: "obsolete: 8.5.10"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "joxy"
  10. subsystem changed to: "53. Configuration and Build Tools"
  11. title changed to:
    ldconfig was not ran, so libtcl8.5.so was not found later
    
  12. type changed to: "Bug"