I have a bit of an issue. I have been happily using BASS on Raspberry Pi for years, 32-bit and 64-bit.
However, I have now moved my development to Bookworm (latest release of the RPi OS) from Buster.
Unfortunately, my binaries no longer run on Buster machines (of which I have many, because I am using PiZero boards with Pimoroni PirateAmp boards in each room), because having built on Bookworm, it will not run on Buster as the versions of glibc differ.
The advice I received from the Pi Forum was to statically link. However, this isn't possible, because I don't have a static library for BASS, and I can't write a shim to provide wrapper functions and load it via the shim at runtime, because DL requires using the shared glibc version...
So it looks like I am stuck, and will have to revert to Buster, or upgrade all the player hardware to Bookworm, unless anyone knows how I can resolve this.