#1000190 bc depends on libreadline8 but attempts to load libreadline.so.7

Package:
bc
Source:
bc
Description:
GNU bc arbitrary precision calculator language
Submitter:
Petr Mánek
Date:
2021-11-19 12:27:06 UTC
Severity:
normal
#1000190#5
Date:
2021-11-19 12:23:47 UTC
From:
To:
When I invoke `bc` without any arguments from an ordinary shell prompt it fails with a dynamic
linking error:

	$ bc
	bc: error while loading shared libraries: libreadline.so.7: cannot open shared object file: No
	such file or directory

Further investigation reveals that the binary expects a missing library "libreadline.so.7":

	$ ldd $(which bc)
		linux-vdso.so.1 (0xbefc0000)
		/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so => /usr/lib/arm-linux-gnueabihf/libarmmem-v7l.so (0xb6f28000)
		libreadline.so.7 => not found
		libtinfo.so.5 => /lib/arm-linux-gnueabihf/libtinfo.so.5 (0xb6ef8000)
		libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb6da4000)
		/lib/ld-linux-armhf.so.3 (0xb6f3d000)

According to `dpkg`, the `bc` package depends on "libreadline8 (>= 6.0)" which supplies this library
but with incompatible version 8. I suggest that this dependency is corrected.

I am using Raspbian GNU/Linux 11, kernel 5.10.63-v7l+ and libc6 2.31-13.