On 1/5/21 3:32 AM, Fabrice BAUZAC wrote:
Hello,
I'm trying to build and install readline 8.1 from source, but it looks
like the generated library refers to some symbol "UP" which is not
found, making the library unusable:
$ LD_PRELOAD=$PWD/shlib/libreadline.so.8.1 /bin/true
/bin/true: symbol lookup error:
/tmp/readline-8.1/shlib/libreadline.so.8.1: undefined symbol: UP
objdump -T /home/noon/gsrc/lib/libreadline.so.8
0000000000000000 D *UND* 0000000000000000 UP
objdump -p /home/noon/gsrc/lib/libreadline.so.8
NEEDED libc.so.6
UP is satisfied by ncurses/terminfo. You have to add -lncurses or
-lterminfo when linking.
The libreadline I have on Debian does not have this issue, because it
has a DT_NEEDED on libtinfo which provides this symbol:
They've chosen to install it that way, knowing they have libtinfo
installed.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/