yum update broke my PARI/gp workaround with libreadline

# yum update

broke my patch to using the “right” libreadline
library for PARI/gp:

[david@localhost ~]$ gp
gp: symbol lookup error: /usr/local/lib/libreadline.so.6: undefined symbol: PC
$ ls -l /usr/local/lib/ | grep libreadline
[…]

lrwxrwxrwx. 1 root root 16 Feb 23 02:55 libreadline.so -> libreadline.so.6
lrwxrwxrwx. 1 root root 18 Feb 25 02:43 libreadline.so.6 -> libreadline.so.6.3
-r-xr-xr-x. 1 root root 680148 Feb 23 02:55 libreadline.so.6.3
[david@localhost ~]$ ldd -d -r /usr/local/lib/libreadline.so.6.3
linux-vdso.so.1 => (0x00007ffe25fc4000)
libc.so.6 => /lib64/libc.so.6 (0x00007f278d942000)
/lib64/ld-linux-x86-64.so.2 (0x0000003afc600000)
undefined symbol: PC (/usr/local/lib/libreadline.so.6.3)
undefined symbol: UP (/usr/local/lib/libreadline.so.6.3)
undefined symbol: BC (/usr/local/lib/libreadline.so.6.3)
undefined symbol: tgetflag (/usr/local/lib/libreadline.so.6.3)
undefined symbol: tgetent (/usr/local/lib/libreadline.so.6.3)
undefined symbol: tputs (/usr/local/lib/libreadline.so.6.3)
undefined symbol: tgoto (/usr/local/lib/libreadline.so.6.3)
undefined symbol: tgetnum (/usr/local/lib/libreadline.so.6.3)
undefined symbol: tgetstr (/usr/local/lib/libreadline.so.6.3)
[david@localhost ~]$ date
Sat Feb 25 04:18:04 EST 2017

 

Next, let’s check out with ldd my choice of libreadline,

$ ls -l /lib64/libreadline.so.6.0
-rwxr-xr-x. 1 root root 272008 Jun 22 2012 /lib64/libreadline.so.6.0

 

so, ldd -d -r  /lib64/libreadline.so.6.0 :

$ ldd -d -r  /lib64/libreadline.so.6.0
linux-vdso.so.1 =>  (0x00007ffc9bf2d000)
libtinfo.so.5 => /lib64/libtinfo.so.5 (0x0000003b0fa00000)
libc.so.6 => /lib64/libc.so.6 (0x0000003afce00000)
/lib64/ld-linux-x86-64.so.2 (0x0000003afc600000)

 

no complaints of undefined symbols.

 

 

Published
Categorized as History
meditationatae's avatar

By meditationatae

Canadian

Discover more from meditationatae

Subscribe now to keep reading and get access to the full archive.

Continue reading