Github messages for voidlinux
 help / color / mirror / Atom feed
From: admnd <admnd@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [ISSUE] bash-5.1.004_1 recompilation fails with undefined references (libterminfo)
Date: Fri, 26 Feb 2021 01:43:57 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-29068@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 5495 bytes --]

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 ?


             reply	other threads:[~2021-02-26  0:44 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-26  0:43 admnd [this message]
2021-02-26 17:07 ` FollieHiyuki
2021-02-26 17:09 ` FollieHiyuki
2021-02-26 18:09 ` admnd
2021-02-27 17:40 ` bash-5.1.004_1 recompilation fails with undefined references (libterminfo) - GLIBC profile only admnd
2021-02-27 18:03 ` FollieHiyuki
2021-02-27 18:18 ` admnd
2021-02-27 18:37 ` ericonr
2021-03-01 15:56 ` Chocimier
2021-03-02 22:32 ` admnd
2021-03-02 22:32 ` [ISSUE] [CLOSED] " admnd

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-29068@inbox.vuxu.org \
    --to=admnd@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).