Discussion:
bash: Undefined symbol "rl_filename_rewrite_hook" referenced from COPY re location in /usr/local/bin/bash
Kurt Jaeger
2021-05-09 08:54:21 UTC
Permalink
Hello,

on a recently updated system I have this problem with shells/bash,
it fails to start:

ld-elf.so.1: 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...
--
***@opsec.eu +49 171 3101372 Now what ?
Freddie Cash
2021-05-09 14:49:28 UTC
Permalink
Run ldd against the bag binary and see if it's picking up /use/lib/
libreadline.8.so

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
/usr/local/lib.

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.


Cheers,
Freddie

Typos due to smartphone keyboard.
Post by Kurt Jaeger
Hello,
on a recently updated system I have this problem with shells/bash,
ld-elf.so.1: 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...
--
_______________________________________________
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
Kurt Jaeger
2021-05-09 19:03:21 UTC
Permalink
Hi!
Post by Freddie Cash
Run ldd against the bag binary and see if it's picking up /use/lib/
libreadline.8.so
It shows /lib/libreadline.so.8, yes.
Post by Freddie Cash
If it 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
/usr/local/lib.
Yes, that was the correct fix, works now!
Post by Freddie Cash
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.
Thanks for the info!
--
***@opsec.eu +49 171 3101372 Now what ?
Loading...