On Wed, Jun 4, 2025 at 3:27 PM Chet Ramey <chet.ra...@case.edu> wrote:
> On 6/4/25 3:08 PM, Joel Ebel wrote: > > > > > > On Wed, Jun 4, 2025 at 3:00 PM Chet Ramey <chet.ra...@case.edu > > <mailto:chet.ra...@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.) > Thanks. That appears to work. It wasn't necessary with bash 5.2. > > -- > ``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/ >