Re: bash error in newly installed 12.3-RELEASE

From: Gary Aitken <freebsd_at_dreamchaser.org>
Date: Sun, 22 May 2022 06:20:27 UTC
On 5/21/22 3:15 PM, Gary Aitken wrote:
> In the process of upgrading from 11.4-RELEASE to 12.3-RELEASE
> 
> After upgrading the os, attempting to update packages
> 
> pkg-static upgrade -f managed to upgrade pkg ok, but on the next
> package, whose name is not displayed, I got something like <null>
> ..... (Y/n)?
> 
> So I did: portsnap fetch portsnap update pkg update bash This removed
> 32 pkgs, installed 5, upgraded 28, and reinstalled 6.
> 
> The reinstall appeared to work; I got a few messages about maybe
> wanting to manually remove some files (unrelated, e.g. apache configs
> and python27) but nothing else.
> 
> However, if I try to run bash, I get:
> 
> bash --version ld-elf.so.1 Undefined symbol
> "rl_filename_rewrite_hook" referenced from COPY relocation in
> /usr/local/bin/bash
...

Turns out I only *thought* I did the mandatory freebsd-update install after
rebooting.  Apparently.  I would swear otherwise, but when I did a
   freebsd-update fetch
it claimed I had a partially completed os install

A reboot followed by
   freebsd-update install
   pkg-static upgrade -f

fixed it.