bash: Undefined symbol "rl_filename_rewrite_hook" referenced from COPY re location in /usr/local/bin/bash

Freddie Cash fjwcash at
Sun May 9 14:49:40 UTC 2021

Run ldd against the bag binary and see if it's picking up /use/lib/

If it is and this is a FreeBSD 12.x system, then just delete (or rename)
that file. Run ldd again, and it should pick up the readline library from

It seems freebsd-update doesn't remove that library when upgrading from
11.x to 12.x on some systems. I posted about this in the -stable mailing
list a month or so ago.


Typos due to smartphone keyboard.

On Sun., May 9, 2021, 1:54 a.m. Kurt Jaeger, <pi at> wrote:

> Hello,
> on a recently updated system I have this problem with shells/bash,
> it fails to start:
> Undefined symbol "rl_filename_rewrite_hook" referenced from
> COPY relocation in /usr/local/bin/bash
> I do not have this on similar systems, also recently updated, so
> any idea where this might coming from ? pkg install bash-static fixes
> it.
> With 'recently' I mean: the last 60minutes, from the same repo,
> which is very much up2date.
> It is really surprising...
> --
> pi at            +49 171 3101372                    Now what ?
> _______________________________________________
> freebsd-ports at mailing list
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at"

More information about the freebsd-ports mailing list