New issue by admnd on void-packages repository https://github.com/void-linux/void-packages/issues/29068 Description: Following the instructions for xbmc-src, an attempts to rebuild the whole _base-system_ package fails on recompiling bash. Tested under a x86/64 environment (glibc). # Issue ``` (...) cc -L./builtins -L./lib/readline -L./lib/readline -L./lib/glob -L./lib/tilde -L./lib/sh -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -rdynamic -fstack-clash-protection -D_FORTIFY_SOURCE=2 -mtune=generic -march=native -O2 -pipe -fopt-info-vec -ftree-vectorize -DSYS_BASHRC='"/etc/bash/bashrc"' -o bash shell.o eval.o y.tab.o general.o make_cmd.o print_cmd.o dispose_cmd.o execute_cmd.o variables.o copy_cmd.o error.o expr.o flags.o jobs.o subst.o hashcmd.o hashlib.o mailcheck.o trap.o input.o unwind_prot.o pathexp.o sig.o test.o version.o alias.o array.o arrayfunc.o assoc.o braces.o bracecomp.o bashhist.o bashline.o list.o stringlib.o locale.o findcmd.o redir.o pcomplete.o pcomplib.o syntax.o xmalloc.o -lbuiltins -lglob -lsh -lreadline -lhistory /usr/lib/libncursesw.a -ltilde -ldl /usr/bin/ld: ./lib/sh/libsh.a(tmpfile.o): in function `sh_mktmpname': tmpfile.c:(.text+0x17b): warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp' /usr/bin/ld: ./lib/readline/libreadline.a(terminal.o): warning: relocation against `UP' in read-only section `.text' /usr/bin/ld: ./lib/readline/libreadline.a(display.o): in function `_rl_move_cursor_relative': display.c:(.text+0xfe3): undefined reference to `tputs' /usr/bin/ld: ./lib/readline/libreadline.a(display.o): in function `_rl_move_vert': display.c:(.text+0x17fc): undefined reference to `tputs' /usr/bin/ld: ./lib/readline/libreadline.a(display.o): in function `rl_clear_visible_line': display.c:(.text+0x1868): undefined reference to `tputs' /usr/bin/ld: ./lib/readline/libreadline.a(display.o): in function `update_line': display.c:(.text+0x3d69): undefined reference to `tgoto' /usr/bin/ld: display.c:(.text+0x3d7d): undefined reference to `tputs' /usr/bin/ld: display.c:(.text+0x3eb7): undefined reference to `tputs' /usr/bin/ld: display.c:(.text+0x42ad): undefined reference to `tputs' /usr/bin/ld: display.c:(.text+0x4477): undefined reference to `tgoto' /usr/bin/ld: display.c:(.text+0x4489): undefined reference to `tputs' /usr/bin/ld: display.c:(.text+0x4886): undefined reference to `tputs' /usr/bin/ld: display.c:(.text+0x4946): undefined reference to `tputs' /usr/bin/ld: ./lib/readline/libreadline.a(display.o): in function `_rl_clear_screen': display.c:(.text+0x6a9c): undefined reference to `tputs' /usr/bin/ld: ./lib/readline/libreadline.a(display.o): in function `_rl_update_final': display.c:(.text+0x6c1f): undefined reference to `tputs' /usr/bin/ld: ./lib/readline/libreadline.a(display.o):display.c:(.text+0x6c97): more undefined references to `tputs' follow /usr/bin/ld: ./lib/readline/libreadline.a(terminal.o): in function `_rl_get_screen_size': terminal.c:(.text+0x1fe): undefined reference to `tgetnum' /usr/bin/ld: terminal.c:(.text+0x247): undefined reference to `tgetnum' /usr/bin/ld: ./lib/readline/libreadline.a(terminal.o): in function `_rl_init_terminal_io': terminal.c:(.text+0x6fe): undefined reference to `PC' /usr/bin/ld: terminal.c:(.text+0x70d): undefined reference to `BC' /usr/bin/ld: terminal.c:(.text+0x714): undefined reference to `UP' /usr/bin/ld: terminal.c:(.text+0x7c1): undefined reference to `tgetent' /usr/bin/ld: terminal.c:(.text+0x86f): undefined reference to `tgetstr' /usr/bin/ld: terminal.c:(.text+0x898): undefined reference to `PC' /usr/bin/ld: terminal.c:(.text+0x8ae): undefined reference to `BC' /usr/bin/ld: terminal.c:(.text+0x8bc): undefined reference to `UP' /usr/bin/ld: terminal.c:(.text+0x8ce): undefined reference to `tgetflag' /usr/bin/ld: terminal.c:(.text+0x923): undefined reference to `tgetflag' /usr/bin/ld: terminal.c:(.text+0xa39): undefined reference to `tgetflag' /usr/bin/ld: ./lib/readline/libreadline.a(terminal.o): in function `_rl_backspace': terminal.c:(.text+0xc6b): undefined reference to `tputs' /usr/bin/ld: ./lib/readline/libreadline.a(terminal.o): in function `rl_ding': terminal.c:(.text+0xd31): undefined reference to `tputs' /usr/bin/ld: ./lib/readline/libreadline.a(terminal.o): in function `_rl_enable_meta_key': terminal.c:(.text+0xe27): undefined reference to `tputs' /usr/bin/ld: ./lib/readline/libreadline.a(terminal.o): in function `_rl_disable_meta_key': terminal.c:(.text+0xe89): undefined reference to `tputs' /usr/bin/ld: ./lib/readline/libreadline.a(terminal.o): in function `_rl_cr': terminal.c:(.text+0xce4): undefined reference to `tputs' /usr/bin/ld: ./lib/readline/libreadline.a(terminal.o):terminal.c:(.text+0xda3): more undefined references to `tputs' follow /usr/bin/ld: warning: creating DT_TEXTREL in a PIE collect2: error: ld returned 1 exit status make: *** [Makefile:583: bash] Error 1 => ERROR: bash-5.1.004_1: do_build: '${make_cmd} ${makejobs} ${make_build_args} ${make_build_target}' exited with 2 => ERROR: in do_build() at common/build-style/gnu-configure.sh:15 ``` # Reproducer (On a brand new Void Linux with required dependencies present and as a regular user) 1. git clone https://github.com/void-linux/void-packages.git 2. cd void-packages 3. ./xbs-src binary-bootstrap 4. ./xbs-src pkg bash I also tried /xbs-src -N pkg bash with the same result. Might be in relation with the issue #11718 ?