I’m not sure what’s causing that error, there have been a few things that have stopped working with Bullseye where library dependencies aren’t up to date.
Were you using a Pi 3A+ or a Pi 3B+?
Once we know what hardware you have we’ll assemble the same setup here and see if we get the same error, then work out what is broken. We’ve got a few tutorials that need updates since Bullseye launched.
I’ve hooked up a Pi 3B on the bench with a new Bullseye card and I’ve got the same error as you have with both the Pi HQ camera and the Pi NoIR camera (each gives a slightly different error).
Both of those cameras work with the Pi 4B and Bullseye using the new library functions so I’d say that a dependency is just missing for one of the drivers on the older hardware revisions.
If you want to get your camera back up and running ASAP your best bet will be to roll back to an earlier version of Raspberry Pi OS until the dependencies are patched in the new version.
You can find older versions here: Index of /raspios_armhf/images/raspios_armhf-2021-05-28
The other option is to start digging and try and find the missing dependency yourself but I suspect that way madness lies…
If we find a quick sudo dependency command which fixes it, we’ll be sure to post an update.