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


SoftHacker@linux-kuj3:~/Downloads> clear
clear: symbol lookup error: clear: undefined symbol: _nc_free_tinfo
SoftHacker@linux-kuj3:~/Downloads> 

WTF!? :x:’(
What is this and how to fix it??? ::\

Run and compare this:

$ which clear
/usr/bin/clear
$ readelf -d $(which clear) | fgrep NEEDED
 0x0000000000000001 (NEEDED)             Shared library: [libncurses.so.5]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
$ 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)
$ nm -D /lib64/libncurses.so.5 | fgrep _nc_free_tinfo
0000000000030e20 T _nc_free_tinfo
$ rpm -qf /lib64/libncurses.so.5
libncurses5-5.7-14.1.x86_64
$ rpm -qf $(which clear)
ncurses-utils-5.7-14.1.x86_64
$ 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
$ 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.

On 05/21/2011 02:06 PM, SoftHacker wrote:
> WTF!? :x:’(
> 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