[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: undefined symbol: UP

From: Chet Ramey
Subject: Re: undefined symbol: UP
Date: Tue, 5 Jan 2021 08:56:48 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.6.0

On 1/5/21 3:32 AM, Fabrice BAUZAC wrote:

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

``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]