From nobody Wed Oct 06 07:56:15 2021 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 8F49D17E19CC; Wed, 6 Oct 2021 07:56:16 +0000 (UTC) (envelope-from bapt@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HPRbh3hDSz3wCp; Wed, 6 Oct 2021 07:56:16 +0000 (UTC) (envelope-from bapt@freebsd.org) Received: from aniel.nours.eu (nours.eu [IPv6:2001:41d0:8:3a4d::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: bapt) by smtp.freebsd.org (Postfix) with ESMTPSA id 47BA69DCA; Wed, 6 Oct 2021 07:56:16 +0000 (UTC) (envelope-from bapt@freebsd.org) Received: by aniel.nours.eu (Postfix, from userid 1001) id 080A8461E0; Wed, 6 Oct 2021 09:56:15 +0200 (CEST) Date: Wed, 6 Oct 2021 09:56:15 +0200 From: Baptiste Daroussin To: freebsd-current Cc: freebsd-ports Subject: Re: Bash Static broken with new ncurses update on current Message-ID: <20211006075615.ngxxbyxfq2nmcadl@aniel.nours.eu> References: List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-ThisMailContainsUnwantedMimeParts: N On Tue, Oct 05, 2021 at 11:46:45AM -0700, Manfred Antar (KN6KBS) wrote: > After update to current world on 10/5/2021 bash static is broken: > > cc -L./builtins -L/usr/local/lib -L/usr/local/lib -L./lib/glob -L./lib/tilde -L./lib/sh -L/usr/local/lib -fstack-protector-strong -fuse-ld=bfd -static -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -static -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 -lncursesw -ltilde -L/usr/local/lib > /usr/local/bin/ld.bfd: ./lib/sh/libsh.a(tmpfile.o): in function `sh_mktmpname': > tmpfile.c:(.text+0x85): warning: warning: mktemp() possibly used unsafely; consider using mkstemp() > /usr/local/bin/ld.bfd: /usr/local/lib/libreadline.a(display.o): in function `update_line': > display.c:(.text+0x4654): undefined reference to `tgoto' > /usr/local/bin/ld.bfd: display.c:(.text+0x4664): undefined reference to `tputs' > /usr/local/bin/ld.bfd: display.c:(.text+0x48e1): undefined reference to `tputs' > /usr/local/bin/ld.bfd: display.c:(.text+0x48ff): undefined reference to `tputs' > /usr/local/bin/ld.bfd: display.c:(.text+0x4a62): undefined reference to `tgoto' > /usr/local/bin/ld.bfd: display.c:(.text+0x4a74): undefined reference to `tputs' > /usr/local/bin/ld.bfd: display.c:(.text+0x4b5d): undefined reference to `tputs' > /usr/local/bin/ld.bfd: display.c:(.text+0x4b8f): undefined reference to `tputs' > /usr/local/bin/ld.bfd: display.c:(.text+0x4bc7): undefined reference to `tputs' > /usr/local/bin/ld.bfd: /usr/local/lib/libreadline.a(display.o): in function `_rl_clear_to_eol': > display.c:(.text+0x4c15): undefined reference to `tputs' > /usr/local/bin/ld.bfd: /usr/local/lib/libreadline.a(display.o):display.c:(.text+0x4cf3): more undefined references to `tputs' follow > /usr/local/bin/ld.bfd: /usr/local/lib/libreadline.a(terminal.o): in function `_rl_get_screen_size': > terminal.c:(.text+0xd0): undefined reference to `tgetnum' > /usr/local/bin/ld.bfd: terminal.c:(.text+0x108): undefined reference to `tgetnum' > /usr/local/bin/ld.bfd: /usr/local/lib/libreadline.a(terminal.o): in function `_rl_init_terminal_io': > terminal.c:(.text+0x36d): undefined reference to `tgetent' > /usr/local/bin/ld.bfd: terminal.c:(.text+0x39b): undefined reference to `tgetstr' > /usr/local/bin/ld.bfd: terminal.c:(.text+0x5b9): undefined reference to `PC' > /usr/local/bin/ld.bfd: terminal.c:(.text+0x5cc): undefined reference to `BC' > /usr/local/bin/ld.bfd: terminal.c:(.text+0x5d7): undefined reference to `UP' > /usr/local/bin/ld.bfd: terminal.c:(.text+0x603): undefined reference to `PC' > /usr/local/bin/ld.bfd: terminal.c:(.text+0x611): undefined reference to `BC' > /usr/local/bin/ld.bfd: terminal.c:(.text+0x61f): undefined reference to `UP' > /usr/local/bin/ld.bfd: terminal.c:(.text+0x63e): undefined reference to `tgetflag' > /usr/local/bin/ld.bfd: terminal.c:(.text+0x64f): undefined reference to `tgetflag' > /usr/local/bin/ld.bfd: terminal.c:(.text+0x6a3): undefined reference to `tgetflag' > /usr/local/bin/ld.bfd: /usr/local/lib/libreadline.a(terminal.o): in function `_rl_backspace': > terminal.c:(.text+0xa43): undefined reference to `tputs' > /usr/local/bin/ld.bfd: terminal.c:(.text+0xa62): undefined reference to `tputs' > /usr/local/bin/ld.bfd: /usr/local/lib/libreadline.a(terminal.o): in function `_rl_cr': > terminal.c:(.text+0xb37): undefined reference to `tputs' > /usr/local/bin/ld.bfd: /usr/local/lib/libreadline.a(terminal.o): in function `rl_ding': > terminal.c:(.text+0xb78): undefined reference to `tputs' > /usr/local/bin/ld.bfd: /usr/local/lib/libreadline.a(terminal.o): in function `_rl_standout_on': > terminal.c:(.text+0xbd6): undefined reference to `tputs' > /usr/local/bin/ld.bfd: /usr/local/lib/libreadline.a(terminal.o):terminal.c:(.text+0xc06): more undefined references to `tputs' follow > cc: error: linker command failed with exit code 1 (use -v to see invocation) > *** [bash] Error code 1 > > make[2]: stopped in /usr/ports/shells/bash/work/bash-5.1 > 1 error > > make[2]: stopped in /usr/ports/shells/bash/work/bash-5.1 > ===> Compilation failed unexpectedly. > Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to > the maintainer. > *** Error code 1 > > Stop. > make[1]: stopped in /usr/ports/shells/bash > *** Error code 1 > > Stop. > make: stopped in /usr/ports/shells/bash > > Fixed, thank you for reporting Bapt