Results 1 to 3 of 3

Thread: clear: symbol lookup error: clear: undefined symbol: _nc_free_tinfo

  1. #1

    Default clear: symbol lookup error: clear: undefined symbol: _nc_free_tinfo

    Code:
    SoftHacker@linux-kuj3:~/Downloads> clear
    clear: symbol lookup error: clear: undefined symbol: _nc_free_tinfo
    SoftHacker@linux-kuj3:~/Downloads>
    WTF!?
    What is this and how to fix it???

  2. #2

    Default Re: clear: symbol lookup error: clear: undefined symbol: _nc_free_tinfo

    Run and compare this:
    Code:
    $ which clear
    /usr/bin/clear
    Code:
    $ readelf -d $(which clear) | fgrep NEEDED
     0x0000000000000001 (NEEDED)             Shared library: [libncurses.so.5]
     0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
    Code:
    $ ldd $(which clear)
            linux-vdso.so.1 =>  (0x00007fff20a91000)
            libncurses.so.5 => /lib64/libncurses.so.5 (0x00007f85bb8cc000)
            libc.so.6 => /lib64/libc.so.6 (0x00007f85bb55f000)
            libdl.so.2 => /lib64/libdl.so.2 (0x00007f85bb35b000)
            /lib64/ld-linux-x86-64.so.2 (0x00007f85bbb21000)
    Code:
    $ nm -D /lib64/libncurses.so.5 | fgrep _nc_free_tinfo
    0000000000030e20 T _nc_free_tinfo
    Code:
    $ rpm -qf /lib64/libncurses.so.5
    libncurses5-5.7-14.1.x86_64
    Code:
    $ rpm -qf $(which clear)
    ncurses-utils-5.7-14.1.x86_64
    Code:
    $ rpm -qfVv $(which clear)
    .........    /usr/bin/clear
    .........    /usr/bin/reset
    .........    /usr/bin/tabs
    .........    /usr/bin/toe
    .........    /usr/bin/tput
    .........    /usr/bin/tset
    .........  d /usr/share/man/man1/clear.1.gz
    .........  d /usr/share/man/man1/reset.1.gz
    .........  d /usr/share/man/man1/tabs.1.gz
    .........  d /usr/share/man/man1/toe.1.gz
    .........  d /usr/share/man/man1/tput.1.gz
    .........  d /usr/share/man/man1/tset.1.gz
    .........  d /usr/share/man/man5/term.5.gz
    .........  d /usr/share/man/man5/terminfo.5.gz
    Code:
    $ rpm -qfVv /lib64/libncurses.so.5
    .........    /lib64/libncurses.so.5
    .........    /lib64/libncurses.so.5.7
    .........    /lib64/libncursesw.so.5
    .........    /lib64/libncursesw.so.5.7
    .........    /usr/lib64/libform.so.5
    .........    /usr/lib64/libform.so.5.7
    .........    /usr/lib64/libformw.so.5
    .........    /usr/lib64/libformw.so.5.7
    .........    /usr/lib64/libmenu.so.5
    .........    /usr/lib64/libmenu.so.5.7
    .........    /usr/lib64/libmenuw.so.5
    .........    /usr/lib64/libmenuw.so.5.7
    .........    /usr/lib64/libpanel.so.5
    .........    /usr/lib64/libpanel.so.5.7
    .........    /usr/lib64/libpanelw.so.5
    .........    /usr/lib64/libpanelw.so.5.7
    .........    /usr/lib64/libtic.so.5
    .........    /usr/lib64/libtic.so.5.7
    And copy the ones that differ.

    Change "lib64" for "lib" if you are running in a 32 bits machine.

  3. #3
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: clear: symbol lookup error: clear: undefined symbol: _nc_free_tinfo

    On 05/21/2011 02:06 PM, SoftHacker wrote:
    > WTF!?
    > What is this and how to fix it???


    so, are you using bash?

    have you edited *bashrc* anywhere in your file system?
    if so, put it back the way it was..
    if not: _what_ did you do to kill 'clear'

    is 'clear' in your path? (try 'which' to learn)

    have you changed your path so that it does not include /usr/bin?
    (try 'echo $PATH' to learn)

    keep on like that..

    --
    dd CAVEAT: http://is.gd/bpoMD
    [NNTP via openSUSE 11.4 [2.6.37.6-0.5] + KDE 4.6.0 + Thunderbird 3.1.10]
    Dual booting with Sluggish Loser7 on Acer Aspire One D255

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •