bug-bash
[Top][All Lists]
Advanced

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

Re: Duplicate symbols


From: Chet Ramey
Subject: Re: Duplicate symbols
Date: Wed, 4 Jun 2025 15:27:35 -0400
User-agent: Mozilla Thunderbird

On 6/4/25 3:08 PM, Joel Ebel wrote:


On Wed, Jun 4, 2025 at 3:00 PM Chet Ramey <chet.ramey@case.edu <mailto:chet.ramey@case.edu>> wrote:

    On 6/4/25 2:45 PM, Joel Ebel via Bug reports for the GNU Bourne Again
    SHell
    wrote:
     > Hi,
     >
     > I'm able to build bash 5.3-rc2 with dynamic linking, but if I
    configure it
     > with --enable-static-link, the build is unable to complete. I'm building
     > with clang, and there are three conflicts between terminal.c in
     > libreadline.a.
     >
     > Symbol PC is defined in both terminal.c and lib_tputs.c
     >
     > Symbols UP and BC are defined in both terminal.c and lib_termcap.c
     >
     > Am I doing something incorrectly or using something out of date?

    Which system are you trying this on? Linux? macOS? One of the BSDs?

This is on Linux. Does it require ncurses 6.5? It's building against ncurses 6.4. The duplicates are all between libreadline, which comes from the bash sources, and libcurses.

I don't play with static linking on Linux, which as far as I know has been
discouraged for years, so I don't have a ready way to test this, but you
should be able to add -DNEED_EXTERN_PC to your CFLAGS and rebuild.
(Technically you only need to recompile lib/readline/terminal.c and remake
libreadline.a.)

--
``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]